There are some tricks we have not mentioned yet about the
pkg-
files
that come in handy sometimes.*
If you need to display a message to the installer, you may
place the message in pkg-message
. This
capability is often useful to display additional installation
steps to be taken after a pkg_add(1) or to display
licensing information.
When some lines about the build-time knobs or warnings
have to be displayed, use ECHO_MSG
. The
pkg-message
file is only for
post-installation steps. Likewise, the distinction between
ECHO_MSG
and ECHO_CMD
should be kept in mind. The former is for printing
informational text to the screen, while the latter is for
command pipelining:
The pkg-message
file does not need
to be added to pkg-plist
.
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>.