From 862b2b51c6fc22b49f4d9909cd407fad919262c2 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Thu, 1 Oct 2015 14:34:20 +0000 Subject: [PATCH] Restructurate the custom keywords section in subsections. Reviewed by: brd, wblock Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3755 --- .../books/porters-handbook/plist/chapter.xml | 85 ++++++++++++------- 1 file changed, 56 insertions(+), 29 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/plist/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/plist/chapter.xml index 3b470afa65..e567182039 100644 --- a/en_US.ISO8859-1/books/porters-handbook/plist/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/plist/chapter.xml @@ -667,14 +667,45 @@ PLIST_SUB+= X11I386="@comment " directory. The settings for each keyword are stored in a UCL file named keyword.ucl. - The file must contain at least one of the next - sections: + The file must contain at least one of these sections: - - - attributes + + + attributes + + + + action + + + + pre-install + + + + post-install + + + + pre-deinstall + + + + post-deinstall + + + + pre-upgrade + + + + post-upgrade + + + + + <literal>attributes</literal> - Changes the owner, group, or mode used by the keyword. Contains an associative array where the possible keys are owner, @@ -683,13 +714,11 @@ PLIST_SUB+= X11I386="@comment " and a file mode. For example: attributes: { owner: "games", group: "games", mode: 0555 } - - + - - action + + <literal>action</literal> - Defines what happens to the keyword's parameter. Contains an array where the possible values are: @@ -783,13 +812,11 @@ PLIST_SUB+= X11I386="@comment " - - + - - arguments + + <literal>arguments</literal> - If set to true, adds argument handling, splitting the whole line, %@, into numbered arguments, %1, @@ -810,18 +837,16 @@ other.content argument number must be specified. For example: actions: [file(1)] - - + - - pre-install - post-install - pre-deinstall - post-deinstall - pre-upgrade - post-upgrade + + <literal>pre-install</literal>, + <literal>post-install</literal>, + <literal>pre-deinstall</literal>, + <literal>post-deinstall</literal>, + <literal>pre-upgrade</literal>, + <literal>post-upgrade</literal> - These keywords contains a &man.sh.1; script to be executed before or after installation, deinstallation, or upgrade of the package. In addition to the usual @@ -831,9 +856,10 @@ other.content linkend="plist-keywords-base-exec"/>, there is a new one, %@, which represents the argument of the keyword. - - - + + + + Custom Keyword Examples Example of a <literal>@dirrmtryecho</literal> @@ -888,6 +914,7 @@ pre-deinstall: <<EOD fi EOD</programlisting> </example> + </sect3> </sect2> </sect1> </chapter>