14000f72fSDavid E. O'Brien.\" 24000f72fSDavid E. O'Brien.\" Copyright (c) 1997 David E. O'Brien 34000f72fSDavid E. O'Brien.\" 44000f72fSDavid E. O'Brien.\" All rights reserved. 54000f72fSDavid E. O'Brien.\" 64000f72fSDavid E. O'Brien.\" Redistribution and use in source and binary forms, with or without 74000f72fSDavid E. O'Brien.\" modification, are permitted provided that the following conditions 84000f72fSDavid E. O'Brien.\" are met: 94000f72fSDavid E. O'Brien.\" 1. Redistributions of source code must retain the above copyright 104000f72fSDavid E. O'Brien.\" notice, this list of conditions and the following disclaimer. 114000f72fSDavid E. O'Brien.\" 2. Redistributions in binary form must reproduce the above copyright 124000f72fSDavid E. O'Brien.\" notice, this list of conditions and the following disclaimer in the 134000f72fSDavid E. O'Brien.\" documentation and/or other materials provided with the distribution. 144000f72fSDavid E. O'Brien.\" 154000f72fSDavid E. O'Brien.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR 164000f72fSDavid E. O'Brien.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 174000f72fSDavid E. O'Brien.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 184000f72fSDavid E. O'Brien.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 194000f72fSDavid E. O'Brien.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 204000f72fSDavid E. O'Brien.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 214000f72fSDavid E. O'Brien.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 224000f72fSDavid E. O'Brien.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 234000f72fSDavid E. O'Brien.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 244000f72fSDavid E. O'Brien.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 254000f72fSDavid E. O'Brien.\" 267f3dea24SPeter Wemm.\" $FreeBSD$ 274000f72fSDavid E. O'Brien.\" 2865d476e0SKirill Ponomarev.Dd June 16, 2004 294000f72fSDavid E. O'Brien.Dt PORTS 7 303d45e180SRuslan Ermilov.Os 314000f72fSDavid E. O'Brien.Sh NAME 324000f72fSDavid E. O'Brien.Nm ports 334000f72fSDavid E. O'Brien.Nd contributed applications 344000f72fSDavid E. O'Brien.Sh DESCRIPTION 354000f72fSDavid E. O'BrienThe 36b5c508fbSRuslan Ermilov.Fx 370412d17cSRuslan ErmilovPorts Collection 384000f72fSDavid E. O'Brienoffers a simple way for users and 394000f72fSDavid E. O'Brienadministrators to install applications. 404000f72fSDavid E. O'BrienEach 4165dfa7aaSTim Vanderhoek.Em port 4265dfa7aaSTim Vanderhoekcontains any patches necessary to make the original 43753d686dSRuslan Ermilovapplication source code compile and run on 44753d686dSRuslan Ermilov.Bx . 45753d686dSRuslan ErmilovCompiling an 4665dfa7aaSTim Vanderhoekapplication is as simple as typing 470412d17cSRuslan Ermilov.Nm make Cm build 480412d17cSRuslan Ermilovin the port directory! 490412d17cSRuslan ErmilovThe 500412d17cSRuslan Ermilov.Pa Makefile 51e4b22b63SDavid E. O'Brienautomatically fetches the 520412d17cSRuslan Ermilovapplication source code, either from a local disk or via FTP, unpacks it 530412d17cSRuslan Ermilovon your system, applies the patches, and compiles it. 540412d17cSRuslan ErmilovIf all goes well, 554000f72fSDavid E. O'Briensimply type 560412d17cSRuslan Ermilov.Nm make Cm install 574000f72fSDavid E. O'Briento install the application. 584000f72fSDavid E. O'Brien.Pp 59b5c508fbSRuslan ErmilovIt is possible to download and use ports from the 60b5c508fbSRuslan Ermilov.Fx 61b5c508fbSRuslan Ermilovrepository 623fea87d2STim Vanderhoekthat are newer than the installed system; however it is important to 630412d17cSRuslan Ermilovinstall the appropriate 640412d17cSRuslan Ermilov.Dq "Upgrade Kit" 650412d17cSRuslan Ermilovfrom 660412d17cSRuslan Ermilov.Pa http://www.FreeBSD.org/ports/ 670412d17cSRuslan Ermilovfirst! 680412d17cSRuslan ErmilovThe 693fea87d2STim Vanderhoek.Xr portcheckout 1 703fea87d2STim Vanderhoekscript (also a port, of course!) will help to download new ports. 713fea87d2STim Vanderhoek.Pp 724000f72fSDavid E. O'BrienFor more information about using ports, see 730412d17cSRuslan Ermilov.Dq "Packages and Ports" 745d3d0230SMurray Stokelyin 750412d17cSRuslan Ermilov.%B "The FreeBSD Handbook" , 76a5d31106SGiorgos Keramidas.Pa ( file:/usr/share/doc/en_US.ISO8859-1/books/handbook/ports.html 770412d17cSRuslan Ermilovor 78a5d31106SGiorgos Keramidas.Pa http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/ports.html ) . 794000f72fSDavid E. O'BrienFor information about creating new ports, see 800412d17cSRuslan Ermilov.%B "The Porter's Handbook" 817b935904SChristian Brueffer.Pa ( file:/usr/share/doc/en_US.ISO8859-1/books/porters-handbook/index.html 820412d17cSRuslan Ermilovor 831061be04SMarc Fonvieille.Pa http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/porters-handbook/ ) . 84e4b22b63SDavid E. O'Brien.Sh TARGETS 8565dfa7aaSTim VanderhoekSome of the targets work recursively through subdirectories. 860412d17cSRuslan ErmilovThis lets you, for example, install all of the 870412d17cSRuslan Ermilov.Dq Li biology 880412d17cSRuslan Ermilovports. 890412d17cSRuslan ErmilovThe targets that do this are 900412d17cSRuslan Ermilov.Cm build , checksum , clean , configure , 910412d17cSRuslan Ermilov.Cm depends , extract , fetch , install , 9265dfa7aaSTim Vanderhoekand 930412d17cSRuslan Ermilov.Cm package . 9465dfa7aaSTim Vanderhoek.Pp 9565dfa7aaSTim VanderhoekThe following targets will be run automatically by each proceeding 960412d17cSRuslan Ermilovtarget in order. 970412d17cSRuslan ErmilovThat is, 980412d17cSRuslan Ermilov.Cm build 9965dfa7aaSTim Vanderhoekwill be run 100c4d9468eSRuslan Ermilov(if necessary) 10165dfa7aaSTim Vanderhoekby 1020412d17cSRuslan Ermilov.Cm install , 10365dfa7aaSTim Vanderhoekand so on all the way to 1040412d17cSRuslan Ermilov.Cm fetch . 105019de50bSDima DorfmanUsually, you will only use the 1060412d17cSRuslan Ermilov.Cm install 107019de50bSDima Dorfmantarget. 1080412d17cSRuslan Ermilov.Bl -tag -width ".Cm configure" 10903687bafSKirill Ponomarev.It Cm config 11003687bafSKirill PonomarevConfigure 11103687bafSKirill Ponomarev.Va OPTIONS 11203687bafSKirill Ponomarevfor this port using 11303687bafSKirill Ponomarev.Xr dialog 1 . 1140412d17cSRuslan Ermilov.It Cm fetch 1150412d17cSRuslan ErmilovFetch all of the files needed to build this port from the sites 1160412d17cSRuslan Ermilovlisted in 1170412d17cSRuslan Ermilov.Va MASTER_SITES 11865dfa7aaSTim Vanderhoekand 1190412d17cSRuslan Ermilov.Va PATCH_SITES . 1200412d17cSRuslan ErmilovSee 1210412d17cSRuslan Ermilov.Va FETCH_CMD 1220412d17cSRuslan Ermilovand 1230412d17cSRuslan Ermilov.Va MASTER_SITE_OVERRIDE . 1240412d17cSRuslan Ermilov.It Cm checksum 125019de50bSDima DorfmanVerify that the fetched distfile's checksum matches the one the port was 126019de50bSDima Dorfmantested against. 12765dfa7aaSTim VanderhoekDefining 1280412d17cSRuslan Ermilov.Va NO_CHECKSUM 12965dfa7aaSTim Vanderhoekwill skip this step. 1300412d17cSRuslan Ermilov.It Cm depends 13165dfa7aaSTim VanderhoekInstall 132c4d9468eSRuslan Ermilov(or compile if only compilation is necessary) 1330412d17cSRuslan Ermilovany dependencies of the current port. 1340412d17cSRuslan ErmilovWhen called by the 1350412d17cSRuslan Ermilov.Cm extract 13665dfa7aaSTim Vanderhoekor 1370412d17cSRuslan Ermilov.Cm fetch 13865dfa7aaSTim Vanderhoektargets, this is run in piecemeal as 1390412d17cSRuslan Ermilov.Cm fetch-depends , build-depends , 1400412d17cSRuslan Ermilovetc. 1410412d17cSRuslan ErmilovDefining 1420412d17cSRuslan Ermilov.Va NO_DEPENDS 14365dfa7aaSTim Vanderhoekwill skip this step. 1440412d17cSRuslan Ermilov.It Cm extract 14565dfa7aaSTim VanderhoekExpand the distfile into a work directory. 1460412d17cSRuslan Ermilov.It Cm patch 14765dfa7aaSTim VanderhoekApply any patches that are necessary for the port. 1480412d17cSRuslan Ermilov.It Cm configure 1490412d17cSRuslan ErmilovConfigure the port. 1500412d17cSRuslan ErmilovSome ports will ask you questions during this stage. 1510412d17cSRuslan ErmilovSee 1520412d17cSRuslan Ermilov.Va INTERACTIVE 15365dfa7aaSTim Vanderhoekand 1540412d17cSRuslan Ermilov.Va BATCH . 1550412d17cSRuslan Ermilov.It Cm build 1560412d17cSRuslan ErmilovBuild the port. 1570412d17cSRuslan ErmilovThis is the same as calling the 1580412d17cSRuslan Ermilov.Cm all 15965dfa7aaSTim Vanderhoektarget. 1600412d17cSRuslan Ermilov.It Cm install 1610412d17cSRuslan ErmilovInstall the port and register it with the package system. 1620412d17cSRuslan ErmilovThis is all you really need to do. 16365dfa7aaSTim Vanderhoek.El 16465dfa7aaSTim Vanderhoek.Pp 16565dfa7aaSTim VanderhoekThe following targets are not run during the normal install process. 16656e37108SGiorgos Keramidas.Bl -tag -width ".Cm fetch-recursive" 16703687bafSKirill Ponomarev.It Cm showconfig 16803687bafSKirill PonomarevDisplay 16903687bafSKirill Ponomarev.Va OPTIONS 17003687bafSKirill Ponomarevconfig for this port. 17103687bafSKirill Ponomarev.It Cm rmconfig 17203687bafSKirill PonomarevRemove 17303687bafSKirill Ponomarev.Va OPTIONS 17403687bafSKirill Ponomarevconfig for this port. 1750412d17cSRuslan Ermilov.It Cm fetch-list 17603687bafSKirill PonomarevShow list of files to be fetched in order to build the port. 17756e37108SGiorgos Keramidas.It Cm fetch-recursive 17856e37108SGiorgos KeramidasFetch the distfiles of the port and all its dependencies. 179515ba752SChristian Brueffer.It Cm fetch-recursive-list 180515ba752SChristian BruefferShow list of files that would be retrieved by 181515ba752SChristian Brueffer.Cm fetch-recursive . 1820412d17cSRuslan Ermilov.It Cm pretty-print-run-depends-list , pretty-print-build-depends-list 18365dfa7aaSTim VanderhoekPrint a list of all the compile and run dependencies, and dependencies 18465dfa7aaSTim Vanderhoekof those dependencies. 1850412d17cSRuslan Ermilov.It Cm clean 1860412d17cSRuslan ErmilovRemove the expanded source code. 1870412d17cSRuslan ErmilovThis recurses to dependencies unless 1880412d17cSRuslan Ermilov.Va NOCLEANDEPENDS 18965dfa7aaSTim Vanderhoekis defined. 1900412d17cSRuslan Ermilov.It Cm distclean 1910412d17cSRuslan ErmilovRemove the port's distfiles and perform the 1920412d17cSRuslan Ermilov.Cm clean 193019de50bSDima Dorfmantarget. 194019de50bSDima DorfmanThe 1950412d17cSRuslan Ermilov.Cm clean 19665dfa7aaSTim Vanderhoekportion recurses to dependencies unless 1970412d17cSRuslan Ermilov.Va NOCLEANDEPENDS 19865dfa7aaSTim Vanderhoekis defined, but the 1990412d17cSRuslan Ermilov.Cm distclean 20065dfa7aaSTim Vanderhoekportion never recurses 201c4d9468eSRuslan Ermilov(this is perhaps a bug). 2020412d17cSRuslan Ermilov.It Cm reinstall 20365dfa7aaSTim VanderhoekUse this to restore a port after using 20465dfa7aaSTim Vanderhoek.Xr pkg_delete 1 20565dfa7aaSTim Vanderhoekwhen you should have used 2060412d17cSRuslan Ermilov.Cm deinstall . 2070412d17cSRuslan Ermilov.It Cm deinstall 20865dfa7aaSTim VanderhoekRemove an installed port from the system, similar to 20965dfa7aaSTim Vanderhoek.Xr pkg_delete 1 . 210515ba752SChristian Brueffer.It Cm deinstall-all 211515ba752SChristian BruefferRemove all installed ports with the same 212515ba752SChristian Brueffer.Va PKGORIGIN 213515ba752SChristian Bruefferfrom the system. 2140412d17cSRuslan Ermilov.It Cm package 2150412d17cSRuslan ErmilovMake a binary package for the port. 2160412d17cSRuslan ErmilovThe port will be installed if it has not already been. 2170412d17cSRuslan ErmilovThe package is a 21881c4ddbfSChristian Brueffer.Pa .tbz 2190412d17cSRuslan Ermilovfile that you can use to 22065dfa7aaSTim Vanderhoekinstall the port on other machines with 22165dfa7aaSTim Vanderhoek.Xr pkg_add 1 . 22265dfa7aaSTim VanderhoekIf the directory specified by 2230412d17cSRuslan Ermilov.Va PACKAGES 2240412d17cSRuslan Ermilovdoes not exist, the package will be put into the current directory. 22583d04c76STim VanderhoekSee 2260412d17cSRuslan Ermilov.Va PKGREPOSITORY 22783d04c76STim Vanderhoekand 2280412d17cSRuslan Ermilov.Va PKGFILE . 2298c3bfd69SChristian Brueffer.It Cm package-recursive 2308c3bfd69SChristian BruefferLike 2318c3bfd69SChristian Brueffer.Cm package , 2328c3bfd69SChristian Bruefferbut makes a package for each depending port as well. 2330412d17cSRuslan Ermilov.It Cm readmes 23483d04c76STim VanderhoekCreate a port's 23583d04c76STim Vanderhoek.Pa README.html . 2366b4c0736STim VanderhoekThis can be used from 2376b4c0736STim Vanderhoek.Pa /usr/ports 2386b4c0736STim Vanderhoekto create a browsable web of all ports on your system! 2390412d17cSRuslan Ermilov.It Cm search 240019de50bSDima DorfmanSearch the 241019de50bSDima Dorfman.Pa INDEX 24265d476e0SKirill Ponomarevfile for the pattern specified by the 2430412d17cSRuslan Ermilov.Va key 24465d476e0SKirill Ponomarev(searches the port name, comment, and dependencies), 2450412d17cSRuslan Ermilov.Va name 24665d476e0SKirill Ponomarev(searches the port name only), 24765d476e0SKirill Ponomarev.Va path 24865d476e0SKirill Ponomarev(searches the port path), 24965d476e0SKirill Ponomarev.Va info 25065d476e0SKirill Ponomarev(searches the port info), 25165d476e0SKirill Ponomarev.Va maint 25265d476e0SKirill Ponomarev(searches the port maintainer), 25365d476e0SKirill Ponomarev.Va cat 25465d476e0SKirill Ponomarev(searches the port category), 25565d476e0SKirill Ponomarev.Va bdeps 25665d476e0SKirill Ponomarev(searches the port build-time dependency), 25765d476e0SKirill Ponomarev.Va rdeps 25865d476e0SKirill Ponomarev(searches the port run-time dependency) 2590412d17cSRuslan Ermilov.Xr make 1 26065d476e0SKirill Ponomarevvariables, and their exclusion counterparts: 26165d476e0SKirill Ponomarev.Va xname , xkey 26265d476e0SKirill Ponomarevetc. 263019de50bSDima DorfmanFor example, one would type: 264019de50bSDima Dorfman.Pp 2650412d17cSRuslan Ermilov.Dl "cd /usr/ports && make search name=query" 266019de50bSDima Dorfman.Pp 267019de50bSDima Dorfmanto find all ports whose 268019de50bSDima Dorfmanname matches 2690412d17cSRuslan Ermilov.Dq Li query . 270019de50bSDima DorfmanResults include the matching ports' path, comment, maintainer, 271019de50bSDima Dorfmanbuild dependencies, and run dependencies. 27265d476e0SKirill Ponomarev.Bd -literal -offset indent 27365d476e0SKirill Ponomarevcd /usr/ports && make search name=pear- \e 27465d476e0SKirill Ponomarev xbdeps=apache 27565d476e0SKirill Ponomarev.Ed 27665d476e0SKirill Ponomarev.Pp 27765d476e0SKirill PonomarevTo find all ports whose 27865d476e0SKirill Ponomarevnames contain 27965d476e0SKirill Ponomarev.Dq Li pear- 28065d476e0SKirill Ponomarevand which do not have apache 28165d476e0SKirill Ponomarevlisted in build-time dependencies. 28265d476e0SKirill Ponomarev.Bd -literal -offset indent 28365d476e0SKirill Ponomarevcd /usr/ports && make search name=pear- \e 28465d476e0SKirill Ponomarev xname='ht(tp|ml)' 28565d476e0SKirill Ponomarev.Ed 28665d476e0SKirill Ponomarev.Pp 28765d476e0SKirill PonomarevTo find all ports whose names contain 28865d476e0SKirill Ponomarev.Dq Li pear- , 28965d476e0SKirill Ponomarevbut not 29065d476e0SKirill Ponomarev.Dq Li html 29165d476e0SKirill Ponomarevor 29265d476e0SKirill Ponomarev.Dq Li http . 29365d476e0SKirill Ponomarev.Bd -literal -offset indent 29465d476e0SKirill Ponomarevmake search key=apache display=name,path,info keylim=1 29565d476e0SKirill Ponomarev.Ed 29665d476e0SKirill Ponomarev.Pp 29765d476e0SKirill PonomarevTo find ports that contain 29865d476e0SKirill Ponomarev.Dq Li apache 29965d476e0SKirill Ponomarevin either of the name, path, info 30065d476e0SKirill Ponomarevfields, ignore the rest of the record. 30103687bafSKirill Ponomarev.It Cm describe 30203687bafSKirill PonomarevGenerate a one-line description of each port for use in the 30303687bafSKirill Ponomarev.Pa INDEX 30403687bafSKirill Ponomarevfile. 3050412d17cSRuslan Ermilov.It Cm index 306019de50bSDima DorfmanCreate 307019de50bSDima Dorfman.Pa /usr/ports/INDEX , 308019de50bSDima Dorfmanwhich is used by the 3090412d17cSRuslan Ermilov.Cm pretty-print-* 310019de50bSDima Dorfmanand 3110412d17cSRuslan Ermilov.Cm search 312019de50bSDima Dorfmantargets. 3137585929eSKirill PonomarevRunning the 3140412d17cSRuslan Ermilov.Cm index 3150412d17cSRuslan Ermilovtarget will ensure your 3160412d17cSRuslan Ermilov.Pa INDEX 3170412d17cSRuslan Ermilovfile is up to date with your ports tree. 3187585929eSKirill Ponomarev.It Cm fetchindex 3197585929eSKirill PonomarevFetch the 3207585929eSKirill Ponomarev.Pa INDEX 3217585929eSKirill Ponomarevfile from the 3227585929eSKirill Ponomarev.Fx 3237585929eSKirill Ponomarevcluster. 3243136363fSRuslan Ermilov.El 325def37e7cSMike Pritchard.Sh ENVIRONMENT 32665dfa7aaSTim VanderhoekYou can change all of these. 3270412d17cSRuslan Ermilov.Bl -tag -width ".Va MASTER_SITES" 3280412d17cSRuslan Ermilov.It Va PORTSDIR 3290412d17cSRuslan ErmilovLocation of the ports tree. 3300412d17cSRuslan ErmilovThis is 33165dfa7aaSTim Vanderhoek.Pa /usr/ports 33265dfa7aaSTim Vanderhoekon 333b5c508fbSRuslan Ermilov.Fx 334e4b22b63SDavid E. O'Brienand 3350412d17cSRuslan Ermilov.Ox , 33665dfa7aaSTim Vanderhoekand 33765dfa7aaSTim Vanderhoek.Pa /usr/pkgsrc 33865dfa7aaSTim Vanderhoekon 33965dfa7aaSTim Vanderhoek.Nx . 3400412d17cSRuslan Ermilov.It Va WRKDIRPREFIX 3410412d17cSRuslan ErmilovWhere to create any temporary files. 3420412d17cSRuslan ErmilovUseful if 3430412d17cSRuslan Ermilov.Va PORTSDIR 3440412d17cSRuslan Ermilovis read-only (perhaps mounted from a CD-ROM). 3450412d17cSRuslan Ermilov.It Va DISTDIR 34665dfa7aaSTim VanderhoekWhere to find/put distfiles, normally 34765dfa7aaSTim Vanderhoek.Pa distfiles/ 34865dfa7aaSTim Vanderhoekin 3490412d17cSRuslan Ermilov.Va PORTSDIR . 3500412d17cSRuslan Ermilov.It Va PACKAGES 35165dfa7aaSTim VanderhoekUsed only for the 3520412d17cSRuslan Ermilov.Cm package 35365dfa7aaSTim Vanderhoektarget; the base directory for the packages tree, normally 35465dfa7aaSTim Vanderhoek.Pa packages/ 35565dfa7aaSTim Vanderhoekin 3560412d17cSRuslan Ermilov.Va PORTSDIR . 35765dfa7aaSTim VanderhoekIf this directory exists, the package tree will be (partially) constructed. 3580412d17cSRuslan ErmilovThis directory does not have to exist; if it does not, packages will be 35983d04c76STim Vanderhoekplaced into the current directory, or you can define one of 3600412d17cSRuslan Ermilov.Bl -tag -width ".Va PKGREPOSITORY" 3610412d17cSRuslan Ermilov.It Va PKGREPOSITORY 36283d04c76STim VanderhoekDirectory to put the package in. 3630412d17cSRuslan Ermilov.It Va PKGFILE 36465dfa7aaSTim VanderhoekThe full path to the package. 36565dfa7aaSTim Vanderhoek.El 3660412d17cSRuslan Ermilov.It Va PREFIX 36765dfa7aaSTim VanderhoekWhere to install things in general 368c4d9468eSRuslan Ermilov(usually 36965dfa7aaSTim Vanderhoek.Pa /usr/local 37065dfa7aaSTim Vanderhoekor 3710412d17cSRuslan Ermilov.Pa /usr/X11R6 ) . 3720412d17cSRuslan Ermilov.It Va MASTER_SITES 373e4b22b63SDavid E. O'BrienPrimary sites for distribution files if not found locally. 3740412d17cSRuslan Ermilov.It Va PATCH_SITES 3750412d17cSRuslan ErmilovPrimary locations for distribution patch files if not found 376e4b22b63SDavid E. O'Brienlocally. 3770412d17cSRuslan Ermilov.It Va MASTER_SITE_FREEBSD 378b5c508fbSRuslan ErmilovIf set, go to the master 379b5c508fbSRuslan Ermilov.Fx 380b5c508fbSRuslan Ermilovsite for all files. 3810412d17cSRuslan Ermilov.It Va MASTER_SITE_OVERRIDE 382b81d803eSRuslan ErmilovTry going to these sites for all files and patches, first. 3830412d17cSRuslan Ermilov.It Va NOCLEANDEPENDS 3840412d17cSRuslan ErmilovIf defined, do not let 3850412d17cSRuslan Ermilov.Cm clean 38665dfa7aaSTim Vanderhoekrecurse to dependencies. 3870412d17cSRuslan Ermilov.It Va FETCH_CMD 3880412d17cSRuslan ErmilovCommand to use to fetch files. 3890412d17cSRuslan ErmilovNormally 39065dfa7aaSTim Vanderhoek.Xr fetch 1 . 3910412d17cSRuslan Ermilov.It Va FORCE_PKG_REGISTER 39265dfa7aaSTim VanderhoekIf set, overwrite any existing package registration on the system. 3930412d17cSRuslan Ermilov.It Va MOTIFLIB 3940412d17cSRuslan ErmilovLocation of 3950412d17cSRuslan Ermilov.Pa libXm. Ns Brq Pa a , Ns Pa so . 3960412d17cSRuslan Ermilov.It Va INTERACTIVE 39765dfa7aaSTim VanderhoekIf defined, only operate on a port if it requires interaction. 3980412d17cSRuslan Ermilov.It Va BATCH 39965dfa7aaSTim VanderhoekIf defined, only operate on a port if it can be installed 100% automatically. 40003687bafSKirill Ponomarev.It Va OPTIONS 40103687bafSKirill PonomarevIf defined, list of what 40203687bafSKirill Ponomarev.Va WITH_* 40303687bafSKirill Ponomarevoptions this port accepts. 40403687bafSKirill Ponomarev.Em Note : 40503687bafSKirill Ponomarevto make 40603687bafSKirill Ponomarev.Va OPTIONS 40703687bafSKirill Ponomarevactually work, it is necessary to include 40803687bafSKirill Ponomarev.Pa bsd.port.pre.mk 40903687bafSKirill Ponomarevbefore starting to test the 41003687bafSKirill Ponomarev.Va WITH_* 41103687bafSKirill Ponomarevvariables. 41265dfa7aaSTim Vanderhoek.El 4134000f72fSDavid E. O'Brien.Sh FILES 4140412d17cSRuslan Ermilov.Bl -tag -width ".Pa /usr/ports/Mk/bsd.port.mk" -compact 4154000f72fSDavid E. O'Brien.It Pa /usr/ports 416b5c508fbSRuslan ErmilovThe default ports directory 417c4d9468eSRuslan Ermilov.No ( Fx 418b5c508fbSRuslan Ermilovand 419c4d9468eSRuslan Ermilov.Ox ) . 420e4b22b63SDavid E. O'Brien.It Pa /usr/pkgsrc 421d013e3f5SRuslan ErmilovThe default ports directory 422d013e3f5SRuslan Ermilov.Pq Nx . 423652627f0STim Vanderhoek.It Pa /usr/ports/Mk/bsd.port.mk 42465dfa7aaSTim VanderhoekThe big Kahuna. 4253136363fSRuslan Ermilov.El 4264000f72fSDavid E. O'Brien.Sh SEE ALSO 4274000f72fSDavid E. O'Brien.Xr make 1 , 4284000f72fSDavid E. O'Brien.Xr pkg_add 1 , 4294000f72fSDavid E. O'Brien.Xr pkg_create 1 , 4304000f72fSDavid E. O'Brien.Xr pkg_delete 1 , 4313fea87d2STim Vanderhoek.Xr pkg_info 1 , 4327ec24193STim Vanderhoek.Xr pkg_version 1 433def37e7cSMike Pritchard.Pp 434def37e7cSMike PritchardThe following are part of the ports collection: 435def37e7cSMike Pritchard.Pp 436def37e7cSMike Pritchard.Xr pib 1 , 437def37e7cSMike Pritchard.Xr portcheckout 1 , 438ac8011f8SDavid E. O'Brien.Xr portlint 1 4390412d17cSRuslan Ermilov.Rs 4400412d17cSRuslan Ermilov.%B "The FreeBSD Handbook" 4410412d17cSRuslan Ermilov.Re 44265dfa7aaSTim Vanderhoek.Pp 4430412d17cSRuslan Ermilov.Pa http://www.FreeBSD.org/ports 444c4d9468eSRuslan Ermilov(searchable index of all ports) 4454000f72fSDavid E. O'Brien.Sh AUTHORS 446f4d874a1SRuslan Ermilov.An -nosplit 447aaf1f16eSPhilippe CharnierThis man page was originated by 448aaf1f16eSPhilippe Charnier.An David O'Brien . 4494000f72fSDavid E. O'Brien.Sh HISTORY 4500412d17cSRuslan ErmilovThe Ports Collection 4514000f72fSDavid E. O'Brienappeared in 4524000f72fSDavid E. O'Brien.Fx 1.0 . 4536b4c0736STim VanderhoekIt has since spread to 4546b4c0736STim Vanderhoek.Nx 4556b4c0736STim Vanderhoekand 4566b4c0736STim Vanderhoek.Ox . 45765dfa7aaSTim Vanderhoek.Sh BUGS 4580412d17cSRuslan ErmilovPorts documentation is split over four places \(em 4592693c8b9STim Vanderhoek.Pa /usr/ports/Mk/bsd.port.mk , 4600412d17cSRuslan Ermilov.%B "The Porter's Handbook" , 46165dfa7aaSTim Vanderhoekthe 4620412d17cSRuslan Ermilov.Dq "Packages and Ports" 4635d3d0230SMurray Stokelychapter of 4640412d17cSRuslan Ermilov.%B "The FreeBSD Handbook" , 4655d3d0230SMurray Stokelyand 466facc6767SRuslan Ermilovthis man page. 46765dfa7aaSTim Vanderhoek.Pp 46865dfa7aaSTim VanderhoekThis man page is too long. 469