From 70e703faea6375e6f27c3caea0d41e8cf2347a3a Mon Sep 17 00:00:00 2001 From: sthen Date: Tue, 7 Jun 2011 22:15:38 +0000 Subject: [PATCH] add an rc script; from Mattieu Baptiste, thank you. --- net/pfstat/Makefile | 4 ++-- net/pfstat/pkg/PLIST-daemon | 3 ++- net/pfstat/pkg/pfstatd.rc | 11 +++++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 net/pfstat/pkg/pfstatd.rc diff --git a/net/pfstat/Makefile b/net/pfstat/Makefile index 5fa9f5613f0..cc7ad3d5013 100644 --- a/net/pfstat/Makefile +++ b/net/pfstat/Makefile @@ -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/ diff --git a/net/pfstat/pkg/PLIST-daemon b/net/pfstat/pkg/PLIST-daemon index 227ab5565d1..ed26f2970c6 100644 --- a/net/pfstat/pkg/PLIST-daemon +++ b/net/pfstat/pkg/PLIST-daemon @@ -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 diff --git a/net/pfstat/pkg/pfstatd.rc b/net/pfstat/pkg/pfstatd.rc new file mode 100644 index 00000000000..cdbabd77e12 --- /dev/null +++ b/net/pfstat/pkg/pfstatd.rc @@ -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