7.5. Automated Package List Creation

First, make sure your port is almost complete, with only pkg-plist missing. You may then run make makeplist to generate a pkg-plist automatically. Thie file must be double checked for correctness.

User configuration files should be removed, or installed as filename.sample. The info/dir file should not be listed and appropriate install-info lines should be added as noted in the info files section. Any libraries installed by the port should be listed as specified in the shared libraries section.

Alternatively, use the plist script in /usr/ports/Tools/scripts/ to build the package list automatically.

The first step is the same as above: take the first three lines, that is, mkdir, mtree and make depends. Then build and install the port:

# make install PREFIX=/var/tmp/`make -V PORTNAME`

And let plist create the pkg-plist file:

# /usr/ports/Tools/scripts/plist -Md -m `make -V MTREE_FILE` /var/tmp/`make -V PORTNAME` > pkg-plist

The packing list still has to be tidied up by hand as stated above.

Another tool that might be used to create an initial pkg-plist is ports-mgmt/genplist. As with any automated tool, the resulting pkg-plist should be checked and manually edited as needed.

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>.