diff --git a/en_US.ISO8859-1/books/porters-handbook/book.xml b/en_US.ISO8859-1/books/porters-handbook/book.xml index f8f8474832..7b094e4704 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.xml +++ b/en_US.ISO8859-1/books/porters-handbook/book.xml @@ -278,6 +278,19 @@ PLIST_DIRS= lib/X11/oneko Of course, PLIST_DIRS should be left unset if a port installs no directories of its own. + + + Several ports can share a common directory. In that + case, PLIST_DIRS should be replaced by + PLIST_DIRSTRY so that the directory is + removed only if empty, otherwise it is silently ignored. + PLIST_DIRS and + PLIST_DIRSTRY are equivalent to using + @dirrm and @dirrmtry + in pkg-plist, as described in + . + + The price for this way of listing port's files and directories is that you cannot use command sequences described in &man.pkg.create.1;. Therefore, it is suitable @@ -9917,21 +9930,26 @@ PLIST_SUB+= X11="@comment " post-install to a file named TMPPLIST. - Another possibility to modify port's packing list is based - on setting the variables PLIST_FILES and - PLIST_DIRS. The value of each variable is + Another way of modifying a port's packing list is based + on setting the variables PLIST_FILES, + PLIST_DIRS, and + PLIST_DIRSTRY. The value of each variable is regarded as a list of pathnames to write to TMPPLIST along with PLIST contents. Names - listed in PLIST_FILES and - PLIST_DIRS are subject to + listed in PLIST_FILES, + PLIST_DIRS, and + PLIST_DIRSTRY are subject to %%VAR%% - substitution, as described above. Except for that, names from + substitution as described above. Except for that, names from PLIST_FILES will appear in the final - packing list unchanged, while @dirrm will - be prepended to names from PLIST_DIRS. To - take effect, PLIST_FILES and - PLIST_DIRS must be set before + packing list unchanged, while @dirrm and + @dirrmtry will + be prepended to names from PLIST_DIRS + and PLIST_DIRSTRY, respectively. To + take effect, PLIST_FILES, + PLIST_DIRS, and + PLIST_DIRSTRY must be set before TMPPLIST is written, i.e., in pre-install or earlier. @@ -10059,8 +10077,9 @@ etc/orbit.conf.sample pkg-plist file (with or without variable substitution), or embedded into the Makefile via - PLIST_FILES and - PLIST_DIRS. Even if the contents are + PLIST_FILES, + PLIST_DIRS, and + PLIST_DIRSTRY. Even if the contents are auto-generated by a tool or a target in the Makefile before the inclusion into the Ports Collection by a committer, this is still considered a static