Make sure that the port rules do exactly what is desired, including packaging up the port. These are the important points to verify:
pkg-plist
does not contain
anything not installed by the port.
pkg-plist
contains everything
that is installed by the port.
The port can be installed using the
install
target. This verifies
that the install script works correctly.
The port can be deinstalled properly using the
deinstall
target. This
verifies that the deinstall script works correctly.
Make sure that make package
can be
run as a normal user (that is, not as
root
). If that
fails, NEED_ROOT=yes
must be added to
the port Makefile
.
make stage
make check-orphans
make package
make install
make deinstall
pkg add
package-filename
make package
(as user)
Make certain no warnings are shown in any of the stages.
Thorough automated testing can be done with
ports-mgmt/tinderbox or
ports-mgmt/poudriere from the
Ports Collection. These applications maintain
jails
where all of the steps shown above
can be tested without affecting the state of the host
system.
All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/
Questions that are not answered by the
documentation may be
sent to <[email protected]>.
Send questions about this document to <[email protected]>.