DragonFly On-Line Manual Pages

Search: Section:  

DPORTS(7)         DragonFly Miscellaneous Information Manual         DPORTS(7)


dports -- contributed applications


The DragonFly dports collection offers a simple way for users and administrators to install applications. dports is based on FreeBSD's ports collection and most of ports' documentation applies. Each port contains any patches necessary to make the original application source code compile and run on DragonFly. 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. For more information about using ports, see ``Packages and Ports'' in The FreeBSD Handbook, (file:/usr/share/doc/en_US.ISO8859-1/books/handbook/ports.html or http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/ports.html). For information about creating new ports, see The Porter's Handbook (file:/usr/share/doc/en_US.ISO8859-1/books/porters-handbook/index.html or http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/porters-handbook/).


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. 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. config Configure OPTIONS for this port using dialog(1). fetch Fetch all of the files needed to build this port from the sites listed in MASTER_SITES and PATCH_SITES. See FETCH_CMD, MASTER_SITE_OVERRIDE and MASTER_SITE_BACKUP. checksum Verify that the fetched distfile's checksum matches the one the port was tested against. If the distfile's checksum does not match, it also fetches the distfiles which are missing or failed the checksum calculation. Defining NO_CHECKSUM will skip this step. 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. extract Expand the distfile into a work directory. patch Apply any patches that are necessary for the port. configure Configure the port. Some ports will ask you questions during this stage. See INTERACTIVE and BATCH. build Build the port. This is the same as calling the all target. install Install the port and register it with the package system. This is all you really need to do. The following targets are not run during the normal install process. showconfig Display OPTIONS config for this port. showconfig-recursive Display OPTIONS config for this port and all its dependencies. rmconfig Remove OPTIONS config for this port. rmconfig-recursive Remove OPTIONS config for this port and all its dependencies. config-conditional Skip the ports which have already had their OPTIONS configured. config-recursive Configure OPTIONS for this port and all its dependencies using dialog(1). fetch-list Show list of files to be fetched in order to build the port. fetch-recursive Fetch the distfiles of the port and all its dependencies. fetch-recursive-list Show list of files that would be retrieved by fetch-recursive. run-depends-list, build-depends-list Print a list of all the compile and run dependencies, and dependencies of those dependencies, by port directory. all-depends-list Print a list of all dependencies for the port. pretty-print-run-depends-list, pretty-print-build-depends-list Print a list of all the compile and run dependencies, and dependencies of those dependencies, by port name and version. missing Print a list of missing dependencies to be installed for the port. clean Remove the expanded source code. This recurses to dependencies unless NOCLEANDEPENDS is defined. distclean Remove the port's distfiles 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). reinstall Use this to restore a port after using pkg_delete(1) when you should have used deinstall. deinstall Remove an installed port from the system, similar to pkg_delete(1). deinstall-all Remove all installed ports with the same PKGORIGIN from the system. package Make a binary package for the port. The port will be installed if it has not already been. The package is a .tbz 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. package-recursive Like package, but makes a package for each depending port as well. package-name Prints the name with version of the port. readmes Create a port's README.html. This can be used from /usr/dports to create a browsable web of all ports on your system! describe Generate a one-line description of each port for use in the INDEX file. maintainer Display the port maintainer's email address.


You can change all of these. PORTSDIR Location of the ports tree. This is /usr/dports on DragonFly, /usr/ports on FreeBSD and OpenBSD, and /usr/pkgsrc on NetBSD. WRKDIRPREFIX Where to create any temporary files. Useful if PORTSDIR is read-only (perhaps mounted from a CD-ROM). Its default value is /usr/obj/dports . DISTDIR Where to find/put distfiles, normally /usr/distfiles. PACKAGES Used only for the package target; the base directory for the packages tree, normally /usr/packages. If this directory exists, the package tree will be (partially) constructed. This directory does not have to exist; if it does not, packages will be placed into the current directory, or you can define one of PKGREPOSITORY Directory to put the package in. PKGFILE The full path to the package. LOCALBASE Where existing things are installed and where to search for files when resolving dependencies (usually /usr/local). PREFIX Where to install this port (usually set to the same as LOCALBASE). MASTER_SITES Primary sites for distribution files if not found locally. PATCH_SITES Primary locations for distribution patch files if not found locally. MASTER_SITE_FREEBSD If set, go to the master FreeBSD site for all files. MASTER_SITE_OVERRIDE Try going to these sites for all files and patches, first. MASTER_SITE_BACKUP Try going to these sites for all files and patches, last. RANDOMIZE_MASTER_SITES Try the download locations in a random order. MASTER_SORT Sort the download locations according to user supplied pattern. Example: .dk .sunet.se .se dk.php.net .no .de heanet.dl.sourceforge.net NOCLEANDEPENDS If defined, do not let clean recurse to dependencies. FETCH_CMD Command to use to fetch files. Normally fetch(1). FORCE_PKG_REGISTER If set, overwrite any existing package registration on the system. MOTIFLIB Location of libXm.{a,so}. INTERACTIVE If defined, only operate on a port if it requires interaction. BATCH If defined, only operate on a port if it can be installed 100% automatically. DISABLE_VULNERABILITIES If defined, disable check for security vulnerabilities using portaudit(1) (ports/ports-mgmt/portaudit) when installing new ports. NO_IGNORE If defined, allow installation of ports marked as <FORBIDDEN>. The default behavior of the Ports framework is to abort when the installation of a forbidden port is attempted. Of course, these ports may not work as expected, but if you really know what you are doing and are sure about installing a forbidden port, then NO_IGNORE lets you do it. NO_CHECKSUM If defined, skip verifying the port's checksum. TRYBROKEN If defined, attempt to build a port even if it is marked as <BROKEN>. PORT_DBDIR Directory where the results of configuring OPTIONS are stored. Defaults to /var/db/ports. Each port where OPTIONS have been configured will have a uniquely named sub-directory, containing a single file options.


/usr/dports The default ports directory /usr/dports/Mk/bsd.port.mk The big Kahuna.


make(1), pkg(8) The following are part of the ports collection: portaudit(1), portlint(1) The FreeBSD Handbook. http://www.FreeBSD.org/ports (searchable index of all ports)


The Ports Collection appeared in FreeBSD 1.0. It has since spread to NetBSD, OpenBSD and DragonFly.


This manual page was originated by David O'Brien.


Ports documentation is split over four places -- /usr/dports/Mk/bsd.port.mk, The Porter's Handbook, the ``Packages and Ports'' chapter of The FreeBSD Handbook, and this manual page. DragonFly 4.3 May 23, 2013 DragonFly 4.3

Search: Section: