Describe how to use WRKDIRPREFIX to compile stuff off a CDROM.

This commit is contained in:
Satoshi Asami 1998-12-12 07:08:16 +00:00
parent e65f2d58f8
commit 61726cf09c
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=3909

View file

@ -1,4 +1,4 @@
<!-- $Id: ports.sgml,v 1.33 1998-11-07 11:50:45 asami Exp $ -->
<!-- $Id: ports.sgml,v 1.34 1998-12-12 07:08:16 asami Exp $ -->
<!-- The FreeBSD Documentation Project -->
<chapt><heading>Installing Applications: The Ports collection<label id="ports"></heading>
@ -192,6 +192,20 @@ to build ports just as you normally do and the port collection's built
in search path should find the tarballs in file:/cdrom/ports/distfiles/
(if they exist there) rather than downloading them over the net.
<p>
Another way of doing this, if you want to just use the port skeletons
on the CDROM, is to set these variables in <tt>/etc/make.conf</tt>:
<tscreen><verb>
PORTSDIR= /cdrom/ports
DISTDIR= /tmp/distfiles
WRKDIRPREFIX= /tmp
</verb></tscreen>
(substitute "/tmp" for any place you have enough free space). Then,
just cd to the appropriate subdirectory under "/cdrom/ports" and type
"make install" as usual. <tt/WRKDIRPREFIX/ will cause the port to be
built under /tmp/cdrom/ports; for instance, games/oneko will be built
under /tmp/cdrom/ports/games/oneko.
<p>
Note that there are some ports for which we cannot provide the original
source in the CDROM due to licensing limitations. In that case,
@ -290,7 +304,7 @@ installed. Here is the Makefile for ElectricFence:-
# Date created: 13 November 1997
# Whom: jraynard
#
# $Id: ports.sgml,v 1.33 1998-11-07 11:50:45 asami Exp $
# $Id: ports.sgml,v 1.34 1998-12-12 07:08:16 asami Exp $
#
DISTNAME= ElectricFence-2.0.5