Index: head/sysutils/pies/Makefile =================================================================== --- head/sysutils/pies/Makefile (revision 557411) +++ head/sysutils/pies/Makefile (revision 557412) @@ -1,35 +1,37 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= pies PORTVERSION= 1.4 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://download.gnu.org.ua/pub/release/${PORTNAME}/ \ http://download.gnu.org.ua/pub/alpha/${PORTNAME}/ MAINTAINER= zeus@gnu.org.ua COMMENT= Program Invocation and Execution Supervisor LICENSE= GPLv3+ USES= charsetfix iconv tar:bz2 GNU_CONFIGURE= yes +USE_RC_SUBR= ${PORTNAME} INFO= ${PORTNAME} PORTDOCS= ChangeLog NEWS README OPTIONS_DEFINE= DOCS INETD NLS PAM OPTIONS_SUB= yes INETD_DESC= Build and install replacement for inetd(8) INETD_CONFIGURE_ON= --enable-inetd NLS_USES= gettext NLS_CONFIGURE_OFF= --disable-nls PAM_CONFIGURE_OFF= --disable-pam post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .include Index: head/sysutils/pies/files/pies.in =================================================================== --- head/sysutils/pies/files/pies.in (nonexistent) +++ head/sysutils/pies/files/pies.in (revision 557412) @@ -0,0 +1,61 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: pies +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown +# + +. /etc/rc.subr + +name="pies" +rcvar=pies_enable +command="%%PREFIX%%/sbin/${name}" +ctlcommand="%%PREFIX%%/bin/${name}ctl" +pidfile="/var/run/${name}/${name}.pid" + +: ${pies_enable="NO"} + +start_cmd="${name}_start" +reload_cmd="${name}_reload" +restart_cmd="${name}_restart" +status_cmd="${name}_status" +stop_cmd="${name}_stop" +configtest_cmd="${name}_configtest" + +extra_commands="reload configtest" + +pies_start() +{ + ${command} +} + +pies_reload() +{ + ${ctlcommand} -v config reload +} + +pies_restart() +{ + ${ctlcommand} reboot +} + +pies_status() +{ + ${ctlcommand} -v list +} + +pies_stop() +{ + ${ctlcommand} shutdown +} + +pies_configtest() +{ + ${command} --lint +} + +load_rc_config ${name} +run_rc_command "$1" Property changes on: head/sysutils/pies/files/pies.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property