add an rc script; from Mattieu Baptiste, thank you.

This commit is contained in:
sthen 2011-06-07 22:15:38 +00:00
parent b533376775
commit 70e703faea
3 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.25 2010/11/19 22:31:37 espie Exp $
# $OpenBSD: Makefile,v 1.26 2011/06/07 22:15:38 sthen Exp $
COMMENT-main= packet filter statistics visualization
COMMENT-daemon= pfstat daemon
@ -8,7 +8,7 @@ DISTNAME= pfstat-2.3
PKGNAME-main= ${DISTNAME}
PKGNAME-daemon= ${DISTNAME:S/-/d-/}
REVISION-main= 1
REVISION-daemon=2
REVISION-daemon=3
CATEGORIES= net
MASTER_SITES= http://www.benzedrine.cx/

View File

@ -1,3 +1,4 @@
@comment $OpenBSD: PLIST-daemon,v 1.3 2010/04/08 19:31:31 naddy Exp $
@comment $OpenBSD: PLIST-daemon,v 1.4 2011/06/07 22:15:38 sthen Exp $
@bin bin/pfstatd
@man man/cat8/pfstatd.0
@rcscript ${RCDIR}/pfstatd

11
net/pfstat/pkg/pfstatd.rc Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# $OpenBSD: pfstatd.rc,v 1.1 2011/06/07 22:15:38 sthen Exp $
daemon="${TRUEPREFIX}/bin/pfstatd"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_cmd $1