From c66405bf88c90718d5208fd2ae179d67c1a854cd Mon Sep 17 00:00:00 2001 From: garga Date: Wed, 5 Apr 2006 19:37:00 +0000 Subject: - Update to 0.4. This version adds several features and fixes a few bugs: [1] * added uid, gid options for setting effective UID, GID * added colourization of debug messages * added filter, filterargs options for report pre-processing * added [pager:] syntax for sending pager friendly reports * added mailtimeout option * fixed tail, tailargs incorrectly being treated as dynamic options - Use USE_RC_SUBR=script and remove 2 lines pkg-plist [2] PR: ports/95332 [1] Submitted by: maintainer [1], garga [2] Approved by: maintainer [2] --- sysutils/tenshi/Makefile | 13 ++++--------- sysutils/tenshi/distinfo | 6 +++--- sysutils/tenshi/files/tenshi.sh | 34 ---------------------------------- sysutils/tenshi/files/tenshi.sh.in | 34 ++++++++++++++++++++++++++++++++++ sysutils/tenshi/pkg-plist | 3 --- 5 files changed, 41 insertions(+), 49 deletions(-) delete mode 100644 sysutils/tenshi/files/tenshi.sh create mode 100644 sysutils/tenshi/files/tenshi.sh.in delete mode 100644 sysutils/tenshi/pkg-plist diff --git a/sysutils/tenshi/Makefile b/sysutils/tenshi/Makefile index fdb4d275735..5d259b06902 100644 --- a/sysutils/tenshi/Makefile +++ b/sysutils/tenshi/Makefile @@ -6,7 +6,7 @@ # PORTNAME= tenshi -PORTVERSION= 0.3.4 +PORTVERSION= 0.4 CATEGORIES= sysutils MASTER_SITES= http://dev.gentoo.org/~lcars/%SUBDIR%/ MASTER_SITE_SUBDIR= tenshi @@ -20,11 +20,10 @@ MAN8= tenshi.8 USE_PERL5= yes NO_BUILD= yes -USE_RC_SUBR= yes +USE_RC_SUBR= tenshi.sh +SUB_LIST= PERL=${PERL} -SED_SCRIPT= -e 's,%%RC_SUBR%%,${RC_SUBR},g' \ - -e 's,%%PREFIX%%,${PREFIX},g' \ - -e 's,%%PERL%%,${PERL},g' +PLIST_FILES= bin/tenshi etc/tenshi.conf.sample PORTDOCS= README Changelog @@ -56,8 +55,4 @@ do-install: done .endif -post-install: - @${SED} ${SED_SCRIPT} ${FILESDIR}/tenshi.sh >${WRKDIR}/tenshi.sh - @${INSTALL_SCRIPT} ${WRKDIR}/tenshi.sh ${PREFIX}/etc/rc.d - .include diff --git a/sysutils/tenshi/distinfo b/sysutils/tenshi/distinfo index a15bc32a776..151091b2e5a 100644 --- a/sysutils/tenshi/distinfo +++ b/sysutils/tenshi/distinfo @@ -1,3 +1,3 @@ -MD5 (tenshi-0.3.4.tar.gz) = f3e875540833a85c43052d96c5698463 -SHA256 (tenshi-0.3.4.tar.gz) = 3b3b3706a8066f701b2e2a17d8a3e0fd0096a28389ae67df0414a5a3cf875215 -SIZE (tenshi-0.3.4.tar.gz) = 22737 +MD5 (tenshi-0.4.tar.gz) = 3b614e5eed200d93c205cf46d17f3a2d +SHA256 (tenshi-0.4.tar.gz) = 2df0bd4a7f9ae0815a3ca28b808da02c73269e918925e3b1fc136e2e884ad8f5 +SIZE (tenshi-0.4.tar.gz) = 24541 diff --git a/sysutils/tenshi/files/tenshi.sh b/sysutils/tenshi/files/tenshi.sh deleted file mode 100644 index bb10718d3c9..00000000000 --- a/sysutils/tenshi/files/tenshi.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: tenshi -# REQUIRE: LOGIN -# KEYWORD: shutdown - -# Add the following lines to /etc/rc.conf to enable `tenshi': -# -#tenshi_enable="YES" -# - -. '%%RC_SUBR%%' - -name='tenshi' -rcvar=`set_rcvar` - -extra_commands='reload' - -command='%%PREFIX%%/bin/tenshi' -command_interpreter='%%PERL%%' - -pidfile='/var/run/tenshi.pid' - -required_files='%%PREFIX%%/etc/tenshi.conf' - -# set defaults - -tenshi_enable="${tenshi_enable:-NO}" - -load_rc_config "$name" -run_rc_command "$1" diff --git a/sysutils/tenshi/files/tenshi.sh.in b/sysutils/tenshi/files/tenshi.sh.in new file mode 100644 index 00000000000..bb10718d3c9 --- /dev/null +++ b/sysutils/tenshi/files/tenshi.sh.in @@ -0,0 +1,34 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: tenshi +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable `tenshi': +# +#tenshi_enable="YES" +# + +. '%%RC_SUBR%%' + +name='tenshi' +rcvar=`set_rcvar` + +extra_commands='reload' + +command='%%PREFIX%%/bin/tenshi' +command_interpreter='%%PERL%%' + +pidfile='/var/run/tenshi.pid' + +required_files='%%PREFIX%%/etc/tenshi.conf' + +# set defaults + +tenshi_enable="${tenshi_enable:-NO}" + +load_rc_config "$name" +run_rc_command "$1" diff --git a/sysutils/tenshi/pkg-plist b/sysutils/tenshi/pkg-plist deleted file mode 100644 index c0b2e959001..00000000000 --- a/sysutils/tenshi/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/tenshi -etc/rc.d/tenshi.sh -etc/tenshi.conf.sample -- cgit