Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Nov 2017 15:07:32 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r454178 - in head/sysutils/incron: . files
Message-ID:  <201711141507.vAEF7WPS095470@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711141507.vAEF7WPS095470>