mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Switch mDNSResponder from the Apple startup script to a simple rc.subr
script. This means that mdnsd is not started by default and must be enabled by adding an mdnsd_enable="YES" line to your /etc/rc.conf. This works around a panic in the multicast code when network interfaces are removed and multicast sockets are open on them since many users of this port only need the utilities, not the daemon. Approved by: portmgr (krion)
This commit is contained in:
parent
782b0f896b
commit
97058ab04a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=131950
9
UPDATING
9
UPDATING
@ -7,6 +7,15 @@ time you update your ports collection, before attempting any port
|
||||
upgrades.
|
||||
|
||||
|
||||
20050324:
|
||||
AFFECTS: users of net/mDNSResponder,
|
||||
AUTHOR: brooks@FreeBSD.org
|
||||
|
||||
In mDNSResponder 98_1, mdnsd is no longer started by default due to a
|
||||
switch to an rc.subr startup script. To start it, you must add add
|
||||
mdnsd_enable="YES" to your /etc/rc.conf or other suitable
|
||||
configuration file.
|
||||
|
||||
20050320:
|
||||
AFFECTS: users of x11/kde3, x11/kdelibs3, x11/kdebase3, x11-themes/kdeartwork3, www/akregator, x11-themes/phase, multimedia/kdemultimedia3
|
||||
AUTHOR: kde@freebsd.org
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
PORTNAME= mDNSResponder
|
||||
PORTVERSION= 98
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net dns
|
||||
MASTER_SITES= http://darwinsource.opendarwin.org/tarballs/apsl/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
||||
@ -19,6 +20,7 @@ INSTALLS_SHLIB= YES
|
||||
|
||||
USE_GMAKE= YES
|
||||
USE_REINPLACE= YES
|
||||
USE_RC_SUBR= mdnsd.sh
|
||||
MAKE_ARGS+= os=freebsd LOCALBASE=${PREFIX} MANPATH=${MANPREFIX}/man
|
||||
BUILD_WRKSRC= ${WRKSRC}/mDNSPosix
|
||||
INSTALL_WRKSRC= ${WRKSRC}/mDNSPosix
|
||||
|
19
net/mDNSResponder/files/mdnsd.sh.in
Normal file
19
net/mDNSResponder/files/mdnsd.sh.in
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
# PROVIDE: mdnsd
|
||||
# REQIORE: DAEMON
|
||||
# KEYWORD: FreeBSD shutdown
|
||||
|
||||
mdnsd_enable="NO"
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name=mdnsd
|
||||
rc_var=`set_rcvar`
|
||||
command="%%PREFIX%%/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
run_rc_command $*
|
14
net/mDNSResponder/files/patch-mDNSPosix_Makefile
Normal file
14
net/mDNSResponder/files/patch-mDNSPosix_Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- mDNSPosix/Makefile.orig
|
||||
+++ mDNSPosix/Makefile
|
||||
@@ -369,7 +369,7 @@
|
||||
|
||||
all: setup Daemon libdns_sd Client Responder ProxyResponder Identify NetMonitor dnsextd $(OPTIONALTARG)
|
||||
|
||||
-install: setup InstalledDaemon InstalledLib InstalledStartup InstalledManPages $(OPTINSTALL)
|
||||
+install: setup InstalledDaemon InstalledLib InstalledManPages $(OPTINSTALL)
|
||||
|
||||
# 'setup' sets up the build directory structure the way we want
|
||||
setup:
|
@ -3,7 +3,6 @@ bin/mDNSIdentify
|
||||
bin/mDNSNetMonitor
|
||||
bin/mDNSProxyResponderPosix
|
||||
bin/mDNSResponderPosix
|
||||
etc/rc.d/mdns.sh
|
||||
include/dns_sd.h
|
||||
lib/libdns_sd.so
|
||||
lib/libdns_sd.so.1
|
||||
|
Loading…
Reference in New Issue
Block a user