From da663f2d923d98a77b5da665baec58c938b5ed0e Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 30 Oct 2011 22:07:19 +0000 Subject: Describe @FOO@ replacement in INSTALL/DEINSTALL. Addresses PR 45513 by John Marino. --- doc/guide/files/components.xml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/guide/files/components.xml b/doc/guide/files/components.xml index 03aeece3a9f..cff63f13e68 100644 --- a/doc/guide/files/components.xml +++ b/doc/guide/files/components.xml @@ -1,4 +1,4 @@ - + Package components - files, directories and contents @@ -541,8 +541,23 @@ monitor_file(...) procedures not possible with @exec commands in PLIST. See &man.pkg.add.1; and &man.pkg.create.1; for more information. See also . - + linkend="files-and-dirs-outside-prefix" />. + Please note that you can modify variables in it easily by using + FILES_SUBST in the package's + Makefile: + + +FILES_SUBST+= SOMEVAR="somevalue" + + + replaces "@SOMEVAR@" with somevalue in the + INSTALL. By default, substitution is + performed for PREFIX, + LOCALBASE, X11BASE, + VARBASE, and a few others, type + make help topic=FILES_SUBST for a + complete list. + @@ -554,7 +569,9 @@ monitor_file(...) around the package's installation, since all pkg_delete knows is how to delete the files created in the original distribution. See &man.pkg.delete.1; - and &man.pkg.create.1; for more information. + and &man.pkg.create.1; for more information. + The same methods to replace variables can be used as for + the INSTALL file. -- cgit v1.2.3