- Add rc.d script
- Bump PORTREVISION PR: ports/107208 Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> Approved by: erwin (mentor)
This commit is contained in:
parent
294027405b
commit
573aed523c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=180886
3 changed files with 23 additions and 0 deletions
|
@ -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>
|
||||
|
|
21
security/expiretable/files/expiretable.in
Normal file
21
security/expiretable/files/expiretable.in
Normal file
|
@ -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"
|
|
@ -1 +1,2 @@
|
|||
sbin/expiretable
|
||||
@unexec %%RC_DIR%%/etc/rc.d/expiretable%%RC_SUFX%% stop 2>&1 >/dev/null || true
|
||||
|
|
Loading…
Reference in a new issue