diff options
author | glarkin <glarkin@FreeBSD.org> | 2011-05-19 09:32:18 +0800 |
---|---|---|
committer | glarkin <glarkin@FreeBSD.org> | 2011-05-19 09:32:18 +0800 |
commit | 8cbc5d26efd7f41fcc932e4d87ce75d3d291652f (patch) | |
tree | 7bd48dfacbe355f1bbaab54c308682b892430eba /net | |
parent | 332ae82b8f384e9477d9e77f41eeb441eb3d7279 (diff) | |
download | freebsd-ports-gnome-8cbc5d26efd7f41fcc932e4d87ce75d3d291652f.tar.gz freebsd-ports-gnome-8cbc5d26efd7f41fcc932e4d87ce75d3d291652f.tar.zst freebsd-ports-gnome-8cbc5d26efd7f41fcc932e4d87ce75d3d291652f.zip |
- Added shutdown keyword to rc.d script and other stylistic improvements
- Bumped PORTREVISION
Suggested by: dougb (via email)
Approved by: jnlin@csie.nctu.edu.tw (maintainer, implicit)
Diffstat (limited to 'net')
-rw-r--r-- | net/scribe/Makefile | 3 | ||||
-rw-r--r-- | net/scribe/files/scribe.in | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/net/scribe/Makefile b/net/scribe/Makefile index b072707f0f99..ef4c67ee12c4 100644 --- a/net/scribe/Makefile +++ b/net/scribe/Makefile @@ -6,7 +6,7 @@ PORTNAME= scribe PORTVERSION= 2.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MASTER_SITES= http://cloud.github.com/downloads/facebook/scribe/ @@ -32,7 +32,6 @@ USE_AUTOTOOLS= aclocal automake autoconf USE_GMAKE= yes USE_PYTHON= yes USE_RC_SUBR= ${PORTNAME} -SUB_LIST+= RM=${RM} post-extract: ${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC} diff --git a/net/scribe/files/scribe.in b/net/scribe/files/scribe.in index 8acd455aceba..ff8151b745f7 100644 --- a/net/scribe/files/scribe.in +++ b/net/scribe/files/scribe.in @@ -5,6 +5,7 @@ # PROVIDE: scribe # REQUIRE: DAEMON +# KEYWORD: shutdown . /etc/rc.subr @@ -16,9 +17,6 @@ command="%%PREFIX%%/bin/scribed" start_cmd=scribe_start stop_postcmd=scribe_cleanup -load_rc_config "$name" -: ${scribe_enable="NO"} - scribe_start() { echo "Starting ${name}." @@ -26,7 +24,11 @@ scribe_start() } scribe_cleanup() { - [ -f ${pidfile} ] && %%RM%% ${pidfile} + [ -f ${pidfile} ] && /bin/unlink ${pidfile} } +load_rc_config "$name" + +: ${scribe_enable="NO"} + run_rc_command "$1" |