View | Details | Raw Unified | Return to bug 37693
Collapse All | Expand All

(-)book.sgml_original (-6 / +8 lines)
Lines 3878-3895 Link Here
3878
      <title>Automated package list creation</title>
3878
      <title>Automated package list creation</title>
3879
3879
3880
      <para>First, make sure your port is almost complete, with only
3880
      <para>First, make sure your port is almost complete, with only
3881
        <filename>pkg-plist</filename> missing.</para>
3881
        <filename>pkg-plist</filename> missing.  Create an empty
3882
        <filename>pkg-plist</filename>.</para>
3882
3883
3883
      <para>Next, create a temporary set of directories into which
3884
      <screen>&prompt.root; <userinput>touch pkg-plist</userinput></screen>
3884
        your port can be installed, and install any
3885
3885
        dependencies.</para>
3886
      <para>Next, create a new set of directories which your port can be
3887
        installed, and install any dependencies.</para>
3886
3888
3887
      <screen>&prompt.root; <userinput>mtree -U -f /etc/mtree/BSD.local.dist -d -e -p /var/tmp/<replaceable>port-name</replaceable></userinput>
3889
      <screen>&prompt.root; <userinput>mtree -U -f /etc/mtree/BSD.local.dist -d -e -p /var/tmp/<replaceable>port-name</replaceable></userinput>
3888
&prompt.root; <userinput>make depends PREFIX=/var/tmp/<replaceable>port-name</replaceable></userinput></screen>
3890
&prompt.root; <userinput>make depends PREFIX=/var/tmp/<replaceable>port-name</replaceable></userinput></screen>
3889
3891
3890
      <para>Store the directory structure in a new file.</para>
3892
      <para>Store the directory structure in a new file.</para>
3891
3893
3892
      <screen>&prompt.root; <userinput>(cd /var/tmp/<replaceable>port-name</replaceable> && find -d * -type d) | sort - &gt; OLD-DIRS</userinput></screen>
3894
      <screen>&prompt.root; <userinput>(cd /var/tmp/<replaceable>port-name</replaceable> && find -d * -type d) &gt; OLD-DIRS</userinput></screen>
3893
3895
3894
      <para>If your port honors <makevar>PREFIX</makevar> (which it should)
3896
      <para>If your port honors <makevar>PREFIX</makevar> (which it should)
3895
        you can then install the port and create the package list.</para>
3897
        you can then install the port and create the package list.</para>
Lines 3900-3906 Link Here
3900
      <para>You must also add any newly created directories to the packing
3902
      <para>You must also add any newly created directories to the packing
3901
        list.</para>
3903
        list.</para>
3902
3904
3903
      <screen>&prompt.root; <userinput>(cd /var/tmp/<replaceable>port-name</replaceable> && find -d * -type d) | sort - | comm -13 OLD-DIRS - | sed -e 's#^#@dirrm #' &gt;&gt; pkg-plist</userinput></screen>
3905
      <screen>&prompt.root; <userinput>(cd /var/tmp/<replaceable>port-name && find -d * -type d) | comm -13 OLD-DIRS - | sed -e 's#^#@dirrm #' &gt;&gt; pkg-plist</replaceable></userinput></screen>
3904
3906
3905
      <para>Finally, you need to tidy up the packing list by hand; it isn't
3907
      <para>Finally, you need to tidy up the packing list by hand; it isn't
3906
        <emphasis>all</emphasis> automated.  Manual pages should be listed in
3908
        <emphasis>all</emphasis> automated.  Manual pages should be listed in

Return to bug 37693