aboutsummaryrefslogtreecommitdiff
path: root/net/scribe
diff options
context:
space:
mode:
authorGreg Larkin <glarkin@FreeBSD.org>2011-05-19 01:32:18 +0000
committerGreg Larkin <glarkin@FreeBSD.org>2011-05-19 01:32:18 +0000
commitd036f11c99b25714af610f6dc44420a64001ff96 (patch)
tree86dce4e71be9c1646b7b639c553489f32df4499b /net/scribe
parentead9485464f6e036290052b036eab534fd0db23d (diff)
downloadports-d036f11c99b25714af610f6dc44420a64001ff96.tar.gz
ports-d036f11c99b25714af610f6dc44420a64001ff96.zip
Notes
Diffstat (limited to 'net/scribe')
-rw-r--r--net/scribe/Makefile3
-rw-r--r--net/scribe/files/scribe.in10
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"