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 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