From owner-freebsd-questions@FreeBSD.ORG Sat Jan 1 10:11:27 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A24416A4CE for ; Sat, 1 Jan 2005 10:11:27 +0000 (GMT) Received: from smtpauth03.mail.atl.earthlink.net (smtpauth03.mail.atl.earthlink.net [209.86.89.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98D1543D53 for ; Sat, 1 Jan 2005 10:11:26 +0000 (GMT) (envelope-from algould@datawok.com) Received: from [206.255.31.21] (helo=[192.168.63.10]) by smtpauth03.mail.atl.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 4.34) id 1CkgEI-0002k0-2x; Sat, 01 Jan 2005 05:11:26 -0500 From: "Andrew L. Gould" To: freebsd-questions@freebsd.org Date: Sat, 1 Jan 2005 04:12:41 -0600 User-Agent: KMail/1.6.2 References: <372BEDD4-5B93-11D9-A9DC-000D93AD26C8@tntluoma.com> <1104547284l.14354l.1l@BARTON> <876AB90C-5BC3-11D9-A9DC-000D93AD26C8@tntluoma.com> In-Reply-To: <876AB90C-5BC3-11D9-A9DC-000D93AD26C8@tntluoma.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200501010412.41782.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69563f9fea00a6dd62bc620d7eebe7f01577a2e4e46d31bfd75c350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 206.255.31.21 cc: Timothy Luoma Subject: Re: iTunes server setup not going well X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2005 10:11:27 -0000 On Saturday 01 January 2005 01:05 am, Timothy Luoma wrote: > On Dec 31, 2004, at 9:41 PM, jason henson wrote: > >> [did that... I have downloaded Rendezvous.tar.gz and > >> mDNSResponder-58.8.tar.gz to /usr/ports/distfiles/] > >> "After doing this, go back to /usr/ports/net/rendezvous (if > >> needed) and type: make install clean" > >> BUT... but... there is no /usr/ports/net/rendezvous ! > > > > ports/net/p5-Net-Rendezvous > > They're the same? I had seen that one but didn't realize it was the > same. > > >> I thought maybe that I had to build mDNSResponder first, so I > >> tried that: > >> freebsd# cd /usr/ports/net/mDNSResponder/ > >> freebsd# make install clean > >> ===> Vulnerability check disabled, database not found > >> ===> Extracting for mDNSResponder-58.8 > >> => Checksum OK for mDNSResponder-58.8.tar.gz. > >> => Checksum OK for mDNSdocs-1.0.tar.gz. > >> ===> Patching for mDNSResponder-58.8 > >> ===> Applying FreeBSD patches for mDNSResponder-58.8 > >> 4 out of 5 hunks failed--saving rejects to mDNSPosix/Makefile.rej > >> => Patch patch-mDNSPosix::Makefile failed to apply cleanly. > >> => Patch(es) patch-NetMonitor.c patch-Responder.c > >> patch-mDNSCore::mDNSClientAPI.h applied cleanly. > >> *** Error code 1 > > > > Don't download it yourself, do make fetch, or just make install. > > Looks like you are downloading a different version than has been > > ported. If you want the port updated contact the maintainer. > > OK, I think I've got it working now. > > Except that /usr/local/etc/rc.d/mDNSResponder.sh didn't exist > > I copied /usr/ports/net/mDNSResponder/files/mDNSResponder.sh there, > but it clearly expects to be automatically configured by the > installation program. > > #!/bin/sh > > # PROVIDE: mDNSResponder > # REQUIRE: NETWORKING > # KEYWORD: FreeBSD > > . %%RC_SUBR%% > > name=mDNSResponder > rcvar=`set_rcvar` > > command=%%PREFIX%%/sbin/mDNSResponder > > mDNSResponder_enable=${mDNSResponder_enable:-"NO"} > mDNSResponder_flags=${mDNSResponder_flags:-"-b -n `/bin/hostname > -s`"} > > pidfile="/var/run/mDNSResponder.pid" > > load_rc_config $name > run_rc_command "$1" > > # end > > There's no 'mDNSResponder' in any sbin folder, there is one in > /usr/local/bin/mDNSResponder, so I tried changing that line to > > command=/usr/local/bin/mDNSResponder > > but then I get > > set_rcvar: not found > load_rc_config: not found > run_rc_command: not found > > I suspect that may have something to do with this line: > > . %%RC_SUBR%% > > and I have no idea what that should be. > > So I Googled "RC_SUBR mDNSResponder" and came across > http://lists.freebsd.org/pipermail/freebsd-ports/2004-September/ > 015760.html which suggested I use ". /usr/local/etc/rc.subr" which > doesn't exist (maybe that's where it was for 4.x?) it is now at > /etc/rc.subr so I used this: > > . /etc/rc.subr /usr/ports/sysutils/rc_subr A good explanation: http://www.freshports.org/sysutils/rc_subr/ > > so now I can run > > /usr/local/etc/rc.d/mDNSResponder.sh start > > without error > > Does it work? > > Well, we'll have to wait until I get to the office and check. > > TjL > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"