Module submission - mDNSResponder

Dave Brown dagbrown at lart.ca
Sat Nov 4 06:37:43 CET 2006


module name       : mDNSResponder
suggested section : net
update (y/n)      : n
bugfix (y/n)      : n
security (y/n)    : n

Unlike the other two mDNS responders in the moonbase, Apple's also provides
an NSS module so that you can refer to other zeroconf'd machines in your
network by name from all utilities, not from the utilities that specifically
link with the client libraries.

dagbrown

-------------- next part --------------
--- mDNSResponder/BUILD	1970-01-01 09:00:00.000000000 +0900
+++ mDNSResponder/BUILD	2006-11-04 14:27:48.747687919 +0900
@@ -0,0 +1,6 @@
+(
+    patch -p0 < $SCRIPT_DIRECTORY/makefile.patch && 
+    cd mDNSPosix && make os=linux INSTBASE=/usr STARTUPSCRIPTDIR=/etc/init.d &&
+    prepare_install &&
+    make install os=linux INSTBASE=/usr STARTUPSCRIPTDIR=/etc/init.d
+) > $C_FIFO 2>&1
--- mDNSResponder/CONFLICTS	1970-01-01 09:00:00.000000000 +0900
+++ mDNSResponder/CONFLICTS	2006-11-04 14:33:41.154898147 +0900
@@ -0,0 +1,2 @@
+conflicts howl &&
+conflicts avahi
--- mDNSResponder/DETAILS	1970-01-01 09:00:00.000000000 +0900
+++ mDNSResponder/DETAILS	2006-11-04 13:18:52.098553997 +0900
@@ -0,0 +1,20 @@
+          MODULE=mDNSResponder
+         VERSION=107.6
+          SOURCE=$MODULE-$VERSION.tar.gz
+      SOURCE_URL=ftp://ftp.x.org/pub/X11R7.0/src/everything/
+      SOURCE_URL=http://www.opensource.apple.com/darwinsource/tarballs/other/
+      SOURCE_VFY=sha1:fe6e59ec703eb5af455335a42951f334b48af262 
+        WEB_SITE=http://developer.apple.com/opensource/internet/bonjour.html
+         ENTERED=20061104
+         UPDATED=20061104
+           SHORT="Apple's Bonjour service discovery implementation"
+
+cat << EOF
+Bonjour is a networking technology that lets you create an instant network of
+computers and devices without any configuration. It allows the services and
+capabilities of each device to be registered on the network, and allows these
+services to be dynamically discoverable by other devices on the network.
+
+The open source mDNSResponder project contains the Bonjour service discovery
+implemenation that's built into Mac OS X and Bonjour for Windows. 
+EOF
--- mDNSResponder/POST_INSTALL	1970-01-01 09:00:00.000000000 +0900
+++ mDNSResponder/POST_INSTALL	2006-11-04 14:28:16.842986466 +0900
@@ -0,0 +1 @@
+sedit '/mdns/!s/^\(hosts:.*\)dns\(.*\)/\1mdns dns\2/' /etc/nsswitch.conf
--- mDNSResponder/POST_REMOVE	1970-01-01 09:00:00.000000000 +0900
+++ mDNSResponder/POST_REMOVE	2006-11-04 13:24:46.785746033 +0900
@@ -0,0 +1 @@
+sedit 's: mdns::' /etc/nsswitch.conf
--- mDNSResponder/init.d/mdnsd	1970-01-01 09:00:00.000000000 +0900
+++ mDNSResponder/init.d/mdnsd	2006-11-04 14:18:37.709430685 +0900
@@ -0,0 +1,10 @@
+#!/bin/sh
+# 
+# Startup file for the mdns responder
+# 
+# chkconfig: 345 85 15
+# description: mdnsd is Apple's zeroconf responder daemon
+# processname: mdnsd
+# pidfile: /var/run/mdnsd.pid
+
+. /lib/lsb/init-functions $1
--- mDNSResponder/makefile.patch	1970-01-01 09:00:00.000000000 +0900
+++ mDNSResponder/makefile.patch	2006-11-04 14:25:53.518564086 +0900
@@ -0,0 +1,30 @@
+*** mDNSPosix/Makefile.orig	2006-11-04 14:22:19.000000000 +0900
+--- mDNSPosix/Makefile	2006-11-04 14:25:33.000000000 +0900
+***************
+*** 438,442 ****
+  all: setup Daemon libdns_sd Clients SAClient SAResponder SAProxyResponder Identify NetMonitor dnsextd $(OPTIONALTARG)
+  
+! install: setup InstalledDaemon InstalledStartup InstalledLib InstalledManPages InstalledClients $(OPTINSTALL)
+  
+  # 'setup' sets up the build directory structure the way we want
+--- 438,442 ----
+  all: setup Daemon libdns_sd Clients SAClient SAResponder SAProxyResponder Identify NetMonitor dnsextd $(OPTIONALTARG)
+  
+! install: setup InstalledDaemon InstalledLib InstalledManPages InstalledClients $(OPTINSTALL)
+  
+  # 'setup' sets up the build directory structure the way we want
+***************
+*** 575,580 ****
+  	# Check the nsswitch.conf file.
+  	# If 'mdns' does not already appear on the "hosts:" line, then add it right before 'dns'
+! 	cp -f /etc/nsswitch.conf /etc/nsswitch.conf.pre-mdns
+! 	sed -e '/mdns/!s/^\(hosts:.*\)dns\(.*\)/\1mdns dns\2/' /etc/nsswitch.conf.pre-mdns > /etc/nsswitch.conf
+  
+  #############################################################################
+--- 575,580 ----
+  	# Check the nsswitch.conf file.
+  	# If 'mdns' does not already appear on the "hosts:" line, then add it right before 'dns'
+! 	# cp -f /etc/nsswitch.conf /etc/nsswitch.conf.pre-mdns
+! 	# sed -e '/mdns/!s/^\(hosts:.*\)dns\(.*\)/\1mdns dns\2/' /etc/nsswitch.conf.pre-mdns > /etc/nsswitch.conf
+  
+  #############################################################################
-------------- next part --------------
lvu submit mDNSResponder 9890f309f3d09100a37b25edd1c960fa  -
2.6.16 2.6.12 gcc-3.4.6 glibc-2.3.6



More information about the Lunar mailing list