The FreeBSD Diary |
(TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. |
Shortcut for compiling from CD-ROM
18 March 1999
|
This section shows you how to make a symbolic link which will make your port building
from CD-ROM much faster. That said, I couldn't make this work. I think perhaps you also need the port skeltons. But I'm not sure. Good luck You may wish to refer to the FreeBSD Handbook to see how to install a port from CD-ROM. |
Changing /etc/make.conf
|
According to the documentation in the handbook (see the link above), I added the
following to /etc/make.conf:PORTSDIR= /cdrom/ports DISTDIR= /tmp/distfiles WRKDIRPREFIX= /tmp |
Creating the link
|
# mkdir /usr/ports # cd /usr/ports # mount /cdrom # ln -s /cdrom/ports/distfiles distfiles Now all you need to do to build a port is: # mount /cdrom # cd /usr/ports/net/isc-dhcp2 # make # make install |