Changeset 958 for trunk/www


Ignore:
Timestamp:
Oct 5, 2002, 6:38:29 PM (22 years ago)
Author:
kevin
Message:

Editorial changes.

Location:
trunk/www
Files:
2 edited

Legend:

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

    r948 r958  
    33//
    44// File     : portfileHOWTO.php
    5 // Version  : $Id: portfileHOWTO.php,v 1.5 2002/10/05 01:14:22 kevin Exp $
     5// Version  : $Id: portfileHOWTO.php,v 1.6 2002/10/05 18:38:29 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 3-Oct-2002
     185-Oct-2002
    1919</tt></pre>
    2020<h3>
     
    3434</p>
    3535<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:
     36Since 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):
    3737</p>
    3838<pre><tt>
     
    5757<a name="advancedtoc"></a><h4>Advanced Topics</h4>
    5858<ul>
    59 <li><a href="#targets">Overridding Targets</a></li>
     59<li><a href="#targets">Overriding Targets</a></li>
    6060<li><a href="#variants">Portfile Variants</a></li>
    6161</ul>
     
    8181</tt></pre>
    8282<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 portname and assume sources are in <tt>.tar.gz</tt> format.  From your working directory, execute the following command:
     83A 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>
     86At 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:
    8787</p>
    8888<pre><tt>
     
    9090</tt></pre>
    9191<p>
    92 Which should give the following output:
     92The <tt>port</tt> command operates on the <tt>Portfile</tt> in the current working directory.  You should see the following output:
    9393</p>
    9494<!--
     
    240240</tt></pre>
    241241<p>
    242 This example replaces the occurance 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.
     242This 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.
    243243</p>
    244244
  • trunk/www/portfileHOWTO.php

    r948 r958  
    33//
    44// File     : portfileHOWTO.php
    5 // Version  : $Id: portfileHOWTO.php,v 1.5 2002/10/05 01:14:22 kevin Exp $
     5// Version  : $Id: portfileHOWTO.php,v 1.6 2002/10/05 18:38:29 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 3-Oct-2002
     185-Oct-2002
    1919</tt></pre>
    2020<h3>
     
    3434</p>
    3535<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:
     36Since 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):
    3737</p>
    3838<pre><tt>
     
    5757<a name="advancedtoc"></a><h4>Advanced Topics</h4>
    5858<ul>
    59 <li><a href="#targets">Overridding Targets</a></li>
     59<li><a href="#targets">Overriding Targets</a></li>
    6060<li><a href="#variants">Portfile Variants</a></li>
    6161</ul>
     
    8181</tt></pre>
    8282<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 portname and assume sources are in <tt>.tar.gz</tt> format.  From your working directory, execute the following command:
     83A 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>
     86At 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:
    8787</p>
    8888<pre><tt>
     
    9090</tt></pre>
    9191<p>
    92 Which should give the following output:
     92The <tt>port</tt> command operates on the <tt>Portfile</tt> in the current working directory.  You should see the following output:
    9393</p>
    9494<!--
     
    240240</tt></pre>
    241241<p>
    242 This example replaces the occurance 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.
     242This 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.
    243243</p>
    244244
Note: See TracChangeset for help on using the changeset viewer.