Shortcut for compiling from CD-ROM

Shortcut for compiling from CD-ROM

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

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

Leave a Comment

Scroll to Top