mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 23:39:20 -04:00
literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
25 lines
480 B
Bash
25 lines
480 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: mdnsresponder
|
|
# REQUIRE: DAEMON
|
|
#
|
|
# Howl's mDNSResponder, a Zeroconf (Bonjour) service advertisement daemon.
|
|
|
|
# Add the following lines to /etc/rc.conf to enable mdnsresponder:
|
|
# mdnsresponder_enable="YES"
|
|
# mdnsresponder_flags="<set as needed>"
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=mdnsresponder
|
|
rcvar=mdnsresponder_enable
|
|
|
|
command=%%PREFIX%%/bin/mDNSResponder
|
|
|
|
load_rc_config ${name}
|
|
|
|
mdnsresponder_enable=${mdnsresponder_enable-"NO"}
|
|
|
|
run_rc_command "$1"
|