- Timestamp:
- Oct 5, 2002, 6:38:29 PM (22 years ago)
- Location:
- trunk/www
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/en/portfileHOWTO.php
r948 r958 3 3 // 4 4 // File : portfileHOWTO.php 5 // Version : $Id: portfileHOWTO.php,v 1. 5 2002/10/05 01:14:22kevin Exp $5 // Version : $Id: portfileHOWTO.php,v 1.6 2002/10/05 18:38:29 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 3-Oct-200218 5-Oct-2002 19 19 </tt></pre> 20 20 <h3> … … 34 34 </p> 35 35 <p> 36 Since you're interested in writing a Portfile, let's change some configuration options that will help in debugging as we go. Edit the file <tt>/etc/ports/ports.conf</tt> to contain the following :36 Since you're interested in writing a Portfile, let's change some configuration options that will help in debugging as we go. Edit the file <tt>/etc/ports/ports.conf</tt> to contain the following (you'll likely have to use <tt>sudo</tt> to edit this file): 37 37 </p> 38 38 <pre><tt> … … 57 57 <a name="advancedtoc"></a><h4>Advanced Topics</h4> 58 58 <ul> 59 <li><a href="#targets">Overrid ding Targets</a></li>59 <li><a href="#targets">Overriding Targets</a></li> 60 60 <li><a href="#variants">Portfile Variants</a></li> 61 61 </ul> … … 81 81 </tt></pre> 82 82 <p> 83 The <tt>portname</tt> and <tt>portversion</tt> options describe the name and version of the software, the <tt>categories</tt> option is a list of the logical categories to which the software belongs, this is used for organizational purposes. The first entry in <tt>categories</tt> should match the directory in which the port's directory resides in the port tree. The <tt>maintainers</tt> option should contain your email address, and the <tt>master_sites</tt> option should contain a list of sites where the distribution sources may be downloaded.84 </p> 85 <p> 86 At this point, the Portfile is complete enough to download ircII. By default, DarwinPorts will append the port version to the portnameand assume sources are in <tt>.tar.gz</tt> format. From your working directory, execute the following command:83 A Portfile consists of key/value pairs. The <tt>portname</tt> and <tt>portversion</tt> key describe the name and version of the software. The <tt>categories</tt> key is a list of the logical categories to which the software belongs; this is used for organizational purposes. The first entry in <tt>categories</tt> should match the directory in which the port's directory resides in the port tree. The <tt>maintainers</tt> key should contain your email address, and the <tt>master_sites</tt> key should contain a list of sites where the distribution sources may be downloaded. DarwinPorts uses the terms 'keys' and 'options' interchangeably since most keys are used as options of a particular task in the porting process. 84 </p> 85 <p> 86 At this point, the Portfile is complete enough to download ircII. By default, DarwinPorts will append the <tt>portversion</tt> to the <tt>portname</tt> and assume sources are in <tt>.tar.gz</tt> format. From your working directory, execute the following command: 87 87 </p> 88 88 <pre><tt> … … 90 90 </tt></pre> 91 91 <p> 92 Which should give the following output:92 The <tt>port</tt> command operates on the <tt>Portfile</tt> in the current working directory. You should see the following output: 93 93 </p> 94 94 <!-- … … 240 240 </tt></pre> 241 241 <p> 242 This example replaces the occur ance of <tt>change.this.to.a.server</tt> with <tt>irc.openprojects.net</tt> in the config.h file that was generated during the preceding <tt>configure</tt> phase. Note this is a somewhat contrived example, since the same could have been accomplished by specifying <tt>--with-default-server=irc.openprojects.net</tt> in <tt>configure.args</tt>, but the approach is generally useful when such configure arguments aren't present.242 This example replaces the occurrence of <tt>change.this.to.a.server</tt> with <tt>irc.openprojects.net</tt> in the config.h file that was generated during the preceding <tt>configure</tt> phase. Note this is a somewhat contrived example, since the same could have been accomplished by specifying <tt>--with-default-server=irc.openprojects.net</tt> in <tt>configure.args</tt>, but the approach is generally useful when such configure arguments aren't present. 243 243 </p> 244 244 -
trunk/www/portfileHOWTO.php
r948 r958 3 3 // 4 4 // File : portfileHOWTO.php 5 // Version : $Id: portfileHOWTO.php,v 1. 5 2002/10/05 01:14:22kevin Exp $5 // Version : $Id: portfileHOWTO.php,v 1.6 2002/10/05 18:38:29 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 3-Oct-200218 5-Oct-2002 19 19 </tt></pre> 20 20 <h3> … … 34 34 </p> 35 35 <p> 36 Since you're interested in writing a Portfile, let's change some configuration options that will help in debugging as we go. Edit the file <tt>/etc/ports/ports.conf</tt> to contain the following :36 Since you're interested in writing a Portfile, let's change some configuration options that will help in debugging as we go. Edit the file <tt>/etc/ports/ports.conf</tt> to contain the following (you'll likely have to use <tt>sudo</tt> to edit this file): 37 37 </p> 38 38 <pre><tt> … … 57 57 <a name="advancedtoc"></a><h4>Advanced Topics</h4> 58 58 <ul> 59 <li><a href="#targets">Overrid ding Targets</a></li>59 <li><a href="#targets">Overriding Targets</a></li> 60 60 <li><a href="#variants">Portfile Variants</a></li> 61 61 </ul> … … 81 81 </tt></pre> 82 82 <p> 83 The <tt>portname</tt> and <tt>portversion</tt> options describe the name and version of the software, the <tt>categories</tt> option is a list of the logical categories to which the software belongs, this is used for organizational purposes. The first entry in <tt>categories</tt> should match the directory in which the port's directory resides in the port tree. The <tt>maintainers</tt> option should contain your email address, and the <tt>master_sites</tt> option should contain a list of sites where the distribution sources may be downloaded.84 </p> 85 <p> 86 At this point, the Portfile is complete enough to download ircII. By default, DarwinPorts will append the port version to the portnameand assume sources are in <tt>.tar.gz</tt> format. From your working directory, execute the following command:83 A Portfile consists of key/value pairs. The <tt>portname</tt> and <tt>portversion</tt> key describe the name and version of the software. The <tt>categories</tt> key is a list of the logical categories to which the software belongs; this is used for organizational purposes. The first entry in <tt>categories</tt> should match the directory in which the port's directory resides in the port tree. The <tt>maintainers</tt> key should contain your email address, and the <tt>master_sites</tt> key should contain a list of sites where the distribution sources may be downloaded. DarwinPorts uses the terms 'keys' and 'options' interchangeably since most keys are used as options of a particular task in the porting process. 84 </p> 85 <p> 86 At this point, the Portfile is complete enough to download ircII. By default, DarwinPorts will append the <tt>portversion</tt> to the <tt>portname</tt> and assume sources are in <tt>.tar.gz</tt> format. From your working directory, execute the following command: 87 87 </p> 88 88 <pre><tt> … … 90 90 </tt></pre> 91 91 <p> 92 Which should give the following output:92 The <tt>port</tt> command operates on the <tt>Portfile</tt> in the current working directory. You should see the following output: 93 93 </p> 94 94 <!-- … … 240 240 </tt></pre> 241 241 <p> 242 This example replaces the occur ance of <tt>change.this.to.a.server</tt> with <tt>irc.openprojects.net</tt> in the config.h file that was generated during the preceding <tt>configure</tt> phase. Note this is a somewhat contrived example, since the same could have been accomplished by specifying <tt>--with-default-server=irc.openprojects.net</tt> in <tt>configure.args</tt>, but the approach is generally useful when such configure arguments aren't present.242 This example replaces the occurrence of <tt>change.this.to.a.server</tt> with <tt>irc.openprojects.net</tt> in the config.h file that was generated during the preceding <tt>configure</tt> phase. Note this is a somewhat contrived example, since the same could have been accomplished by specifying <tt>--with-default-server=irc.openprojects.net</tt> in <tt>configure.args</tt>, but the approach is generally useful when such configure arguments aren't present. 243 243 </p> 244 244
Note: See TracChangeset
for help on using the changeset viewer.