7.1. Building a single binary package
Once you have built and installed a package, you can create a binary package which can be installed on another system with pkg_add(1).This saves having to build the same package on a group of hosts and wasting CPU time. It also provides a simple means for others to install your package, should you distribute it.
To create a binary package, change into the appropriate directory in pkgsrc, and run make package:
$ cd misc/figlet $ make package
This will build and install your package (if not already done), and then build a binary package from what was installed. You can then use the pkg_* tools to manipulate it.Binary packages are created by default in /usr/pkgsrc/packages
, in the form of a gzipped tar file. See Section C.2, “Packaging figlet” for a continuation of the above misc/figlet
example.
See Chapter 23, Submitting and Committing for information on how to submit such a binary package.