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.\" 281ea65ec7SGabor Kovesdan.Dd Dec 21, 2007 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 69a02c85c1SGabor Kovesdan.Xr portcheckout 1 Pq Pa ports/ports-mgmt/portcheckout 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 . 114191f93f0SJesus R. Camou.It Cm config-recursive 115191f93f0SJesus R. CamouConfigure 116191f93f0SJesus R. Camou.Va OPTIONS 117191f93f0SJesus R. Camoufor this port and all its dependencies using 118191f93f0SJesus R. Camou.Xr dialog 1 . 1190412d17cSRuslan Ermilov.It Cm fetch 1200412d17cSRuslan ErmilovFetch all of the files needed to build this port from the sites 1210412d17cSRuslan Ermilovlisted in 1220412d17cSRuslan Ermilov.Va MASTER_SITES 12365dfa7aaSTim Vanderhoekand 1240412d17cSRuslan Ermilov.Va PATCH_SITES . 1250412d17cSRuslan ErmilovSee 126e57fe046SKirill Ponomarev.Va FETCH_CMD , MASTER_SITE_OVERRIDE 1270412d17cSRuslan Ermilovand 128e57fe046SKirill Ponomarev.Va MASTER_SITE_BACKUP . 1290412d17cSRuslan Ermilov.It Cm checksum 130019de50bSDima DorfmanVerify that the fetched distfile's checksum matches the one the port was 131019de50bSDima Dorfmantested against. 13265dfa7aaSTim VanderhoekDefining 1330412d17cSRuslan Ermilov.Va NO_CHECKSUM 13465dfa7aaSTim Vanderhoekwill skip this step. 1350412d17cSRuslan Ermilov.It Cm depends 13665dfa7aaSTim VanderhoekInstall 137c4d9468eSRuslan Ermilov(or compile if only compilation is necessary) 1380412d17cSRuslan Ermilovany dependencies of the current port. 1390412d17cSRuslan ErmilovWhen called by the 1400412d17cSRuslan Ermilov.Cm extract 14165dfa7aaSTim Vanderhoekor 1420412d17cSRuslan Ermilov.Cm fetch 14365dfa7aaSTim Vanderhoektargets, this is run in piecemeal as 1440412d17cSRuslan Ermilov.Cm fetch-depends , build-depends , 1450412d17cSRuslan Ermilovetc. 1460412d17cSRuslan ErmilovDefining 1470412d17cSRuslan Ermilov.Va NO_DEPENDS 14865dfa7aaSTim Vanderhoekwill skip this step. 1490412d17cSRuslan Ermilov.It Cm extract 15065dfa7aaSTim VanderhoekExpand the distfile into a work directory. 1510412d17cSRuslan Ermilov.It Cm patch 15265dfa7aaSTim VanderhoekApply any patches that are necessary for the port. 1530412d17cSRuslan Ermilov.It Cm configure 1540412d17cSRuslan ErmilovConfigure the port. 1550412d17cSRuslan ErmilovSome ports will ask you questions during this stage. 1560412d17cSRuslan ErmilovSee 1570412d17cSRuslan Ermilov.Va INTERACTIVE 15865dfa7aaSTim Vanderhoekand 1590412d17cSRuslan Ermilov.Va BATCH . 1600412d17cSRuslan Ermilov.It Cm build 1610412d17cSRuslan ErmilovBuild the port. 1620412d17cSRuslan ErmilovThis is the same as calling the 1630412d17cSRuslan Ermilov.Cm all 16465dfa7aaSTim Vanderhoektarget. 1650412d17cSRuslan Ermilov.It Cm install 1660412d17cSRuslan ErmilovInstall the port and register it with the package system. 1670412d17cSRuslan ErmilovThis is all you really need to do. 16865dfa7aaSTim Vanderhoek.El 16965dfa7aaSTim Vanderhoek.Pp 17065dfa7aaSTim VanderhoekThe following targets are not run during the normal install process. 17156e37108SGiorgos Keramidas.Bl -tag -width ".Cm fetch-recursive" 17203687bafSKirill Ponomarev.It Cm showconfig 17303687bafSKirill PonomarevDisplay 17403687bafSKirill Ponomarev.Va OPTIONS 17503687bafSKirill Ponomarevconfig for this port. 176a571610dSKirill Ponomarev.It Cm showconfig-recursive 177a571610dSKirill PonomarevDisplay 178a571610dSKirill Ponomarev.Va OPTIONS 179a571610dSKirill Ponomarevconfig for this port and all its dependencies. 18003687bafSKirill Ponomarev.It Cm rmconfig 18103687bafSKirill PonomarevRemove 18203687bafSKirill Ponomarev.Va OPTIONS 18303687bafSKirill Ponomarevconfig for this port. 184a571610dSKirill Ponomarev.It Cm rmconfig-recursive 185a571610dSKirill PonomarevRemove 186a571610dSKirill Ponomarev.Va OPTIONS 187a571610dSKirill Ponomarevconfig for this port and all its dependencies. 188a571610dSKirill Ponomarev.It Cm config-conditional 189a571610dSKirill PonomarevSkip the ports which have already had their 190a571610dSKirill Ponomarev.Va OPTIONS 191a571610dSKirill Ponomarevconfigured. 1920412d17cSRuslan Ermilov.It Cm fetch-list 19303687bafSKirill PonomarevShow list of files to be fetched in order to build the port. 19456e37108SGiorgos Keramidas.It Cm fetch-recursive 19556e37108SGiorgos KeramidasFetch the distfiles of the port and all its dependencies. 196515ba752SChristian Brueffer.It Cm fetch-recursive-list 197515ba752SChristian BruefferShow list of files that would be retrieved by 198515ba752SChristian Brueffer.Cm fetch-recursive . 1990412d17cSRuslan Ermilov.It Cm pretty-print-run-depends-list , pretty-print-build-depends-list 20065dfa7aaSTim VanderhoekPrint a list of all the compile and run dependencies, and dependencies 20165dfa7aaSTim Vanderhoekof those dependencies. 202c8ff7e9eSPav Lucistnik.It Cm missing 203c8ff7e9eSPav LucistnikPrint a list of missing dependencies to be installed for the port. 2040412d17cSRuslan Ermilov.It Cm clean 2050412d17cSRuslan ErmilovRemove the expanded source code. 2060412d17cSRuslan ErmilovThis recurses to dependencies unless 2070412d17cSRuslan Ermilov.Va NOCLEANDEPENDS 20865dfa7aaSTim Vanderhoekis defined. 2090412d17cSRuslan Ermilov.It Cm distclean 2100412d17cSRuslan ErmilovRemove the port's distfiles and perform the 2110412d17cSRuslan Ermilov.Cm clean 212019de50bSDima Dorfmantarget. 213019de50bSDima DorfmanThe 2140412d17cSRuslan Ermilov.Cm clean 21565dfa7aaSTim Vanderhoekportion recurses to dependencies unless 2160412d17cSRuslan Ermilov.Va NOCLEANDEPENDS 21765dfa7aaSTim Vanderhoekis defined, but the 2180412d17cSRuslan Ermilov.Cm distclean 21965dfa7aaSTim Vanderhoekportion never recurses 220c4d9468eSRuslan Ermilov(this is perhaps a bug). 2210412d17cSRuslan Ermilov.It Cm reinstall 22265dfa7aaSTim VanderhoekUse this to restore a port after using 22365dfa7aaSTim Vanderhoek.Xr pkg_delete 1 22465dfa7aaSTim Vanderhoekwhen you should have used 2250412d17cSRuslan Ermilov.Cm deinstall . 2260412d17cSRuslan Ermilov.It Cm deinstall 22765dfa7aaSTim VanderhoekRemove an installed port from the system, similar to 22865dfa7aaSTim Vanderhoek.Xr pkg_delete 1 . 229515ba752SChristian Brueffer.It Cm deinstall-all 230515ba752SChristian BruefferRemove all installed ports with the same 231515ba752SChristian Brueffer.Va PKGORIGIN 232515ba752SChristian Bruefferfrom the system. 2330412d17cSRuslan Ermilov.It Cm package 2340412d17cSRuslan ErmilovMake a binary package for the port. 2350412d17cSRuslan ErmilovThe port will be installed if it has not already been. 2360412d17cSRuslan ErmilovThe package is a 23781c4ddbfSChristian Brueffer.Pa .tbz 2380412d17cSRuslan Ermilovfile that you can use to 23965dfa7aaSTim Vanderhoekinstall the port on other machines with 24065dfa7aaSTim Vanderhoek.Xr pkg_add 1 . 24165dfa7aaSTim VanderhoekIf the directory specified by 2420412d17cSRuslan Ermilov.Va PACKAGES 2430412d17cSRuslan Ermilovdoes not exist, the package will be put into the current directory. 24483d04c76STim VanderhoekSee 2450412d17cSRuslan Ermilov.Va PKGREPOSITORY 24683d04c76STim Vanderhoekand 2470412d17cSRuslan Ermilov.Va PKGFILE . 2488c3bfd69SChristian Brueffer.It Cm package-recursive 2498c3bfd69SChristian BruefferLike 2508c3bfd69SChristian Brueffer.Cm package , 2518c3bfd69SChristian Bruefferbut makes a package for each depending port as well. 2520412d17cSRuslan Ermilov.It Cm readmes 25383d04c76STim VanderhoekCreate a port's 25483d04c76STim Vanderhoek.Pa README.html . 2556b4c0736STim VanderhoekThis can be used from 2566b4c0736STim Vanderhoek.Pa /usr/ports 2576b4c0736STim Vanderhoekto create a browsable web of all ports on your system! 2580412d17cSRuslan Ermilov.It Cm search 259019de50bSDima DorfmanSearch the 260019de50bSDima Dorfman.Pa INDEX 26165d476e0SKirill Ponomarevfile for the pattern specified by the 2620412d17cSRuslan Ermilov.Va key 26365d476e0SKirill Ponomarev(searches the port name, comment, and dependencies), 2640412d17cSRuslan Ermilov.Va name 26565d476e0SKirill Ponomarev(searches the port name only), 26665d476e0SKirill Ponomarev.Va path 26765d476e0SKirill Ponomarev(searches the port path), 26865d476e0SKirill Ponomarev.Va info 26965d476e0SKirill Ponomarev(searches the port info), 27065d476e0SKirill Ponomarev.Va maint 27165d476e0SKirill Ponomarev(searches the port maintainer), 27265d476e0SKirill Ponomarev.Va cat 27365d476e0SKirill Ponomarev(searches the port category), 27465d476e0SKirill Ponomarev.Va bdeps 27565d476e0SKirill Ponomarev(searches the port build-time dependency), 27665d476e0SKirill Ponomarev.Va rdeps 2771ea65ec7SGabor Kovesdan(searches the port run-time dependency), 2781ea65ec7SGabor Kovesdan.Va www 2791ea65ec7SGabor Kovesdan(searches the port web site) 2800412d17cSRuslan Ermilov.Xr make 1 28165d476e0SKirill Ponomarevvariables, and their exclusion counterparts: 28265d476e0SKirill Ponomarev.Va xname , xkey 28365d476e0SKirill Ponomarevetc. 284019de50bSDima DorfmanFor example, one would type: 285019de50bSDima Dorfman.Pp 2860412d17cSRuslan Ermilov.Dl "cd /usr/ports && make search name=query" 287019de50bSDima Dorfman.Pp 288019de50bSDima Dorfmanto find all ports whose 289019de50bSDima Dorfmanname matches 2900412d17cSRuslan Ermilov.Dq Li query . 291019de50bSDima DorfmanResults include the matching ports' path, comment, maintainer, 292019de50bSDima Dorfmanbuild dependencies, and run dependencies. 29365d476e0SKirill Ponomarev.Bd -literal -offset indent 29465d476e0SKirill Ponomarevcd /usr/ports && make search name=pear- \e 29565d476e0SKirill Ponomarev xbdeps=apache 29665d476e0SKirill Ponomarev.Ed 29765d476e0SKirill Ponomarev.Pp 29865d476e0SKirill PonomarevTo find all ports whose 29965d476e0SKirill Ponomarevnames contain 30065d476e0SKirill Ponomarev.Dq Li pear- 30165d476e0SKirill Ponomarevand which do not have apache 30265d476e0SKirill Ponomarevlisted in build-time dependencies. 30365d476e0SKirill Ponomarev.Bd -literal -offset indent 30465d476e0SKirill Ponomarevcd /usr/ports && make search name=pear- \e 30565d476e0SKirill Ponomarev xname='ht(tp|ml)' 30665d476e0SKirill Ponomarev.Ed 30765d476e0SKirill Ponomarev.Pp 30865d476e0SKirill PonomarevTo find all ports whose names contain 30965d476e0SKirill Ponomarev.Dq Li pear- , 31065d476e0SKirill Ponomarevbut not 31165d476e0SKirill Ponomarev.Dq Li html 31265d476e0SKirill Ponomarevor 31365d476e0SKirill Ponomarev.Dq Li http . 31465d476e0SKirill Ponomarev.Bd -literal -offset indent 31565d476e0SKirill Ponomarevmake search key=apache display=name,path,info keylim=1 31665d476e0SKirill Ponomarev.Ed 31765d476e0SKirill Ponomarev.Pp 31865d476e0SKirill PonomarevTo find ports that contain 31965d476e0SKirill Ponomarev.Dq Li apache 32065d476e0SKirill Ponomarevin either of the name, path, info 32165d476e0SKirill Ponomarevfields, ignore the rest of the record. 3221ea65ec7SGabor Kovesdan.Pp 3231ea65ec7SGabor KovesdanBy default the search is not case-nsensitive. 3241ea65ec7SGabor KovesdanIn order to make it case-sensitive you can use the 3251ea65ec7SGabor Kovesdan.Va icase 3261ea65ec7SGabor Kovesdanvariable: 3271ea65ec7SGabor Kovesdan.Bd -literal -offset indent 3281ea65ec7SGabor Kovesdanmake search name=p5-R icase=0 3291ea65ec7SGabor Kovesdan.Ed 330be3253caSMaxim Konovalov.It Cm quicksearch 331be3253caSMaxim KonovalovReduced 332be3253caSMaxim Konovalov.Cm search 333be3253caSMaxim Konovalovoutput. 334be3253caSMaxim KonovalovOnly display name, path and info. 33503687bafSKirill Ponomarev.It Cm describe 33603687bafSKirill PonomarevGenerate a one-line description of each port for use in the 33703687bafSKirill Ponomarev.Pa INDEX 33803687bafSKirill Ponomarevfile. 3390412d17cSRuslan Ermilov.It Cm index 340019de50bSDima DorfmanCreate 341019de50bSDima Dorfman.Pa /usr/ports/INDEX , 342019de50bSDima Dorfmanwhich is used by the 3430412d17cSRuslan Ermilov.Cm pretty-print-* 344019de50bSDima Dorfmanand 3450412d17cSRuslan Ermilov.Cm search 346019de50bSDima Dorfmantargets. 3477585929eSKirill PonomarevRunning the 3480412d17cSRuslan Ermilov.Cm index 3490412d17cSRuslan Ermilovtarget will ensure your 3500412d17cSRuslan Ermilov.Pa INDEX 3510412d17cSRuslan Ermilovfile is up to date with your ports tree. 3527585929eSKirill Ponomarev.It Cm fetchindex 3537585929eSKirill PonomarevFetch the 3547585929eSKirill Ponomarev.Pa INDEX 3557585929eSKirill Ponomarevfile from the 3567585929eSKirill Ponomarev.Fx 3577585929eSKirill Ponomarevcluster. 3583136363fSRuslan Ermilov.El 359def37e7cSMike Pritchard.Sh ENVIRONMENT 36065dfa7aaSTim VanderhoekYou can change all of these. 3610412d17cSRuslan Ermilov.Bl -tag -width ".Va MASTER_SITES" 3620412d17cSRuslan Ermilov.It Va PORTSDIR 3630412d17cSRuslan ErmilovLocation of the ports tree. 3640412d17cSRuslan ErmilovThis is 36565dfa7aaSTim Vanderhoek.Pa /usr/ports 36665dfa7aaSTim Vanderhoekon 367b5c508fbSRuslan Ermilov.Fx 368e4b22b63SDavid E. O'Brienand 3690412d17cSRuslan Ermilov.Ox , 37065dfa7aaSTim Vanderhoekand 37165dfa7aaSTim Vanderhoek.Pa /usr/pkgsrc 37265dfa7aaSTim Vanderhoekon 37365dfa7aaSTim Vanderhoek.Nx . 3740412d17cSRuslan Ermilov.It Va WRKDIRPREFIX 3750412d17cSRuslan ErmilovWhere to create any temporary files. 3760412d17cSRuslan ErmilovUseful if 3770412d17cSRuslan Ermilov.Va PORTSDIR 3780412d17cSRuslan Ermilovis read-only (perhaps mounted from a CD-ROM). 3790412d17cSRuslan Ermilov.It Va DISTDIR 38065dfa7aaSTim VanderhoekWhere to find/put distfiles, normally 38165dfa7aaSTim Vanderhoek.Pa distfiles/ 38265dfa7aaSTim Vanderhoekin 3830412d17cSRuslan Ermilov.Va PORTSDIR . 3840412d17cSRuslan Ermilov.It Va PACKAGES 38565dfa7aaSTim VanderhoekUsed only for the 3860412d17cSRuslan Ermilov.Cm package 38765dfa7aaSTim Vanderhoektarget; the base directory for the packages tree, normally 38865dfa7aaSTim Vanderhoek.Pa packages/ 38965dfa7aaSTim Vanderhoekin 3900412d17cSRuslan Ermilov.Va PORTSDIR . 39165dfa7aaSTim VanderhoekIf this directory exists, the package tree will be (partially) constructed. 3920412d17cSRuslan ErmilovThis directory does not have to exist; if it does not, packages will be 39383d04c76STim Vanderhoekplaced into the current directory, or you can define one of 3940412d17cSRuslan Ermilov.Bl -tag -width ".Va PKGREPOSITORY" 3950412d17cSRuslan Ermilov.It Va PKGREPOSITORY 39683d04c76STim VanderhoekDirectory to put the package in. 3970412d17cSRuslan Ermilov.It Va PKGFILE 39865dfa7aaSTim VanderhoekThe full path to the package. 39965dfa7aaSTim Vanderhoek.El 4000412d17cSRuslan Ermilov.It Va PREFIX 40165dfa7aaSTim VanderhoekWhere to install things in general 402c4d9468eSRuslan Ermilov(usually 4039a0e6be2SXin LI.Pa /usr/local ) . 4040412d17cSRuslan Ermilov.It Va MASTER_SITES 405e4b22b63SDavid E. O'BrienPrimary sites for distribution files if not found locally. 4060412d17cSRuslan Ermilov.It Va PATCH_SITES 4070412d17cSRuslan ErmilovPrimary locations for distribution patch files if not found 408e4b22b63SDavid E. O'Brienlocally. 4090412d17cSRuslan Ermilov.It Va MASTER_SITE_FREEBSD 410b5c508fbSRuslan ErmilovIf set, go to the master 411b5c508fbSRuslan Ermilov.Fx 412b5c508fbSRuslan Ermilovsite for all files. 4130412d17cSRuslan Ermilov.It Va MASTER_SITE_OVERRIDE 414b81d803eSRuslan ErmilovTry going to these sites for all files and patches, first. 415e57fe046SKirill Ponomarev.It Va MASTER_SITE_BACKUP 416e57fe046SKirill PonomarevTry going to these sites for all files and patches, last. 4171f568fb2SPav Lucistnik.It Va RANDOMIZE_MASTER_SITES 4181f568fb2SPav LucistnikTry the download locations in a random order. 4191f568fb2SPav Lucistnik.It Va MASTER_SORT 4201f568fb2SPav LucistnikSort the download locations according to user supplied pattern. 4211f568fb2SPav LucistnikExample: 4221f568fb2SPav Lucistnik.Dl .dk .sunet.se .se dk.php.net .no .de heanet.dl.sourceforge.net 423e57fe046SKirill Ponomarev.It Va MASTER_SITE_INDEX 424e57fe046SKirill PonomarevWhere to get 425e57fe046SKirill Ponomarev.Pa INDEX 426e57fe046SKirill Ponomarevsource built on 427e57fe046SKirill Ponomarev.Fx 428e57fe046SKirill Ponomarevcluster (for 429e57fe046SKirill Ponomarev.Cm fetchindex 430e57fe046SKirill Ponomarevtarget). 431e57fe046SKirill PonomarevDefaults to 432e57fe046SKirill Ponomarev.Pa http://www.FreeBSD.org/ports/ . 433e57fe046SKirill Ponomarev.It Va FETCHINDEX 434e57fe046SKirill PonomarevCommand to get 435e57fe046SKirill Ponomarev.Pa INDEX 436e57fe046SKirill Ponomarev(for 437e57fe046SKirill Ponomarev.Cm fetchindex 438e57fe046SKirill Ponomarevtarget). 439e57fe046SKirill PonomarevDefaults to 440e57fe046SKirill Ponomarev.Dq Nm fetch Fl am . 4410412d17cSRuslan Ermilov.It Va NOCLEANDEPENDS 4420412d17cSRuslan ErmilovIf defined, do not let 4430412d17cSRuslan Ermilov.Cm clean 44465dfa7aaSTim Vanderhoekrecurse to dependencies. 4450412d17cSRuslan Ermilov.It Va FETCH_CMD 4460412d17cSRuslan ErmilovCommand to use to fetch files. 4470412d17cSRuslan ErmilovNormally 44865dfa7aaSTim Vanderhoek.Xr fetch 1 . 4490412d17cSRuslan Ermilov.It Va FORCE_PKG_REGISTER 45065dfa7aaSTim VanderhoekIf set, overwrite any existing package registration on the system. 4510412d17cSRuslan Ermilov.It Va MOTIFLIB 4520412d17cSRuslan ErmilovLocation of 4530412d17cSRuslan Ermilov.Pa libXm. Ns Brq Pa a , Ns Pa so . 4540412d17cSRuslan Ermilov.It Va INTERACTIVE 45565dfa7aaSTim VanderhoekIf defined, only operate on a port if it requires interaction. 4560412d17cSRuslan Ermilov.It Va BATCH 45765dfa7aaSTim VanderhoekIf defined, only operate on a port if it can be installed 100% automatically. 458949f900dSSimon L. B. Nielsen.It Va DISABLE_VULNERABILITIES 459949f900dSSimon L. B. NielsenIf defined, disable check for security vulnerabilities using 460f48aad41SPav Lucistnik.Xr portaudit 1 Pq Pa ports/ports-mgmt/portaudit 461949f900dSSimon L. B. Nielsenwhen installing new ports. 462068abd55SGiorgos Keramidas.It Va NO_IGNORE 463068abd55SGiorgos KeramidasIf defined, allow installation of ports marked as 464068abd55SGiorgos Keramidas.Aq Va FORBIDDEN . 465068abd55SGiorgos KeramidasThe default behavior of the Ports framework is to abort when the 466068abd55SGiorgos Keramidasinstallation of a forbidden port is attempted. 467068abd55SGiorgos KeramidasSetting 468068abd55SGiorgos Keramidas.Va NO_IGNORE 469068abd55SGiorgos KeramidasOf course, these ports may not work as expected, but if you really know 470068abd55SGiorgos Keramidaswhat you are doing and are sure about installing a forbidden port, then 471068abd55SGiorgos Keramidas.Va NO_IGNORE 472068abd55SGiorgos Keramidaslets you do it. 47365dfa7aaSTim Vanderhoek.El 4744000f72fSDavid E. O'Brien.Sh FILES 4750412d17cSRuslan Ermilov.Bl -tag -width ".Pa /usr/ports/Mk/bsd.port.mk" -compact 4764000f72fSDavid E. O'Brien.It Pa /usr/ports 477b5c508fbSRuslan ErmilovThe default ports directory 478c4d9468eSRuslan Ermilov.No ( Fx 479b5c508fbSRuslan Ermilovand 480c4d9468eSRuslan Ermilov.Ox ) . 481e4b22b63SDavid E. O'Brien.It Pa /usr/pkgsrc 482d013e3f5SRuslan ErmilovThe default ports directory 483d013e3f5SRuslan Ermilov.Pq Nx . 484652627f0STim Vanderhoek.It Pa /usr/ports/Mk/bsd.port.mk 48565dfa7aaSTim VanderhoekThe big Kahuna. 4863136363fSRuslan Ermilov.El 4874000f72fSDavid E. O'Brien.Sh SEE ALSO 4884000f72fSDavid E. O'Brien.Xr make 1 , 4894000f72fSDavid E. O'Brien.Xr pkg_add 1 , 4904000f72fSDavid E. O'Brien.Xr pkg_create 1 , 4914000f72fSDavid E. O'Brien.Xr pkg_delete 1 , 4923fea87d2STim Vanderhoek.Xr pkg_info 1 , 4937ec24193STim Vanderhoek.Xr pkg_version 1 494def37e7cSMike Pritchard.Pp 495def37e7cSMike PritchardThe following are part of the ports collection: 496def37e7cSMike Pritchard.Pp 497f0ea72a0SChristian Brueffer.Xr portaudit 1 , 498def37e7cSMike Pritchard.Xr portcheckout 1 , 499ac8011f8SDavid E. O'Brien.Xr portlint 1 5000412d17cSRuslan Ermilov.Rs 5010412d17cSRuslan Ermilov.%B "The FreeBSD Handbook" 5020412d17cSRuslan Ermilov.Re 50365dfa7aaSTim Vanderhoek.Pp 5040412d17cSRuslan Ermilov.Pa http://www.FreeBSD.org/ports 505c4d9468eSRuslan Ermilov(searchable index of all ports) 5064000f72fSDavid E. O'Brien.Sh HISTORY 5070412d17cSRuslan ErmilovThe Ports Collection 5084000f72fSDavid E. O'Brienappeared in 5094000f72fSDavid E. O'Brien.Fx 1.0 . 5106b4c0736STim VanderhoekIt has since spread to 5116b4c0736STim Vanderhoek.Nx 5126b4c0736STim Vanderhoekand 5136b4c0736STim Vanderhoek.Ox . 5149cbda590SRuslan Ermilov.Sh AUTHORS 5159cbda590SRuslan Ermilov.An -nosplit 5169cbda590SRuslan ErmilovThis manual page was originated by 5179cbda590SRuslan Ermilov.An David O'Brien . 51865dfa7aaSTim Vanderhoek.Sh BUGS 5190412d17cSRuslan ErmilovPorts documentation is split over four places \(em 5202693c8b9STim Vanderhoek.Pa /usr/ports/Mk/bsd.port.mk , 5210412d17cSRuslan Ermilov.%B "The Porter's Handbook" , 52265dfa7aaSTim Vanderhoekthe 5230412d17cSRuslan Ermilov.Dq "Packages and Ports" 5245d3d0230SMurray Stokelychapter of 5250412d17cSRuslan Ermilov.%B "The FreeBSD Handbook" , 5265d3d0230SMurray Stokelyand 527949f900dSSimon L. B. Nielsenthis manual page. 528