Index: head/sysutils/incron/Makefile =================================================================== --- head/sysutils/incron/Makefile (revision 454177) +++ head/sysutils/incron/Makefile (revision 454178) @@ -1,34 +1,36 @@ # Created by: mi@aldan.algebra.com # $FreeBSD$ PORTNAME= incron DISTVERSION= 2017-11-13 +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= mi@aldan.algebra.com COMMENT= Handle filesystem-events the way cron handles time ones LICENSE= GPLv2 LGPL21 MIT LICENSE_COMB= dual LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE-GPL LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE-LGPL LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-X11 LIB_DEPENDS= libinotify.so:devel/libinotify USE_GITHUB= indeed GH_ACCOUNT= ar- GH_TAGNAME= 81421d3a8bde0989d7e167d8a814d5232896c930 CPPFLAGS+= -I${LOCALBASE}/include -D__NR_inotify_init 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,' \ ${WRKSRC}/*conf* ${WRKSRC}/Makefile ${WRKSRC}/*.[158h] \ ${WRKSRC}/*.cpp ${REINPLACE_CMD} -e '/INITDIR/d' ${WRKSRC}/Makefile .include Index: head/sysutils/incron/files/incron.in =================================================================== --- head/sysutils/incron/files/incron.in (nonexistent) +++ head/sysutils/incron/files/incron.in (revision 454178) @@ -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" Property changes on: head/sysutils/incron/files/incron.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property