*BSD News Article 89828


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.radio.cz!newsbreeder.radio.cz!news.radio.cz!CESspool!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!newsfeed.internetmci.com!uuneo.neosoft.com!dolphin.neosoft.com!nobody
From: conrads@neosoft.com (Conrad Sabatier)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Linking to /cdrom/ports
Date: Fri, 21 Feb 1997 18:45:52 -0600
Organization: NeoSoft, Inc.
Lines: 56
Message-ID: <0kfle5.ct1.ln@dolphin.neosoft.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>
Reply-To: conrads@neosoft.com
NNTP-Posting-Host: 206.27.167.0
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:35895

In article <330C0687.2781E494@freebsd.org>,
	"Jordan K. Hubbard" <jkh@FreeBSD.org> writes:
> Conrad Sabatier wrote:
>> More confused than ever now!  :-)
>> 
>> So then it *is* OK to do it like I did above?
> 
> Yes, totally.
> 
>> Right, I grasp that much.  :-)  What I'm still confused about is why the
>> handbook says to create a new directory, symlink /usr/ports to it, and
>> then lndir /usr/ports/ to /cdrom/ports.  Doesn't make sense to me.
> 
> Heh, it does?!  Where?  I just looked at James Raynard's port tutorial
> and it does not say this at all.
> 
>> If I lndir /cdrom/ports /usr/ports, won't /usr/ports be a writeable
>> directory?  So why the additional linking suggested in the handbook?
> 
> There is not, to my knowledge, any additional linking suggested in the
> handbook but if you have a more exact URL, I'm more than willing to be
> proven wrong so that I can correct it. :-)

Well, I already mailed this to Jordan (and it *was* in my original post),
but just so folks can see I'm not totally crazy and/or stupid, here it is
again.  :-)

From the Handbook:

4.2.3.1. Compiling ports from CDROM

[...]

Create a "link tree" to it using the lndir(1) command that comes with the
XFree86 distribution. Find a location with some free space and create a
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
directory there, and make a symbolic link from /usr/ports to that
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
directory. Then invoke the lndir(1) command with the full pathname of the
^^^^^^^^^
``ports'' directory on the CDROM as an argument (this might be, for
example, something like: lndir /cdrom/ports). Then you can build ports
directly off the CDROM by building them in the link tree you have created.

This would seem to suggest doing the following:

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). 

-- 
Conrad Sabatier		http://www.neosoft.com/~conrads