aboutsummaryrefslogtreecommitdiff
path: root/net/mDNSResponder
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-02 12:08:06 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-02 12:08:06 +0000
commit8c85aa23bf502f7fde5f89aaabb3851232fa023d (patch)
tree6a81e421b2f3b28345b5420d58c9fbec3f28e90d /net/mDNSResponder
parent0b76da7f50dd37943e9392f5776af9511329763b (diff)
downloadports-8c85aa23bf502f7fde5f89aaabb3851232fa023d.tar.gz
ports-8c85aa23bf502f7fde5f89aaabb3851232fa023d.zip
Notes
Diffstat (limited to 'net/mDNSResponder')
-rw-r--r--net/mDNSResponder/Makefile4
-rw-r--r--net/mDNSResponder/files/mdnsresponder.in22
2 files changed, 24 insertions, 2 deletions
diff --git a/net/mDNSResponder/Makefile b/net/mDNSResponder/Makefile
index 9d047fc0b2dd..31f49a259d59 100644
--- a/net/mDNSResponder/Makefile
+++ b/net/mDNSResponder/Makefile
@@ -3,7 +3,7 @@
PORTNAME= mDNSResponder
PORTVERSION= 379.38.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net dns
MASTER_SITES= http://opensource.apple.com/tarballs/${PORTNAME}/
@@ -20,7 +20,7 @@ INSTALL_WRKSRC= ${WRKSRC}/mDNSPosix
MAKE_ARGS= LOCALBASE=${PREFIX} MANPATH=${MANPREFIX}/man os=freebsd
USES= bison gmake
USE_LDCONFIG= yes
-USE_RC_SUBR= mdnsd
+USE_RC_SUBR= mdnsd mdnsresponder
EXTRA_BIN= mDNSClientPosix mDNSIdentify mDNSNetMonitor mDNSProxyResponderPosix mDNSResponderPosix
EXTRA_MAN1= dns-sd.1
diff --git a/net/mDNSResponder/files/mdnsresponder.in b/net/mDNSResponder/files/mdnsresponder.in
new file mode 100644
index 000000000000..97fc6f193af1
--- /dev/null
+++ b/net/mDNSResponder/files/mdnsresponder.in
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+# PROVIDE: mdnsresponder
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name=mdnsresponder
+rcvar=mdnsresponder_enable
+
+load_rc_config $name
+
+: ${mdnsresponder_enable="NO"}
+: ${mdnsresponder_pidfile="/var/run/${name}.pid"}
+
+command="%%PREFIX%%/bin/mDNSResponderPosix"
+command_args="-b -P ${mdnsresponder_pidfile}"
+
+run_rc_command $*