diff options
author | mi <mi@FreeBSD.org> | 2017-11-14 23:07:32 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2017-11-14 23:07:32 +0800 |
commit | 71e756dc8accbe00fcee69df2fba453aa9f672ae (patch) | |
tree | 555e984dc35047efa3af2ba3a28c23b14810ad64 /sysutils | |
parent | 439b8f07e208c67f6156877caf71634b312cedbd (diff) | |
download | freebsd-ports-gnome-71e756dc8accbe00fcee69df2fba453aa9f672ae.tar.gz freebsd-ports-gnome-71e756dc8accbe00fcee69df2fba453aa9f672ae.tar.zst freebsd-ports-gnome-71e756dc8accbe00fcee69df2fba453aa9f672ae.zip |
Add the service-start script graciously
Submitted by: Johan Hendriks
(Do not know, how it escaped me to make one up myself.)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/incron/Makefile | 2 | ||||
-rw-r--r-- | sysutils/incron/files/incron.in | 29 |
2 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/incron/Makefile b/sysutils/incron/Makefile index 1e784538cfd1..88112fc26316 100644 --- a/sysutils/incron/Makefile +++ b/sysutils/incron/Makefile @@ -3,6 +3,7 @@ PORTNAME= incron DISTVERSION= 2017-11-13 +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= mi@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,' \ diff --git a/sysutils/incron/files/incron.in b/sysutils/incron/files/incron.in new file mode 100644 index 000000000000..627f3f85c191 --- /dev/null +++ b/sysutils/incron/files/incron.in @@ -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" |