The "install" target does exactly that, creates a binary package for the port from the code you compiled and installs it.All ports' installation bits are included in the ports database, specifically in /var/db/ports and /var/db/pkg.=$ # Strip out some options I'll never want enabled OPTIONS_UNSET= DEBUG HELP STATIC GNUTLS DOCS EXAMPLES IPV6 \ PTH IDN LIBIDN NLS PULSEAUDIO JAVA MANPAGES \ DOCBOOK CUPS TESTS HTMLDOCS BONJOUR GSSAPI \ APIDOCS NLS You don't need a to use ports, but I would encourage you to read up on some of the options before you start building.Flexibility is one of the best parts of building software from source.It will prompt you if any new options were added to the port since you installed it (with a small " " next to that option), but use your previously-selected options if there's nothing new.Some links for further reading: Two Year Anniversary 2015-08-08 We're quickly approaching our two-year anniversary, which will be on episode 105.This tutorial will show you how to use the source-based ports collection to install and manage applications.Jordan Hubbard committed what would become the legendary ports system on August 21, 1994. Fetching snapshot generated at Thu Oct 31 EDT 2013: 98c3a00130d24348ff5bcca8474e4c6cb777d838e8f5d2 27% of 69 MB 3728 k Bps 00m21s The portsnap tool will download a snapshot of the tree from the mirror closest to you, verify its integrity against a public key and then extract everything to /usr/ports.
A lot of magic is going on behind the scenes when you type "make install clean." The ports collection provides a way to customize every package you install, from the CFLAGS to the options you want enabled or disabled. For versions of Free BSD before 10.0, you will need to run the following before installing any ports: # Build all ports' -march against my cpu for best performance CPUTYPE?Let's get started by getting a copy of the ports tree. =native # Use clang instead of gcc, only needed for versions before 10.0 CC=clang CXX=clang CPP=clang-cpp # Compile everything in a ram disk and use ccache, see our tutorial WRKDIRPREFIX=/ram WITH_CCACHE_BUILD=yes # The newer pkgng format, only needed for versions before 10.0 WITH_PKGNG=yes # Use passive FTP and only use IPv4 FETCH_BEFORE_ARGS=-p4 # Add a fast mirror for downloading distfiles MASTER_SITE_BACKUP?We'll be using the portsnap command which is included in the base OS. = \ BSD/ports/distfiles/$ # Try downloading from it by default MASTER_SITE_OVERRIDE?It's meant to be informative like a tutorial, but more of a "free discussion" format.If you have any subjects you want us to explore, or even just a good name... 2014-11-26 We've got a fun idea for the holidays this year: just like we ask during the interviews, we want to hear how all the viewers and listeners first got into BSD.Since then, it's grown to become the most powerful and flexible way to manage software. You only need to do "fetch extract" the very first time you install.