1997-11-09 06:05:45 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1997 David E. O'Brien
|
|
|
|
.\"
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
1999-07-12 07:49:28 +00:00
|
|
|
.\" $Id: ports.7,v 1.12 1999/07/12 02:33:47 hoek Exp $
|
1997-11-09 06:05:45 +00:00
|
|
|
.\"
|
1998-01-28 01:12:05 +00:00
|
|
|
.Dd January 25, 1998
|
1997-11-09 06:05:45 +00:00
|
|
|
.Dt PORTS 7
|
|
|
|
.Os FreeBSD 2.2
|
|
|
|
.Sh NAME
|
|
|
|
.Nm ports
|
|
|
|
.Nd contributed applications
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm FreeBSD Ports Collection
|
|
|
|
offers a simple way for users and
|
|
|
|
administrators to install applications.
|
|
|
|
Each
|
1998-01-31 02:55:58 +00:00
|
|
|
.Em port
|
|
|
|
contains any patches necessary to make the original
|
|
|
|
application source code compile and run on BSD. Compiling an
|
|
|
|
application is as simple as typing
|
|
|
|
.Ic make build
|
|
|
|
in the port directory! The
|
|
|
|
.Ql Pa Makefile
|
1998-01-28 01:09:46 +00:00
|
|
|
automatically fetches the
|
1997-11-09 06:05:45 +00:00
|
|
|
application source code, either from a local disk or via ftp, unpacks it
|
1998-01-31 02:55:58 +00:00
|
|
|
on your system, applies the patches, and compiles it. If all goes well,
|
1997-11-09 06:05:45 +00:00
|
|
|
simply type
|
1998-01-31 02:55:58 +00:00
|
|
|
.Ic make install
|
1997-11-09 06:05:45 +00:00
|
|
|
to install the application.
|
|
|
|
.Pp
|
1998-12-30 17:32:47 +00:00
|
|
|
It is possible to download and use ports from the FreeBSD repository
|
|
|
|
that are newer than the installed system; however it is important to
|
1999-07-12 02:33:47 +00:00
|
|
|
install the appropriate "Upgrade Kit" from http://www.FreeBSD.org/ports/
|
1998-12-30 17:32:47 +00:00
|
|
|
first! The
|
|
|
|
.Xr portcheckout 1
|
|
|
|
script (also a port, of course!) will help to download new ports.
|
|
|
|
.Pp
|
1997-11-09 06:05:45 +00:00
|
|
|
For more information about using ports, see
|
|
|
|
.Nm The Ports Collection
|
|
|
|
(file:/usr/share/doc/handbook/ports.html --or--
|
1999-07-12 02:33:47 +00:00
|
|
|
http://www.FreeBSD.org/handbook/ports.html).
|
1997-11-09 06:05:45 +00:00
|
|
|
For information about creating new ports, see
|
|
|
|
.Nm Porting applications
|
|
|
|
(file:/usr/share/doc/handbook/porting.html --or--
|
1999-07-12 02:33:47 +00:00
|
|
|
http://www.FreeBSD.org/handbook/porting.html).
|
1997-11-09 06:05:45 +00:00
|
|
|
Both are part of the FreeBSD Handbook.
|
|
|
|
.Pp
|
1998-01-28 01:09:46 +00:00
|
|
|
.Sh TARGETS
|
1998-01-31 02:55:58 +00:00
|
|
|
.Pp
|
|
|
|
Some of the targets work recursively through subdirectories.
|
|
|
|
This lets you, for example, install all of the biology
|
|
|
|
ports. The targets that do this are
|
1998-12-30 17:32:47 +00:00
|
|
|
.Ar build , checksum , clean , configure ,
|
|
|
|
.Ar depends , extract , fetch , install ,
|
1998-01-31 02:55:58 +00:00
|
|
|
and
|
|
|
|
.Ar package .
|
|
|
|
.Pp
|
|
|
|
The following targets will be run automatically by each proceeding
|
|
|
|
target in order. That is,
|
|
|
|
.Ar build
|
|
|
|
will be run
|
|
|
|
.Pq if necessary
|
|
|
|
by
|
|
|
|
.Ar install ,
|
|
|
|
and so on all the way to
|
|
|
|
.Ar fetch .
|
|
|
|
You will usually only target
|
|
|
|
.Ar install .
|
|
|
|
.Bl -tag -width configure
|
|
|
|
.It Ar fetch
|
1998-01-28 01:09:46 +00:00
|
|
|
Fetch all of the files needed to build this port from the site(s)
|
1998-01-31 02:55:58 +00:00
|
|
|
listed in MASTER_SITES and PATCH_SITES. See
|
|
|
|
.Ev FETCH_CMD
|
|
|
|
and
|
|
|
|
.Ev MASTER_SITE_OVERRIDE .
|
|
|
|
.It Ar checksum
|
|
|
|
Verify that the fetched distfile matches the one the port was tested against.
|
|
|
|
Defining
|
|
|
|
.Ev NO_CHECKSUM
|
|
|
|
will skip this step.
|
|
|
|
.It Ar depends
|
|
|
|
Install
|
|
|
|
.Pq or compile if only compilation is necessary
|
|
|
|
any dependencies of the current port. When called by the
|
|
|
|
.Ar extract
|
|
|
|
or
|
|
|
|
.Ar fetch
|
|
|
|
targets, this is run in piecemeal as
|
|
|
|
.Ar fetch-depends ,
|
|
|
|
.Ar build-depends ,
|
|
|
|
etc. Defining
|
|
|
|
.Ev NO_DEPENDS
|
|
|
|
will skip this step.
|
|
|
|
.It Ar extract
|
|
|
|
Expand the distfile into a work directory.
|
|
|
|
.It Ar patch
|
|
|
|
Apply any patches that are necessary for the port.
|
|
|
|
.It Ar configure
|
|
|
|
Configure the port. Some ports will ask you questions during
|
|
|
|
this stage. See
|
|
|
|
.Ev INTERACTIVE
|
|
|
|
and
|
|
|
|
.Ev BATCH .
|
|
|
|
.It Ar build
|
|
|
|
Build the the port. This is the same as calling the
|
|
|
|
.Ar all
|
|
|
|
target.
|
|
|
|
.It Ar install
|
|
|
|
Install the the port and register it with the package system. This
|
|
|
|
is all you really need to do.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The following targets are not run during the normal install process.
|
|
|
|
.Bl -tag -width fetch-list
|
|
|
|
.It Ar fetch-list
|
1998-01-28 01:09:46 +00:00
|
|
|
Show list of files needed to be fetched in order to build the port.
|
1998-01-31 02:55:58 +00:00
|
|
|
.It Ar depends-list package-depends
|
|
|
|
Print a list of all the compile and run dependencies, and dependencies
|
|
|
|
of those dependencies.
|
|
|
|
.It Ar clean
|
|
|
|
Remove the expanded source code. This recurses to dependencies unless
|
|
|
|
.Ev NOCLEANDEPENDS
|
|
|
|
is defined.
|
|
|
|
.It Ar distclean
|
|
|
|
Remove the port's distfile(s) and perform the
|
|
|
|
.Ar clean
|
|
|
|
operation. The
|
|
|
|
.Sq clean
|
|
|
|
portion recurses to dependencies unless
|
|
|
|
.Ev NOCLEANDEPENDS
|
|
|
|
is defined, but the
|
|
|
|
.Sq distclean
|
|
|
|
portion never recurses
|
|
|
|
.Pq this is perhaps a bug .
|
|
|
|
.It Ar reinstall
|
|
|
|
Use this to restore a port after using
|
|
|
|
.Xr pkg_delete 1
|
|
|
|
when you should have used
|
|
|
|
.Ar deinstall .
|
|
|
|
.It Ar deinstall
|
|
|
|
Remove an installed port from the system, similar to
|
|
|
|
.Xr pkg_delete 1 .
|
|
|
|
.It Ar package
|
|
|
|
Make a binary package for the port. The port will be installed if it
|
|
|
|
hasn't already been. The package is a .tgz file that you can use to
|
|
|
|
install the port on other machines with
|
|
|
|
.Xr pkg_add 1 .
|
|
|
|
If the directory specified by
|
|
|
|
.Ev PACKAGES
|
1998-02-07 21:07:51 +00:00
|
|
|
does not exist the package will be put into the current directory.
|
|
|
|
See
|
1998-01-31 02:55:58 +00:00
|
|
|
.Ev PKGREPOSITORY
|
1998-02-07 21:07:51 +00:00
|
|
|
and
|
1998-01-31 02:55:58 +00:00
|
|
|
.Ev PKGFILE .
|
1998-02-07 21:07:51 +00:00
|
|
|
.It Ar readmes
|
|
|
|
Create a port's
|
|
|
|
.Pa README.html .
|
1999-07-12 02:33:47 +00:00
|
|
|
This can be used from
|
|
|
|
.Pa /usr/ports
|
|
|
|
to create a browsable web of all ports on your system!
|
1998-01-28 01:09:46 +00:00
|
|
|
.Sh ENVIRONMENT VARIABLES
|
1998-01-31 02:55:58 +00:00
|
|
|
You can change all of these.
|
|
|
|
.Bl -tag -width MASTER_SITES
|
|
|
|
.It Ev PORTSDIR
|
|
|
|
Location of the ports tree. This is
|
|
|
|
.Pa /usr/ports
|
|
|
|
on
|
|
|
|
.\" .Fx
|
1998-01-28 01:09:46 +00:00
|
|
|
FreeBSD
|
|
|
|
and
|
1998-01-31 02:55:58 +00:00
|
|
|
.\" .Ox ,
|
1998-01-28 01:09:46 +00:00
|
|
|
OpenBSD
|
1998-01-31 02:55:58 +00:00
|
|
|
and
|
|
|
|
.Pa /usr/pkgsrc
|
|
|
|
on
|
|
|
|
.Nx .
|
1999-07-12 02:33:47 +00:00
|
|
|
.It Ev WRKDIRPREFIX
|
|
|
|
Where to create any temporary files. Useful if
|
|
|
|
.Ev PORTSDIR
|
|
|
|
is read-only (perhaps mounted from a cdrom).
|
1998-01-31 02:55:58 +00:00
|
|
|
.It Ev DISTDIR
|
|
|
|
Where to find/put distfiles, normally
|
|
|
|
.Pa distfiles/
|
|
|
|
in
|
|
|
|
.Ev PORTSDIR .
|
|
|
|
.It Ev PACKAGES
|
|
|
|
Used only for the
|
|
|
|
.Ar package
|
|
|
|
target; the base directory for the packages tree, normally
|
|
|
|
.Pa packages/
|
|
|
|
in
|
|
|
|
.Ev PORTSDIR .
|
|
|
|
If this directory exists, the package tree will be (partially) constructed.
|
1998-02-07 21:07:51 +00:00
|
|
|
This directory does not have to exist; if it doesn't packages will be
|
|
|
|
placed into the current directory, or you can define one of
|
1998-01-31 02:55:58 +00:00
|
|
|
.Bl -tag -width PKGREPOSITORY
|
|
|
|
.It Ev PKGREPOSITORY
|
1998-02-07 21:07:51 +00:00
|
|
|
Directory to put the package in.
|
1998-01-31 02:55:58 +00:00
|
|
|
.It Ev PKGFILE
|
|
|
|
The full path to the package.
|
|
|
|
.El
|
|
|
|
.It Ev PREFIX
|
|
|
|
Where to install things in general
|
|
|
|
.Po
|
|
|
|
usually
|
|
|
|
.Pa /usr/local
|
|
|
|
or
|
|
|
|
.Pa /usr/X11R6
|
|
|
|
.Pc
|
|
|
|
.It Ev MASTER_SITES
|
1998-01-28 01:09:46 +00:00
|
|
|
Primary sites for distribution files if not found locally.
|
1998-01-31 02:55:58 +00:00
|
|
|
.It Ev PATCH_SITES
|
|
|
|
Primary location(s) for distribution patch files if not found
|
1998-01-28 01:09:46 +00:00
|
|
|
locally.
|
1998-01-31 02:55:58 +00:00
|
|
|
.It Ev MASTER_SITE_FREEBSD
|
|
|
|
If set, go to the master FreeBSD site for all files.
|
|
|
|
.It Ev MASTER_SITE_OVERRIDE
|
|
|
|
Try going to this site for all files and patches, first.
|
|
|
|
.It Ev NOCLEANDEPENDS
|
|
|
|
If defined, don't let
|
|
|
|
.Sq clean
|
|
|
|
recurse to dependencies.
|
|
|
|
.It Ev FETCH_CMD
|
|
|
|
Command to use to fetch files. Normally
|
|
|
|
.Xr fetch 1 .
|
|
|
|
.It Ev FORCE_PKG_REGISTER
|
|
|
|
If set, overwrite any existing package registration on the system.
|
|
|
|
.It Ev MOTIFLIB
|
1998-01-28 01:09:46 +00:00
|
|
|
Location of libXm.{a,so}.
|
1998-01-31 02:55:58 +00:00
|
|
|
.It Ev INTERACTIVE
|
|
|
|
If defined, only operate on a port if it requires interaction.
|
|
|
|
.It Ev BATCH
|
|
|
|
If defined, only operate on a port if it can be installed 100% automatically.
|
|
|
|
.El
|
1997-11-09 06:05:45 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /usr/ports/xxxx -compact
|
|
|
|
.It Pa /usr/ports
|
|
|
|
The default ports directory (FreeBSD and OpenBSD).
|
1998-01-28 01:09:46 +00:00
|
|
|
.It Pa /usr/pkgsrc
|
1997-11-09 06:05:45 +00:00
|
|
|
The default ports directory (NetBSD).
|
1999-05-02 05:04:26 +00:00
|
|
|
.It Pa /usr/ports/Mk/bsd.port.mk
|
1998-01-31 02:55:58 +00:00
|
|
|
The big Kahuna.
|
1997-11-09 06:05:45 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr make 1 ,
|
|
|
|
.Xr pkg_add 1 ,
|
|
|
|
.Xr pkg_create 1 ,
|
|
|
|
.Xr pkg_delete 1 ,
|
1998-12-30 17:32:47 +00:00
|
|
|
.Xr pkg_info 1 ,
|
|
|
|
.Xr pib 1
|
1999-07-12 07:49:28 +00:00
|
|
|
(a port),
|
|
|
|
.Xr portcheckout 1
|
|
|
|
(also a port),
|
|
|
|
.Xr portlint 1
|
|
|
|
(yet another port).
|
1998-01-31 02:55:58 +00:00
|
|
|
.Pp
|
1998-06-29 06:54:34 +00:00
|
|
|
The FreeBSD handbook
|
|
|
|
.Pp
|
1999-07-12 02:33:47 +00:00
|
|
|
http://www.FreeBSD.org/ports
|
1998-06-29 06:54:34 +00:00
|
|
|
.Pq searchable index of all ports
|
1997-11-09 06:05:45 +00:00
|
|
|
.Sh AUTHORS
|
1998-03-12 07:31:21 +00:00
|
|
|
This man page was originated by
|
|
|
|
.An David O'Brien .
|
|
|
|
The ports collection is maintained by
|
|
|
|
.An Satoshi Asami
|
1999-07-12 07:49:28 +00:00
|
|
|
and the Awesome Ports Team.
|
1997-11-09 06:05:45 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
.Nm The Ports Collection
|
|
|
|
appeared in
|
|
|
|
.Fx 1.0 .
|
1999-07-12 02:33:47 +00:00
|
|
|
It has since spread to
|
|
|
|
.Nx
|
|
|
|
and
|
|
|
|
.Ox .
|
1998-01-31 02:55:58 +00:00
|
|
|
.Sh BUGS
|
|
|
|
Ports documentation is split over four places ---
|
1999-04-29 21:41:11 +00:00
|
|
|
.Pa /usr/ports/Mk/bsd.port.mk ,
|
1998-01-31 02:55:58 +00:00
|
|
|
the
|
|
|
|
.Dq Ports Collection
|
|
|
|
section of the handbook, the
|
|
|
|
.Dq Porting Existing Software
|
|
|
|
section of the handbook, and
|
|
|
|
.Xr ports 7 .
|
|
|
|
.Pp
|
|
|
|
This man page is too long.
|