Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!iafrica.com!not-for-mail From: markm@NOSPAMiafrica.com (Mark R V Murray) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Linking to /cdrom/ports Date: 24 Feb 1997 10:31:35 GMT Organization: UUNET Internet Africa Lines: 25 Message-ID: <5erqm7$529$1@proxy01.iafrica.com> References: <2ep9e5.qm1.ln@dolphin.neosoft.com> <01bc1d8d$f2f09aa0$0342000a@southpole> <1mace5.ir1.ln@dolphin.neosoft.com> <330A628D.4487EB71@FreeBSD.org> <j4ree5.8j.ln@dolphin.neosoft.com> <330C0687.2781E494@FreeBSD.org> <0kfle5.ct1.ln@dolphin.neosoft.com> NNTP-Posting-Host: rodent.iafrica.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36022 In article <0kfle5.ct1.ln@dolphin.neosoft.com>, conrads@neosoft.com (Conrad Sabatier) writes: > mkdir <some-dir> > ln -s <some-dir> /usr/ports > lndir /cdrom/ports /usr/ports > > It appears the first step really is *not* needed (as I suspected). There is a much better method, already built into /usr/share/mk/bsd.ports.mk. Mount the CD with the distfiles on /cdrom (so that /cdrom/ports/distfiles exists), and in /etc/make.conf set FETCH_SYMLINK_DISTFILES= YES Then, at fetch time, instead of copying the file from the cd, an appropriate link will be set IFF the correct file is there. This will work in 2.2 and CURRENT. QED! M (I have despammed my email address - edit it if you want to reply to me by email)