- Do not delete the configuration file on deinstall if it was modified [1]
- For the rc script: [2] - use /usr/sbin/daemon to start the rc script because igmpproxy does not daemonize itself - add shutdown keyword - cleanups - Bump PORTREVISION [2] PR: ports/149547 [1], ports/150146 [2] Submitted by: Florian Smeets [flo kasimir.com] [1] [2] Approved by: maintainer timeout (11 weeks [1], 8 weeks [2])
This commit is contained in:
parent
80d571faba
commit
8cc15b705e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=263839
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= igmpproxy
|
||||
PORTVERSION= 0.1
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
@ -24,8 +25,4 @@ GNU_CONFIGURE= yes
|
||||
MAN5= igmpproxy.conf.5
|
||||
MAN8= igmpproxy.8
|
||||
|
||||
PLIST_FILES= sbin/igmpproxy \
|
||||
etc/igmpproxy.conf \
|
||||
etc/igmpproxy.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -5,19 +5,28 @@
|
||||
|
||||
# PROVIDE: igmpproxy
|
||||
# REQUIRE: NETWORKING
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# The following variables are provided to control startup of igmpproxy
|
||||
# rc configuration file (eg /etc/rc.conf):
|
||||
# igmpproxy_enable (bool): Set to "NO" by default.
|
||||
# Set it to "YES" to enable igmpproxy.
|
||||
# igmpproxy_conf (path): Set full path to configuration file.
|
||||
# Default is "%%PREFIX%%/etc/igmpproxy.conf"
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="igmpproxy"
|
||||
rcvar=`set_rcvar`
|
||||
command="%%PREFIX%%/sbin/${name}"
|
||||
procname="%%PREFIX%%/sbin/${name}"
|
||||
command=/usr/sbin/daemon
|
||||
required_files="%%PREFIX%%/etc/igmpproxy.conf"
|
||||
igmpproxy_enable=${igmpproxy_enable-"NO"}
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
igmpproxy_enable=${igmpproxy_enable-"NO"}
|
||||
igmpproxy_conf=${igmpproxy_config-"%%PREFIX%%/etc/igmpproxy.conf"}
|
||||
|
||||
command_args=" -cf $procname $igmpproxy_conf"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
4
net/igmpproxy/pkg-plist
Normal file
4
net/igmpproxy/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
sbin/igmpproxy
|
||||
@unexec if cmp -s %D/etc/igmpproxy.conf.sample %D/etc/igmpproxy.conf; then rm -f %D/etc/igmpproxy.conf; fi
|
||||
etc/igmpproxy.conf.sample
|
||||
@exec if [ ! -f %D/etc/igmpproxy.conf ]; then cp -p %D/%F %B/igmpproxy.conf; fi
|
Loading…
Reference in New Issue
Block a user