Skip to content
Permalink
Browse files

Major but minor commit to the www svn space: reorder the sources a bi…

…t to have a cleaner

layout while bringing the content up to speed with current practices and reality, otherwise
sticking to the same website we had back in OpenDarwin days.

The one big thing about this commit, though, is that the old ports.php page is again operational,
as shown in my local server: http://apollo.homeunix.net/macports/ports.php. Woot!

Further discussion of what to do with these sources is needed, however, so I'm not gonna push to
host them anywhere for the time being until we have a clearer map of how we should move forward
wrt our web presence.

git-svn-id: https://svn.macports.org/repository/macports/trunk/www@28303 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jmpalacios committed Aug 28, 2007
1 parent 1f98a08 commit 63989fec679f8d54bab796df913e9dc574a29d93
Showing with 333 additions and 343 deletions.
  1. +3 −3 admin/{headlines → }/add.php
  2. +3 −3 admin/{headlines → }/edit.php
  3. +0 −4 admin/headlines/index.php
  4. +6 −7 admin/index.php
  5. +3 −3 admin/{headlines → }/list.php
  6. +1 −1 admin/{headlines → }/rss.php
  7. +3 −3 archives.php
  8. +4 −5 downloads/index.php → downloads.php
  9. +1 −1 emit_portfile.php
  10. +0 −129 getdp/index.php
  11. +123 −0 getmp.php
  12. +59 −0 help.php
  13. +0 −74 help/index.php
  14. +34 −12 includes/common.inc
  15. +2 −2 includes/email.inc
  16. +6 −4 includes/footer.inc
  17. +17 −17 includes/header.inc
  18. +3 −3 includes/lang.inc
  19. +20 −16 includes/{functions.inc → news.inc}
  20. +26 −36 index.php
  21. 0 { → localized}/es/archives.php
  22. 0 { → localized}/es/downloads/index.php
  23. 0 { → localized}/es/emit_portfile.php
  24. 0 { → localized}/es/getdp/index.php
  25. 0 { → localized}/es/help/index.php
  26. 0 { → localized}/es/includes/common.inc
  27. 0 { → localized}/es/includes/footer.inc
  28. 0 { → localized}/es/includes/functions.inc
  29. 0 { → localized}/es/includes/header.inc
  30. 0 { → localized}/es/includes/lang.inc
  31. 0 { → localized}/es/index.php
  32. 0 { → localized}/es/ports.php
  33. 0 { → localized}/fr/archives.php
  34. 0 { → localized}/fr/downloads/index.php
  35. 0 { → localized}/fr/emit_portfile.php
  36. 0 { → localized}/fr/getdp/index.php
  37. 0 { → localized}/fr/help/index.php
  38. 0 { → localized}/fr/includes/common.inc
  39. 0 { → localized}/fr/includes/db.inc
  40. 0 { → localized}/fr/includes/footer.inc
  41. 0 { → localized}/fr/includes/functions.inc
  42. 0 { → localized}/fr/includes/header.inc
  43. 0 { → localized}/fr/includes/lang.inc
  44. 0 { → localized}/fr/index.php
  45. 0 { → localized}/fr/ports.php
  46. 0 { → localized}/it/archives.php
  47. 0 { → localized}/it/downloads/index.php
  48. 0 { → localized}/it/emit_portfile.php
  49. 0 { → localized}/it/getdp/index.php
  50. 0 { → localized}/it/help/index.php
  51. 0 { → localized}/it/includes/common.inc
  52. 0 { → localized}/it/includes/db.inc
  53. 0 { → localized}/it/includes/footer.inc
  54. 0 { → localized}/it/includes/functions.inc
  55. 0 { → localized}/it/includes/header.inc
  56. 0 { → localized}/it/includes/lang.inc
  57. 0 { → localized}/it/index.php
  58. 0 { → localized}/it/ports.php
  59. 0 { → localized}/ru/emit_portfile.php
  60. 0 { → localized}/ru/getdp/index.php
  61. 0 { → localized}/ru/help/index.php
  62. 0 { → localized}/ru/includes/common.inc
  63. 0 { → localized}/ru/includes/db.inc
  64. 0 { → localized}/ru/includes/footer.inc
  65. 0 { → localized}/ru/includes/functions.inc
  66. 0 { → localized}/ru/includes/header.inc
  67. 0 { → localized}/ru/includes/lang.inc
  68. 0 { → localized}/ru/index.php
  69. 0 { → localized}/ru/ports.php
  70. 0 dp.css → mp.css
  71. +19 −20 ports.php
@@ -1,8 +1,8 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/common.inc");
include_once("$DOCUMENT_ROOT/includes/functions.inc");
print_header('DarwinPorts | Add news', 'iso-8859-1');
include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
include_once("$DOCUMENT_ROOT/macports/includes/news.inc");
print_header('MacPorts | Add news', 'utf-8');
?>

<div id="content">
@@ -1,8 +1,8 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/common.inc");
include_once("$DOCUMENT_ROOT/includes/functions.inc");
print_header('DarwinPorts | Edit news', 'iso-8859-1');
include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
include_once("$DOCUMENT_ROOT/macports/includes/news.inc");
print_header('MacPorts | Edit news', 'utf-8');
?>

<div id="content">

This file was deleted.

@@ -1,8 +1,7 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/common.inc");
include_once("$DOCUMENT_ROOT/includes/functions.inc");
print_header('DarwinPorts Site Administration', 'iso-8859-1');
include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
print_header('MacPorts Site Administration', 'utf-8');
?>

<div id="content">
@@ -12,13 +11,13 @@
the site:</p>

<ul>
<li><a href="/admin/headlines/add.php">Add headline</a></li>
<li><a href="/admin/headlines/list.php">List all headlines</a></li>
<li><a href="/admin/headlines/rss.php">Regenerate RSS feed</a></li>
<li><a href="/macports/admin/add.php">Add headline</a></li>
<li><a href="/macports/admin/list.php">List all headlines</a></li>
<li><a href="/macports/admin/rss.php">Regenerate RSS feed</a></li>
</ul>

<p>If you need to edit an already-posted headline, find it in the <a
href="/admin/headlines/list.php">list</a>, and choose edit.</p>
href="/macports/admin/list.php">list</a>, and choose edit.</p>
</div>
</div>

@@ -1,8 +1,8 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/common.inc");
include_once("$DOCUMENT_ROOT/includes/functions.inc");
print_header('DarwinPorts | List all news', 'iso-8859-1');
include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
include_once("$DOCUMENT_ROOT/macports/includes/news.inc");
print_header('MacPorts | List all news', 'utf-8');
?>

<div id="content">
@@ -1,5 +1,5 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/functions.inc");
include_once("$DOCUMENT_ROOT/macports/includes/news.inc");
create_rss();
?>
@@ -1,8 +1,8 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/common.inc");
include_once("$DOCUMENT_ROOT/includes/functions.inc");
print_header('DarwinPorts Home', 'iso-8859-1');
include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
include_once("$DOCUMENT_ROOT/macports/includes/news.inc");
print_header('MacPorts Home', 'utf-8');
?>

<div id="content">
@@ -1,8 +1,7 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/common.inc");
include_once("$DOCUMENT_ROOT/includes/functions.inc");
print_header('DarwinPorts Downloads', 'iso-8859-1');
include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
print_header('MacPorts Downloads', 'utf-8');
?>

<div id="content">
@@ -16,7 +15,7 @@
$files = array();
$rep=opendir($dir);
while ($file = readdir($rep)) {
if ( preg_match('/^(\..*)|(.*\.php)$/', $file)
if ( preg_match('/^(\..*)|(.*\.php)|(.*\.css)|(.*\.html)$/', $file)
|| is_dir($file)
) {
continue;
@@ -33,7 +32,7 @@
// Emit the files, with dates
foreach ($files as $f => $t) {
echo "<tr>";
echo "<td>".date("d-M-Y G:i", $t)."</td><td><a href=\"/downloads/$f\">$f</a></td>\n";
echo "<td>".date("d-M-Y G:i", $t)."</td><td><a href=\"/macports/downloads/$f\">$f</a></td>\n";
echo "</tr>";
}
?>
@@ -1,7 +1,7 @@
<?php

$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/includes/email.inc");
include_once("$DOCUMENT_ROOT/macports/includes/email.inc");

$portname = basename(dirname($_SERVER['PATH_INFO']));
?>

This file was deleted.

123 getmp.php
@@ -0,0 +1,123 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
print_header('Get MacPorts', 'utf-8');
?>

<div id="content">
<h2 class="hdr">Get MacPorts</h2>

<p>MacPorts version <? print "$mp_version_dmg"; ?> is available in binary form as a
dmg disk image for <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.4.dmg">
Tiger (Universal)</a> or <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.3.dmg">
Panther</a>, both containing a pkg installer, or version <? print "$mp_version"; ?>
in source form as either a <a href="/macports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.bz2">tar.bz2</a>
package or a <a href="/macports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.gz">tar.gz</a> one.
Checksums for all these are contained in the <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>.chk.txt">
checksums file</a>.</p>

<p>To get a files listing of all our available downloads checkout the
<a href="/macports/downloads.php">downloads section</a> of the site.</p>

<p>Please note that in order to install and run MacPorts on Mac OS X you must
have Apple's Developer Tools package installed, found at the <a href="http://developer.apple.com/tools/xcode/">Apple Developer site</a>
or on your Mac OS X installation CDs/DVD.</p>

<p>If you want to use MacPorts on a platform other than Mac OS X, please be
aware of the following requirements (we assume that you have basics such as
gcc):</p>
<ul>
<li>TCL (8.3 or 8.4)</li>
<li>curl</li>
<li>OpenSSL or libmd</li>
</ul>

<h5 class="subhdr">Mac OS X Package (.pkg) Installer</h5>

<p>The easiest way to install MacPorts on a Mac OS X system is by downloading
the <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.4.dmg">dmg for Tiger</a>
or the <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.3.dmg">one for Panther</a>
and running Installer.app on the pkg contained therein by double clicking on them,
following the on-screen instructions until completion. This procedure will place a
fully functional and default MacPorts installation on your host system,
ready for usage. If needed, your shell configuration files will be adapted by the installer
to include the necessary settings to run MacPorts. You may need to open a new shell for
these changes to take effect.</p>

<p>Although not strictly necessary, it is still recommended that you synchronize your
recent installation with our rsync server to ensure you have the latest release
available of the MacPorts infrastructure and of the &ldquo;Portfiles&rdquo; containing the instructions
employed in the building and installation of ports. To accomplish this simply execute:</p>

<pre>sudo port -d selfupdate</pre>

<p>It is also recommended to run the above command on a regular basis to keep your
installation always current. At this point you should be ready to enjoy MacPorts!</p>

<h5 class="subhdr">Source Installation</h5>

<p>If on the other hand you decide to install from source, there are still a couple of
things you will need to do once you've downloaded the tarball before you can
install a port with the MacPorts system, namely compiling and installing MacPorts itself.
&ldquo;<kbd>cd</kbd>&rdquo; into the directory where you downloaded the package
and run &ldquo;<kbd>tar xjvf <a href="/macpports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.bz2">
MacPorts-<? print "$mp_version"; ?>.tar.bz2</a></kbd>&rdquo; or &ldquo;<kbd>tar xzvf
<a href="/macports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.gz">MacPorts-<? print "$mp_version"; ?>.tar.gz</a></kbd>&rdquo;,
depending on whether you downloaded the bz2 tarball or the gz one, respectively.
This will unpack the MacPorts sources that you will proceed to build and install. To do
so, execute the following:</p>

<pre>cd MacPorts-<? print "$mp_version"; ?>

./configure &amp;&amp; make &amp;&amp; sudo make install</pre>

<p>Optionally:</p>

<pre>cd ../
rm -rf MacPorts-<? print "$mp_version"; ?>*</pre>

<p>These steps need to be perfomed from an administrator account, for which &ldquo;<kbd>sudo</kbd>&rdquo;
will ask the password upon installation. This procedure will install a pristine MacPorts
system and, if the optional steps are taken, remove the as of now unnecessary MacPorts-<? print "$mp_version"; ?>
source directory and corresponding tarball. To customize your installation you should read the output
of &ldquo;<kbd>./configure --help | more</kbd>&rdquo; and pass the appropriate options for the settings you wish
to tweak to the configuration script in the steps detailed above.</p>

<p>You will need to adapt your shell's configuration files to find the binaries installed by
MacPorts. Lastly, you need to synchronize your recent installation with the MacPorts rsync server:</p>

<pre>sudo port -d selfupdate</pre>

<p>Upon completion MacPorts will be ready to install ports. Again, it is recommended to run
the above command on a regular basis to keep your installation current.</p>


<h5 class="subhdr">Help</h5>

<p><a href="/macports/help.php">Help</a> is also available should you need it.</p>

<h5 class="subhdr">SVN Sources</h5>

<p>If you are developer or a user with a taste for the bleeding edge and wish for the latest changes
and feature additions, you may acquire the MacPorts sources through SVN.</p>

<p>Use the following command to check the project out of the MacPorts anonymous subversion
repository:</p>

<pre>svn co http://svn.macports.org/repository/macports/trunk</pre>

<p>If you do not want to bother with fetching from SVN, you can download
a nightly updated <a href="/macports/downloads/macports-nightly-svn-snapshot.tar.gz">
SVN-snapshot</a>. Once extracted, you can keep it up to date with the usual
&ldquo;<kbd>svn update</kbd>&rdquo; commands.</p>

<p>If you'd simply like to view the SVN repository without checking it
out, you can do so via the <a href="http://trac.macports.org/projects/macports/browser">
Trac browser</a>.</p>

</div>
</div>

<?php
print_footer();
?>

0 comments on commit 63989fe

Please sign in to comment.
You can’t perform that action at this time.