Fix mistakes in the 'Automated package list creation' chapter.
While I'm here, mention /usr/ports/Tools/scripts plist as an alternative. PR: 37693 Submitted by: Harry Newton <harry_newton@telinco.co.uk>
This commit is contained in:
parent
bbd411a18f
commit
d56304979d
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=15983
1 changed files with 8 additions and 7 deletions
|
@ -6189,12 +6189,9 @@ pre-install:
|
|||
<title>Automated package list creation</title>
|
||||
|
||||
<para>First, make sure your port is almost complete, with only
|
||||
<filename>pkg-plist</filename> missing. Create an empty
|
||||
<filename>pkg-plist</filename>.</para>
|
||||
<filename>pkg-plist</filename> missing.</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>touch pkg-plist</userinput></screen>
|
||||
|
||||
<para>Next, create a new set of directories which your port can be
|
||||
<para>Next, create a temporary directory tree into which your port can be
|
||||
installed, and install any dependencies.</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>mkdir /var/tmp/<replaceable>port-name</replaceable></userinput>
|
||||
|
@ -6203,7 +6200,7 @@ pre-install:
|
|||
|
||||
<para>Store the directory structure in a new file.</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>(cd /var/tmp/<replaceable>port-name</replaceable> && find -d * -type d) > OLD-DIRS</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>(cd /var/tmp/<replaceable>port-name</replaceable> && find -d * -type d) | sort -r > OLD-DIRS</userinput></screen>
|
||||
|
||||
<para>If your port honors <makevar>PREFIX</makevar> (which it should)
|
||||
you can then install the port and create the package list.</para>
|
||||
|
@ -6214,7 +6211,7 @@ pre-install:
|
|||
<para>You must also add any newly created directories to the packing
|
||||
list.</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>(cd /var/tmp/<replaceable>port-name && find -d * -type d) | comm -13 OLD-DIRS - | sort -r | sed -e 's#^#@dirrm #' >> pkg-plist</replaceable></userinput></screen>
|
||||
<screen>&prompt.root; <userinput>(cd /var/tmp/<replaceable>port-name</replaceable> && find -d * -type d) | sort -r | comm -13 OLD-DIRS - | sed -e 's#^#@dirrm #' >> pkg-plist</userinput></screen>
|
||||
|
||||
<para>Finally, you need to tidy up the packing list by hand; it is not
|
||||
<emphasis>all</emphasis> automated. Manual pages should be listed in
|
||||
|
@ -6229,6 +6226,10 @@ pre-install:
|
|||
files</link> section. Any
|
||||
libraries installed by the port should be listed as specified in the
|
||||
<link linkend="porting-shlibs">shared libraries</link> section.</para>
|
||||
|
||||
<para>Alternatively, use the <command>plist</command> script in
|
||||
<filename>/usr/ports/Tools/scripts/</filename> to build the
|
||||
package list automatically.</para>
|
||||
</chapter>
|
||||
|
||||
<chapter id="changes">
|
||||
|
|
Loading…
Reference in a new issue