Penguin
Annotated edit history of ports(7) version 4, including all changes. View license author blame.
Rev Author # Line
4 BarryMurphy 1 Use 'host=cvsup.anycast.fast.co.nz' to collect ports from the closest NZ host.
2
2 PerryLorier 3 !!NAME
3 zcat(1) 4 ;:ports - contributed applications
1 zcat(1) 5
2 PerryLorier 6 !!DESCRIPTION
7 ;:The FreeBSD Ports Collection offers a simple way for users and administrators to install applications. Each 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 make build in the port directory! The `Makefile' automatically fetches the application source code, either from a local disk or via ftp, unpacks it on your system, applies the patches, and compiles it. If all goes well, simply type make install to install the application.
1 zcat(1) 8
2 PerryLorier 9 ;:It is possible to download and use ports from the FreeBSD repository that are newer than the installed system; however it is important to install the appropriate "Upgrade Kit" from http://www.FreeBSD.org/ports/ first! The portcheckout(1) script (also a port, of course!) will help to download new ports.
1 zcat(1) 10
2 PerryLorier 11 ;:For more information about using ports, see The Ports Collection (http://www.FreeBSD.org/handbook/ports.html). For information about creating new ports, see Porting applications (http://www.FreeBSD.org/handbook/porting.html). Both are part of the FreeBSD Handbook.
1 zcat(1) 12
2 PerryLorier 13 !!TARGETS
14 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 build, checksum, clean, configure, depends, extract, fetch, install, and package.
1 zcat(1) 15
2 PerryLorier 16 The following targets will be run automatically by each proceeding target in order. That is, build will be run (if necessary) by install, and so on all the way to fetch. Usually, you will only use the install target.
1 zcat(1) 17
2 PerryLorier 18 ;fetch:Fetch all of the files needed to build this port from the site(s) listed in MASTER_SITES and PATCH_SITES. See FETCH_CMD and MASTER_SITE_OVERRIDE.
1 zcat(1) 19
2 PerryLorier 20 ;checksum:Verify that the fetched distfile's checksum matches the one the port was tested against. Defining NO_CHECKSUM will skip this step.
1 zcat(1) 21
2 PerryLorier 22 ;depends:Install (or compile if only compilation is necessary) any dependencies of the current port. When called by the extract or fetch targets, this is run in piecemeal as fetch-depends, build-depends, etc. Defining NO_DEPENDS will skip this step.
1 zcat(1) 23
2 PerryLorier 24 ;extract:Expand the distfile into a work directory.
1 zcat(1) 25
2 PerryLorier 26 ;patch:Apply any patches that are necessary for the port.
1 zcat(1) 27
2 PerryLorier 28 ;configure:Configure the port. Some ports will ask you questions during this stage. See INTERACTIVE and BATCH.
1 zcat(1) 29
2 PerryLorier 30 ;build:Build the port. This is the same as calling the all target.
1 zcat(1) 31
2 PerryLorier 32 ;install:Install the port and register it with the package system. This is all you really need to do.
1 zcat(1) 33
2 PerryLorier 34 ;:The following targets are not run during the normal install process.
1 zcat(1) 35
2 PerryLorier 36 ;fetch-list:Show list of files needed to be fetched in order to build the port.
1 zcat(1) 37
2 PerryLorier 38 ;pretty-print-run-depends-list, pretty-print-build-depends-list: Print a list of all the compile and run dependencies, and ependencies of those dependencies.
1 zcat(1) 39
2 PerryLorier 40 ;clean:Remove the expanded source code. This recurses to dependencies unless NOCLEANDEPENDS is defined.
1 zcat(1) 41
2 PerryLorier 42 ;distclean:Remove the port's distfile(s) and perform the clean target. The `clean' portion recurses to dependencies unless NOCLEANDEPENDS is defined, but the `distclean' portion never recurses (this is perhaps a bug).
1 zcat(1) 43
2 PerryLorier 44 ;reinstall:Use this to restore a port after using pkg_delete(1) when you should have used deinstall.
1 zcat(1) 45
2 PerryLorier 46 ;deinstall:Remove an installed port from the system, similar to pkg_delete(1).
1 zcat(1) 47
2 PerryLorier 48 ;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 pkg_add(1). If the directory specified by PACKAGES does not exist the package will be put into the current directory. See PKGREPOSITORY and PKGFILE.
1 zcat(1) 49
2 PerryLorier 50 ;readmes:Create a port's README.html. This can be used from /usr/ports to create a browsable web of all ports on your system!
51
52 ;search:Search the INDEX file for the pattern specified by either the key (searches the port name, comment, and dependencies) or name (just searches the port name) make argument. For example, one would type:
1 zcat(1) 53
54 cd /usr/ports && make search name=query
55
2 PerryLorier 56 ;:to find all ports whose name matches `query'. Results include the matching ports' path, comment, maintainer, build dependencies, and run dependencies.
1 zcat(1) 57
2 PerryLorier 58 ;index:Create /usr/ports/INDEX, which is used by the pretty-print-* and search targets. While the master INDEX file in the [CVS] repository is periodically updated, running the index target will ensure your INDEX file is up to date with your ports tree.
1 zcat(1) 59
2 PerryLorier 60 !!ENVIRONMENT
61 ;:You can change all of these.
1 zcat(1) 62
2 PerryLorier 63 ;PORTSDIR:Location of the ports tree. This is /usr/ports on FreeBSD and OpenBSD and /usr/pkgsrc on NetBSD.
1 zcat(1) 64
2 PerryLorier 65 ;WRKDIRPREFIX:Where to create any temporary files. Useful if PORTSDIR is read-only (perhaps mounted from a cdrom).
1 zcat(1) 66
2 PerryLorier 67 ;DISTDIR:Where to find/put distfiles, normally distfiles/ in PORTSDIR.
1 zcat(1) 68
2 PerryLorier 69 ;PACKAGES:Used only for the package target; the base directory for the packages tree, normally packages/ in PORTSDIR. If this directory exists, the package tree will be (partially) constructed. 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
1 zcat(1) 70
2 PerryLorier 71 ;PKGREPOSITORY:Directory to put the package in.
1 zcat(1) 72
2 PerryLorier 73 ;PKGFILE:The full path to the package.
1 zcat(1) 74
2 PerryLorier 75 ;PREFIX:Where to install things in general (usually /usr/local or /usr/X11R6)
1 zcat(1) 76
2 PerryLorier 77 ;MASTER_SITES:Primary sites for distribution files if not found locally.
1 zcat(1) 78
2 PerryLorier 79 ;PATCH_SITES:Primary location(s) for distribution patch files if not found locally.
1 zcat(1) 80
2 PerryLorier 81 ;MASTER_SITE_FREEBSD: If set, go to the master FreeBSD site for all files.
1 zcat(1) 82
2 PerryLorier 83 ;MASTER_SITE_OVERRIDE: Try going to this site for all files and patches, first.
1 zcat(1) 84
2 PerryLorier 85 ;NOCLEANDEPENDS: If defined, don't let `clean' recurse to dependencies.
1 zcat(1) 86
2 PerryLorier 87 ;FETCH_CMD:Command to use to fetch files. Normally fetch(1).
1 zcat(1) 88
2 PerryLorier 89 ;FORCE_PKG_REGISTER: If set, overwrite any existing package registration on the system.
1 zcat(1) 90
2 PerryLorier 91 ;MOTIFLIB:Location of libXm.{a,so}.
1 zcat(1) 92
2 PerryLorier 93 ;INTERACTIVE:If defined, only operate on a port if it requires interaction.
1 zcat(1) 94
2 PerryLorier 95 ;BATCH:If defined, only operate on a port if it can be installed 100% automatically.
1 zcat(1) 96
2 PerryLorier 97 !!FILES
98 ;/usr/ports:The default ports directory (FreeBSD and OpenBSD).
99 ;/usr/pkgsrc:The default ports directory (NetBSD).
100 ;/usr/ports/Mk/bsd.port.mk:The big Kahuna.
1 zcat(1) 101
2 PerryLorier 102 !!SEE ALSO
103 ;:make(1), pkg_add(1), pkg_create(1), pkg_delete(1), pkg_info(1), pkg_version(1)
1 zcat(1) 104
3 zcat(1) 105 ;:The following are part of the ports collection:
1 zcat(1) 106
3 zcat(1) 107 ;:pib(1), portcheckout(1), portlint(1)
1 zcat(1) 108
3 zcat(1) 109 ;:The FreeBSD handbook
1 zcat(1) 110
3 zcat(1) 111 ;:http://www.FreeBSD.org/ports (searchable index of all ports)
1 zcat(1) 112
3 zcat(1) 113 !!AUTHORS
114 ;:This man page was originated by David O'Brien. The ports collection is maintained by Satoshi Asami and the Awesome Ports Team.
1 zcat(1) 115
3 zcat(1) 116 !!HISTORY
117 ;:The Ports Collection appeared in FreeBSD 1.0. It has since spread to NetBSD and OpenBSD.
1 zcat(1) 118
3 zcat(1) 119 !!BUGS
120 ;:Ports documentation is split over four places --- /usr/ports/Mk/bsd.port.mk, the ``Ports Collection'' section of the hand- book, the ``Porting Existing Software'' section of the handbook, and ports(7).
1 zcat(1) 121
3 zcat(1) 122 ;:This man page is too long.
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.