You should make sure that the port rules do exactly what you want them to do, including packaging up the port. These are the important points you need to verify.
pkg-plist
does not contain
anything not installed by your port.
pkg-plist
contains everything
that is installed by your port.
The port can be installed using the
install
target. This helps to
verify if the install script works fine.
The port can be deinstalled properly using the
deinstall
target. This helps to
veryify if the deinstall script works fine.
Make sure that make package
can be
run as a normal user (that is, not as
root
). If that fails,
NEED_ROOT=yes
has to be added to the
port's Makefile
.
make stage
make check-orphans
make package
make install
make deinstall
pkg_add
package-name
Or, in case of pkgng:
pkg add
package-name
make package
(as user)
Make sure that there are not any warnings issued in any of the stages.
The most thorough way to automate these steps is via
installing the tinderbox or
poudriere. These maintain
jails
in which you can test all of the above
steps without changing the state of your running system. Please
see ports-mgmt/tinderbox
or
ports-mgmt/poudriere
in the Ports
Collection for more information.
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 <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.