From owner-svn-ports-all@freebsd.org Tue Nov 14 15:07:34 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D309DC1515; Tue, 14 Nov 2017 15:07:34 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B4288250F; Tue, 14 Nov 2017 15:07:33 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAEF7W3o095472; Tue, 14 Nov 2017 15:07:32 GMT (envelope-from mi@FreeBSD.org) Received: (from mi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAEF7WPS095470; Tue, 14 Nov 2017 15:07:32 GMT (envelope-from mi@FreeBSD.org) Message-Id: <201711141507.vAEF7WPS095470@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mi set sender to mi@FreeBSD.org using -f From: Mikhail Teterin Date: Tue, 14 Nov 2017 15:07:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r454178 - in head/sysutils/incron: . files X-SVN-Group: ports-head X-SVN-Commit-Author: mi X-SVN-Commit-Paths: in head/sysutils/incron: . files X-SVN-Commit-Revision: 454178 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2017 15:07:34 -0000 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"