aboutsummaryrefslogtreecommitdiff
path: root/security/expiretable
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2006-12-27 22:46:05 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2006-12-27 22:46:05 +0000
commit573aed523cc4880127ce99ff420f1d2a9dace010 (patch)
treeb62ae334bb0b743014e1d7968f7983f0d131985b /security/expiretable
parent294027405bc231e667e248c3ac6468b2287a68e0 (diff)
downloadports-573aed523cc4880127ce99ff420f1d2a9dace010.tar.gz
ports-573aed523cc4880127ce99ff420f1d2a9dace010.zip
- Add rc.d script
- Bump PORTREVISION PR: ports/107208 Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> Approved by: erwin (mentor)
Notes
Notes: svn path=/head/; revision=180886
Diffstat (limited to 'security/expiretable')
-rw-r--r--security/expiretable/Makefile1
-rw-r--r--security/expiretable/files/expiretable.in21
-rw-r--r--security/expiretable/pkg-plist1
3 files changed, 23 insertions, 0 deletions
diff --git a/security/expiretable/Makefile b/security/expiretable/Makefile
index 301f413b977e..f145123da220 100644
--- a/security/expiretable/Makefile
+++ b/security/expiretable/Makefile
@@ -13,6 +13,7 @@ MASTER_SITES= http://expiretable.fnord.se/
MAINTAINER= cris@gufi.org
COMMENT= Utility to remove entries from the pf(4) table based on their age
+USE_RC_SUBR= expiretable
MAN1= expiretable.1
.include <bsd.port.pre.mk>
diff --git a/security/expiretable/files/expiretable.in b/security/expiretable/files/expiretable.in
new file mode 100644
index 000000000000..8f10aa4711a3
--- /dev/null
+++ b/security/expiretable/files/expiretable.in
@@ -0,0 +1,21 @@
+#!/bin/sh
+# $Id$
+
+# PROVIDE: expiretable
+# KEYWORD: shutdown
+
+# /etc/rc.conf tunables.
+# - expiretable_enable set to "YES" to enable expiretable startup
+# - expiretable_flags specify your own flags to expiretable
+
+. /etc/rc.subr
+
+name="expiretable"
+rcvar=`set_rcvar`
+command="/usr/local/sbin/expiretable"
+load_rc_config "$name"
+
+expiretable_enable=${expiretable_enable-"NO"}
+expiretable_flags=${expiretable_flags-""}
+
+run_rc_command "$1"
diff --git a/security/expiretable/pkg-plist b/security/expiretable/pkg-plist
index 0b420e3b0abc..c2930378f7d9 100644
--- a/security/expiretable/pkg-plist
+++ b/security/expiretable/pkg-plist
@@ -1 +1,2 @@
sbin/expiretable
+@unexec %%RC_DIR%%/etc/rc.d/expiretable%%RC_SUFX%% stop 2>&1 >/dev/null || true