svn commit: r454178 - in head/sysutils/incron: . files
Mikhail Teterin
mi at FreeBSD.org
Tue Nov 14 15:07:34 UTC 2017
Author: mi
Date: Tue Nov 14 15:07:32 2017
New Revision: 454178
URL: https://svnweb.freebsd.org/changeset/ports/454178
Log:
Add the service-start script graciously
Submitted by: Johan Hendriks
(Do not know, how it escaped me to make one up myself.)
Added:
head/sysutils/incron/files/
head/sysutils/incron/files/incron.in (contents, props changed)
Modified:
head/sysutils/incron/Makefile
Modified: head/sysutils/incron/Makefile
==============================================================================
--- head/sysutils/incron/Makefile Tue Nov 14 14:05:47 2017 (r454177)
+++ head/sysutils/incron/Makefile Tue Nov 14 15:07:32 2017 (r454178)
@@ -3,6 +3,7 @@
PORTNAME= incron
DISTVERSION= 2017-11-13
+PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= mi at aldan.algebra.com
@@ -24,6 +25,7 @@ LDFLAGS+= -L${LOCALBASE}/lib -linotify
MAKE_ARGS= PREFIX="${PREFIX}" USER=${UID} \
DOCDIR="${PREFIX}/etc" \
MANPATH=${MANPREFIX}/man
+USE_RC_SUBR= ${PORTNAME}
post-patch:
${REINPLACE_CMD} -e 's,/etc/incron,${PREFIX}/etc/incron,' \
Added: head/sysutils/incron/files/incron.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/incron/files/incron.in Tue Nov 14 15:07:32 2017 (r454178)
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# PROVIDE: incrond
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to
+# enable incrond:
+#
+# incrond_enable (bool): Set to NO by default. Set it to YES to
+# enable incrond.
+# incrond_config (string): Set to the standard config file path by
+# default.
+#
+
+. /etc/rc.subr
+
+name="incrond"
+rcvar=incrond_enable
+
+load_rc_config $name
+
+: ${incrond_enable:=NO}
+: ${incrond_config:=%%PREFIX%%/etc/incron.conf}
+
+command="%%PREFIX%%/sbin/${name}"
+required_files="${incrond_config}"
+
+run_rc_command "$1"
More information about the svn-ports-all
mailing list