Changeset 28994


Ignore:
Timestamp:
Sep 12, 2007, 10:33:44 PM (13 years ago)
Author:
jmpp@…
Message:
  • Rework the $mp_version* variables into $mp_version_major & $mp_version_latest, use them appropriately;
  • Abstract commonly used links in includes/common.inc and use them throughout all the files, but mainly in getmp.php;
  • Point the help section referenced in getmp.php to our trac portal;

NOTE: "Help" section and "SVN sources" in getmp.php still need to be rewritten.

Location:
trunk/www
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/getmp.php

    r28967 r28994  
    77
    88<div id="content">
     9
    910    <h2 class="hdr">Get MacPorts</h2>
    10     <p>MacPorts version <?php print "$mp_version_dmg"; ?> is available in binary form as a dmg disk image for <a
    11     href="/macports/downloads/MacPorts-<?php print "$mp_version_dmg"; ?>-10.4.dmg">Tiger (Universal)</a> or <a
    12     href="/macports/downloads/MacPorts-<?php print "$mp_version_dmg"; ?>-10.3.dmg">Panther</a>, both containing
    13     a pkg installer, or version <?php print "$mp_version"; ?> in source form as either a <a href="/macports/downloads/MacPorts-<?php
    14     print "$mp_version"; ?>.tar.bz2">tar.bz2</a> package or a <a href="/macports/downloads/MacPorts-<?php print
    15     "$mp_version"; ?>.tar.gz">tar.gz</a> one. Checksums for all these are contained in the <a href="/macports/downloads/MacPorts-<?php
    16     print "$mp_version_dmg"; ?>.chk.txt">checksums file</a>.</p>
    1711
    18     <p>To get a files listing of all our available downloads checkout the <a href="/macports/downloads.php">
     12    <p>MacPorts version <?php print "$mp_version_major"; ?> is available in binary form as a dmg disk image for <a
     13    href="<?php print $tiger_dmg; ?>"> Tiger (Universal)</a> or <a href="<?php print $panther_dmg; ?>"> Panther</a>,
     14    both containing a pkg installer, or in source form as either a <a href="<?php print $bz2_tarball ?>">tar.bz2</a>
     15    package or a <a href="<?php print $gz_tarball; ?>">tar.gz</a> one. Checksums for all these are contained in the
     16    <a href="<?php print $checksums; ?>">checksums file</a>.</p>
     17
     18    <p>To get a files listing of all our available downloads checkout the <a href="<?php print $downloads; ?>">
    1919    downloads section</a> of the site.</p>
    2020
     
    3636    <h3 class="subhdr">Mac OS X Package (.pkg) Installer</h3>
    3737
    38     <p>The easiest way to install MacPorts on a Mac OS X system is by downloading the
    39     <a href="/macports/downloads/MacPorts-<?php print "$mp_version_dmg"; ?>-10.4.dmg"> dmg for Tiger</a>or the
    40     <a href="/macports/downloads/MacPorts-<?php print "$mp_version_dmg"; ?>-10.3.dmg"> one for Panther</a>and
    41     running Installer.app on the pkg contained therein by double clicking on them, following the on-screen
    42     instructions until completion. This procedure will place a fully functional and default MacPorts
    43     installation on your host system, ready for usage. If needed, your shell configuration files will be
    44     adapted by the installer to include the necessary settings to run MacPorts. You may need to open a new
    45     shell for these changes to take effect.</p>
     38    <p>The easiest way to install MacPorts on a Mac OS X system is by downloading the <a href="<?php print $tiger_dmg;
     39    ?>">dmg for Tiger</a> or the <a href="<?php print $panther_dmg; ?>"> one for Panther</a> and running Installer.app
     40    on the pkg contained therein by double clicking on them, following the on-screen instructions until completion. This
     41    procedure will place a fully functional and default MacPorts installation on your host system, ready for usage. If
     42    needed, your shell configuration files will be adapted by the installer to include the necessary settings to run
     43    MacPorts. You may need to open a new shell for these changes to take effect.</p>
    4644
    47     <p>Although not strictly necessary, it is still recommended that you synchronize your recent installation
    48     with our rsync server to ensure you have the latest release available of the MacPorts infrastructure and
    49     of the &ldquo;Portfiles&rdquo; containing the instructions employed in the building and installation of
    50     ports. To accomplish this simply execute:</p>
     45    <p>Although not strictly necessary, it is still recommended that you synchronize your recent installation with our
     46    rsync server to ensure you have the latest release available of the MacPorts infrastructure and of the &ldquo;Portfiles&rdquo;
     47    containing the instructions employed in the building and installation of ports. To accomplish this simply execute:</p>
    5148
    5249    <pre>sudo port -d selfupdate</pre>
     
    6057    do once you've downloaded the tarball before you can install a port with the MacPorts system, namely compiling
    6158    and installing MacPorts itself. &ldquo;<kbd>cd</kbd>&rdquo; into the directory where you downloaded the package
    62     and run &ldquo;<kbd>tar xjvf <a href="/macports/downloads/MacPorts-<?php print "$mp_version"; ?>.tar.bz2">MacPorts-<?php
    63     print "$mp_version"; ?>.tar.bz2</a></kbd>&rdquo; or &ldquo;<kbd>tar xzvf <a href="/macports/downloads/MacPorts-<?php
    64     print "$mp_version"; ?>.tar.gz">MacPorts-<?php print "$mp_version"; ?>.tar.gz</a></kbd>&rdquo;, depending on
    65     whether you downloaded the bz2 tarball or the gz one, respectively. This will unpack the MacPorts sources that
    66     you will proceed to build and install. To do so, execute the following:</p>
     59    and run &ldquo;<kbd>tar xjvf <a href="<?php print $bz2_tarball; ?>">MacPorts-<?php print "$mp_version_major"; ?>.tar.bz2
     60    </a></kbd>&rdquo; or &ldquo;<kbd>tar xzvf <a href="<?php print $gz_tarball; ?>">MacPorts-<?php print "$mp_version_major";
     61    ?>.tar.gz</a></kbd>&rdquo;, depending on whether you downloaded the bz2 tarball or the gz one, respectively.
     62    This will unpack the MacPorts sources that you will proceed to build and install. To do so, execute the following:</p>
    6763
    68 <pre>cd MacPorts-<?php print "$mp_version"; ?>
     64<pre>cd MacPorts-<?php print $mp_version_major; ?>
    6965
    7066./configure &amp;&amp; make &amp;&amp; sudo make install</pre>
     
    7369
    7470<pre>cd ../
    75 rm -rf MacPorts-<?php print "$mp_version"; ?>*</pre>
     71rm -rf MacPorts-<?php print $mp_version_major; ?>*</pre>
    7672
    7773    <p>These steps need to be perfomed from an administrator account, for which &ldquo;<kbd>sudo</kbd>&rdquo;
    7874    will ask the password upon installation. This procedure will install a pristine MacPorts system and, if the
    79     optional steps are taken, remove the as of now unnecessary MacPorts-<?php print "$mp_version"; ?> source
    80     directory and corresponding tarball. To customize your installation you should read the output of &ldquo;
    81     <kbd>./configure --help | more</kbd>&rdquo; and pass the appropriate options for the settings you wish to
     75    optional steps are taken, remove the as of now unnecessary MacPorts-<?php print "$mp_version_major"; ?> source
     76    directory and corresponding tarball. To customize your installation you should read the output of
     77    &ldquo;<kbd>./configure --help | more</kbd>&rdquo; and pass the appropriate options for the settings you wish to
    8278    tweak to the configuration script in the steps detailed above.</p>
    8379       
     
    9288    <h3 class="subhdr">Help</h3>
    9389
    94     <p><a href="/macports/help.php">Help</a> is also available should you need it.</p>
     90    <p>Help is also available through our <a href="<?php print $trac_url; ?>">Trac portal</a> should you need it.</p>
    9591
    9692    <h3 class="subhdr">SVN Sources</h3>
     
    10197    <p>Use the following command to check the project out of the MacPorts anonymous subversion repository:</p>
    10298
    103 <pre>svn co http://svn.macports.org/repository/macports/trunk</pre>
     99<pre>svn co <?php print $svn_url . '/trunk'; ?></pre>
    104100
    105101    <p>If you do not want to bother with fetching from SVN, you can download a nightly updated
  • trunk/www/includes/common.inc

    r28966 r28994  
    1717######################################################################
    1818
    19 # print the current MacPorts version
    20 $mp_version = "1.5.2";
    21 $mp_version_major = "1.5.0";
     19# print the current MacPorts version:
     20$mp_version_major = '1.5.0';
     21$mp_version_latest = '1.5.2';
     22
     23
     24######################################################################
     25
     26# Some useful URL abstractions:
     27$trac_url = 'http://trac.macports.org/projects/macports';
     28$svn_url = 'http://svn.macports.org/repository/macports';
     29$downloads = $svn_url . '/downloads/MacPorts-' . $mp_version_major;
     30$tiger_dmg = $downloads . '/MacPorts-' . $mp_version_major .'-10.4.dmg';
     31$panther_dmg = $downloads . '/MacPorts-' . $mp_version_major .'-10.3.dmg';
     32$bz2_tarball = $downloads . '/MacPorts-' . $mp_version_major . '.tar.bz2';
     33$gz_tarball = $downloads . '/MacPorts-' . $mp_version_major . '.tar.gz';
     34$checksums = $downloads .  '/MacPorts-' . $mp_version_major . '.chk.txt';
     35
    2236
    2337######################################################################
  • trunk/www/includes/header.inc

    r28966 r28994  
    11<?php
    22/* $Id$ */
    3 global $mp_version_major;
     3global $mp_version_major, $trac_url;
    44?>
    55
     
    2929                    'Available Ports' => 'ports.php',
    3030                    'Documentation' => 'http://geeklair.net/new_macports_guide',
    31                     'Support &amp; Development' => 'http://trac.macports.org/',
     31                    'Support &amp; Development' => "$trac_url"
    3232                );
    3333
  • trunk/www/index.php

    r28912 r28994  
    4848      </p>
    4949      <p>
    50         <b>Current MacPorts <a href="/macports/getmp.php">release</a>: <?php print "$mp_version"; ?></b>
     50        <b>Current MacPorts <a href="/macports/getmp.php">release</a>: <?php print "$mp_version_latest"; ?></b>
    5151      </p>
    5252      <div id="news">
Note: See TracChangeset for help on using the changeset viewer.