Changeset 998 for trunk/www


Ignore:
Timestamp:
Oct 8, 2002, 11:13:23 PM (22 years ago)
Author:
kevin
Message:

Added some bits about 'contents'

Location:
trunk/www
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/en/portfileHOWTO.php

    r963 r998  
    33//
    44// File     : portfileHOWTO.php
    5 // Version  : $Id: portfileHOWTO.php,v 1.7 2002/10/05 21:14:08 jkh Exp $
     5// Version  : $Id: portfileHOWTO.php,v 1.8 2002/10/08 23:13:23 kevin Exp $
    66// Location : /projects/darwinports/portfileHOWTO.php
    77//
     
    1616<pre><tt>
    1717Kevin Van Vechten | <a href="mailto:kevin@opendarwin.org">kevin@opendarwin.org</a>
    18 5-Oct-2002
     188-Oct-2002
    1919</tt></pre>
    2020<h3>
     
    186186% find /opt/local > /tmp/more.files
    187187% diff -u /tmp/existing.files /tmp/more.files | grep ^\+\/ | \
    188   sed -e 's|^\+/opt/local/||g' > contents
    189 </tt></pre>
    190 <p>
    191 Now that we have a contents file in our port directory, we should edit it to begin with <tt>contents {</tt> and end with a closing <tt>}</tt>.  (It is important to note that any other process using the <tt>${prefix}</tt> tree may interfere with the accuracy of the <tt>find</tt> command.  You should audit the resulting <tt>contents</tt> file to look for any files that appear out of place, specifically some DarwinPorts temporary files such as <tt>/var/db/dports/receipts/ircii-20020912.tmp</tt>.)  Next we should edit the Portfile to include our contents file:
     188  sed -e 's|^\+/opt/local/*||g' > contents
     189</tt></pre>
     190<p>
     191Now that we have a contents file in our port directory, we should edit it to begin with <tt>contents {</tt> and end with a closing <tt>}</tt>.  (It is important to note that any other process using the <tt>${prefix}</tt> tree may interfere with the accuracy of the <tt>find</tt> command.  You should audit the resulting <tt>contents</tt> file to look for any files that appear out of place, specifically some DarwinPorts temporary files such as <tt>/var/db/dports/receipts/ircii-20020912.tmp</tt>.)
     192It's also important to review the contents file and make sure directories are listed <i>after</i> the files they contain for the uninstall process to work correctly.
     193Next we should edit the Portfile to include our contents file:
    192194</p>
    193195<pre><tt>
     
    302304<pre><tt>
    303305contents {
    304 /bin/irc
    305 /bin/irc-20020912
     306bin/irc
     307bin/irc-20020912
    306308... omitted ...
    307 /man/man1/irc.1
    308 /man/man1/ircbug.1
    309 /man/man1/ircII.1
    310 /share/irc
    311 /share/irc/help
     309man/man1/irc.1
     310man/man1/ircbug.1
     311man/man1/ircII.1
     312man/man1
     313man
    312314... omitted ...
    313315}
  • trunk/www/portfileHOWTO.php

    r963 r998  
    33//
    44// File     : portfileHOWTO.php
    5 // Version  : $Id: portfileHOWTO.php,v 1.7 2002/10/05 21:14:08 jkh Exp $
     5// Version  : $Id: portfileHOWTO.php,v 1.8 2002/10/08 23:13:23 kevin Exp $
    66// Location : /projects/darwinports/portfileHOWTO.php
    77//
     
    1616<pre><tt>
    1717Kevin Van Vechten | <a href="mailto:kevin@opendarwin.org">kevin@opendarwin.org</a>
    18 5-Oct-2002
     188-Oct-2002
    1919</tt></pre>
    2020<h3>
     
    186186% find /opt/local > /tmp/more.files
    187187% diff -u /tmp/existing.files /tmp/more.files | grep ^\+\/ | \
    188   sed -e 's|^\+/opt/local/||g' > contents
    189 </tt></pre>
    190 <p>
    191 Now that we have a contents file in our port directory, we should edit it to begin with <tt>contents {</tt> and end with a closing <tt>}</tt>.  (It is important to note that any other process using the <tt>${prefix}</tt> tree may interfere with the accuracy of the <tt>find</tt> command.  You should audit the resulting <tt>contents</tt> file to look for any files that appear out of place, specifically some DarwinPorts temporary files such as <tt>/var/db/dports/receipts/ircii-20020912.tmp</tt>.)  Next we should edit the Portfile to include our contents file:
     188  sed -e 's|^\+/opt/local/*||g' > contents
     189</tt></pre>
     190<p>
     191Now that we have a contents file in our port directory, we should edit it to begin with <tt>contents {</tt> and end with a closing <tt>}</tt>.  (It is important to note that any other process using the <tt>${prefix}</tt> tree may interfere with the accuracy of the <tt>find</tt> command.  You should audit the resulting <tt>contents</tt> file to look for any files that appear out of place, specifically some DarwinPorts temporary files such as <tt>/var/db/dports/receipts/ircii-20020912.tmp</tt>.)
     192It's also important to review the contents file and make sure directories are listed <i>after</i> the files they contain for the uninstall process to work correctly.
     193Next we should edit the Portfile to include our contents file:
    192194</p>
    193195<pre><tt>
     
    302304<pre><tt>
    303305contents {
    304 /bin/irc
    305 /bin/irc-20020912
     306bin/irc
     307bin/irc-20020912
    306308... omitted ...
    307 /man/man1/irc.1
    308 /man/man1/ircbug.1
    309 /man/man1/ircII.1
    310 /share/irc
    311 /share/irc/help
     309man/man1/irc.1
     310man/man1/ircbug.1
     311man/man1/ircII.1
     312man/man1
     313man
    312314... omitted ...
    313315}
Note: See TracChangeset for help on using the changeset viewer.