diff --git a/share/doc/handbook/porting.sgml b/share/doc/handbook/porting.sgml index 0d52f3811993..a245f58733f5 100644 --- a/share/doc/handbook/porting.sgml +++ b/share/doc/handbook/porting.sgml @@ -1,4 +1,4 @@ - + Porting an existing piece of free software @@ -988,12 +988,22 @@ MAN8= baz.8 `$2' can be tested to determine which mode the script is being run in. The `PKG_PREFIX' environmental variable will be set to - the package installation directory. + the package installation directory. See man pkg_add(1) + for additional information. Note, that this script is not run automatically if you install the port with `make install'. If you are depending on it being run, you will have to explicitly call it on your port's Makefile. + + REQ package script +

If your needs to determine if it should install or not, you + can create a pkg/REQ ``requirements'' script. It will be invoked + automatically at installation/deinstallation time to determine + whether or not installation/deinstallation should proceed. + See man pkg_create(1) and man pkg_add(1) for + more information. + Install additional documentation