ports/146176: [patch] sysutils/pfstat: add rc.d script for pfstatd(8)
David Lay
dsl at fastmail.fm
Fri Apr 30 06:40:01 UTC 2010
>Number: 146176
>Category: ports
>Synopsis: [patch] sysutils/pfstat: add rc.d script for pfstatd(8)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 30 06:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: David Lay
>Release:
>Organization:
>Environment:
>Description:
This patch adds a rudimentary ${PREFIX}/etc/rc.d script for running the optional pfstatd daemon. The usual /etc/rc.conf variables apply (ie. pfstatd_enable="YES", pfstatd_flags="-a [addr] -p [port] -u [user]").
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -Nur pfstat.orig/Makefile pfstat/Makefile
--- pfstat.orig/Makefile 2010-03-28 17:44:00.000000000 +1100
+++ pfstat/Makefile 2010-04-29 18:51:52.000000000 +1000
@@ -21,6 +21,7 @@
MAKE_ENV+= __MAKE_CONF=/dev/null
USE_ICONV= yes
+USE_RC_SUBR= pfstatd
MAN8= pfstat.8 \
pfstatd.8
diff -Nur pfstat.orig/files/pfstatd.in pfstat/files/pfstatd.in
--- pfstat.orig/files/pfstatd.in 1970-01-01 10:00:00.000000000 +1000
+++ pfstat/files/pfstatd.in 2010-04-29 18:43:18.000000000 +1000
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. /etc/rc.subr
+
+name="pfstatd"
+rcvar=`set_rcvar`
+command="%%PREFIX%%/bin/${name}"
+
+load_rc_config ${name}
+run_rc_command "$1"
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list