From cf93fa9352ae014c09cd40daa080858e80736f8a Mon Sep 17 00:00:00 2001 From: gabor Date: Wed, 27 Dec 2006 22:46:05 +0000 Subject: - Add rc.d script - Bump PORTREVISION PR: ports/107208 Submitted by: Eygene Ryabinkin Approved by: erwin (mentor) --- security/expiretable/Makefile | 1 + security/expiretable/files/expiretable.in | 21 +++++++++++++++++++++ security/expiretable/pkg-plist | 1 + 3 files changed, 23 insertions(+) create mode 100644 security/expiretable/files/expiretable.in (limited to 'security/expiretable') diff --git a/security/expiretable/Makefile b/security/expiretable/Makefile index 301f413b977..f145123da22 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 diff --git a/security/expiretable/files/expiretable.in b/security/expiretable/files/expiretable.in new file mode 100644 index 00000000000..8f10aa4711a --- /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 0b420e3b0ab..c2930378f7d 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 -- cgit