- Timestamp:
- Oct 8, 2002, 11:13:23 PM (22 years ago)
- Location:
- trunk/www
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/en/portfileHOWTO.php
r963 r998 3 3 // 4 4 // File : portfileHOWTO.php 5 // Version : $Id: portfileHOWTO.php,v 1. 7 2002/10/05 21:14:08 jkhExp $5 // Version : $Id: portfileHOWTO.php,v 1.8 2002/10/08 23:13:23 kevin Exp $ 6 6 // Location : /projects/darwinports/portfileHOWTO.php 7 7 // … … 16 16 <pre><tt> 17 17 Kevin Van Vechten | <a href="mailto:kevin@opendarwin.org">kevin@opendarwin.org</a> 18 5-Oct-200218 8-Oct-2002 19 19 </tt></pre> 20 20 <h3> … … 186 186 % find /opt/local > /tmp/more.files 187 187 % 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> 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>.) 192 It'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. 193 Next we should edit the Portfile to include our contents file: 192 194 </p> 193 195 <pre><tt> … … 302 304 <pre><tt> 303 305 contents { 304 /bin/irc305 /bin/irc-20020912306 bin/irc 307 bin/irc-20020912 306 308 ... omitted ... 307 /man/man1/irc.1308 /man/man1/ircbug.1309 /man/man1/ircII.1310 /share/irc 311 /share/irc/help 309 man/man1/irc.1 310 man/man1/ircbug.1 311 man/man1/ircII.1 312 man/man1 313 man 312 314 ... omitted ... 313 315 } -
trunk/www/portfileHOWTO.php
r963 r998 3 3 // 4 4 // File : portfileHOWTO.php 5 // Version : $Id: portfileHOWTO.php,v 1. 7 2002/10/05 21:14:08 jkhExp $5 // Version : $Id: portfileHOWTO.php,v 1.8 2002/10/08 23:13:23 kevin Exp $ 6 6 // Location : /projects/darwinports/portfileHOWTO.php 7 7 // … … 16 16 <pre><tt> 17 17 Kevin Van Vechten | <a href="mailto:kevin@opendarwin.org">kevin@opendarwin.org</a> 18 5-Oct-200218 8-Oct-2002 19 19 </tt></pre> 20 20 <h3> … … 186 186 % find /opt/local > /tmp/more.files 187 187 % 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> 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>.) 192 It'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. 193 Next we should edit the Portfile to include our contents file: 192 194 </p> 193 195 <pre><tt> … … 302 304 <pre><tt> 303 305 contents { 304 /bin/irc305 /bin/irc-20020912306 bin/irc 307 bin/irc-20020912 306 308 ... omitted ... 307 /man/man1/irc.1308 /man/man1/ircbug.1309 /man/man1/ircII.1310 /share/irc 311 /share/irc/help 309 man/man1/irc.1 310 man/man1/ircbug.1 311 man/man1/ircII.1 312 man/man1 313 man 312 314 ... omitted ... 313 315 }
Note: See TracChangeset
for help on using the changeset viewer.