9.4. Changing the Names of pkg-*

All the names of pkg-* are defined using variables that can be changed in the Makefile if needed. This is especially useful when sharing the same pkg-* files among several ports or when it is necessary to write to one of these files. See writing to places other than WRKDIR for why it is a bad idea to write directly into the directory containing the pkg-* files.

Here is a list of variable names and their default values. (PKGDIR defaults to ${MASTERDIR}.)

VariableDefault value
DESCR${PKGDIR}/pkg-descr
PLIST${PKGDIR}/pkg-plist
PKGINSTALL${PKGDIR}/pkg-install
PKGDEINSTALL${PKGDIR}/pkg-deinstall
PKGMESSAGE${PKGDIR}/pkg-message

All FreeBSD documents are available for download at https://download.freebsd.org/ftp/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>.