mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 15:51:51 -04:00
PR: 206325 Submitted by: Yuichiro NAITO <naito.yuichiro@gmail.com> Reviewed by: w.schwarzenfeld@utanet.at
27 lines
803 B
Bash
27 lines
803 B
Bash
--- initscript/freebsd/avahi-dnsconfd.sh.in.orig 2010-08-26 09:51:39.037153000 +0900
|
|
+++ initscript/freebsd/avahi-dnsconfd.sh.in 2016-01-17 11:59:50.394307000 +0900
|
|
@@ -12,18 +12,22 @@
|
|
# DNS servers in a DHCP-like fashion with mDNS.
|
|
#
|
|
|
|
-avahi_dnsconfd_enable=${avahi_dnsconfd_enable-"NO"}
|
|
avahi_dnsconfd_flags=${avahi_dnsconfd_flags-"-D"}
|
|
|
|
. /etc/rc.subr
|
|
+. %%GNOME_SUBR%%
|
|
+
|
|
+avahi_dnsconfd_enable=${avahi_dnsconfd_enable-${gnome_enable}}
|
|
|
|
name=avahi_dnsconfd
|
|
-rcvar=`set_rcvar`
|
|
+rcvar=avahi_dnsconfd_enable
|
|
|
|
start_cmd=avahi_dnsconfd_start
|
|
stop_cmd=avahi_dnsconfd_stop
|
|
|
|
avahi_dnsconfd_bin=@sbindir@/avahi-dnsconfd
|
|
+command=${avahi_dnsconfd_bin}
|
|
+pidfile="/var/run/avahi-dnsconfd.pid"
|
|
|
|
avahi_dnsconfd_start() {
|
|
checkyesno avahi_dnsconfd_enable && echo "Starting avahi-dnsconfd." && \
|