mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-04 11:23:46 +00:00
9aac569eaa
Where necessary add $FreeBSD$ to the file No PORTREVISION bump necessary because this is a no-op
30 lines
574 B
Bash
30 lines
574 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: miniupnpd
|
|
# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv
|
|
|
|
. /etc/rc.subr
|
|
|
|
# Add the following line to /etc/rc.conf to enable miniupnpd
|
|
# miniupnpd_enable="YES"
|
|
# miniupnpd_flags="<set as needed>"
|
|
|
|
name=miniupnpd
|
|
rcvar=miniupnpd_enable
|
|
load_rc_config $name
|
|
|
|
miniupnpd_enable=${miniupnpd_enable:-"NO"}
|
|
miniupnpd_config=${miniupnpd_config:-"%%PREFIX%%/etc/miniupnpd.conf"}
|
|
|
|
command="%%PREFIX%%/sbin/miniupnpd"
|
|
pidfile="/var/run/${name}.pid"
|
|
command_args="-f $miniupnpd_config"
|
|
|
|
required_files=$miniupnpd_config
|
|
|
|
run_rc_command "$1"
|
|
|