[29083] trunk/www

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 14 10:02:54 PDT 2007


Revision: 29083
          http://trac.macosforge.org/projects/macports/changeset/29083
Author:   jmpp at macports.org
Date:     2007-09-14 10:02:54 -0700 (Fri, 14 Sep 2007)

Log Message:
-----------
Recover some files that were deleted 'cause the were no longer needed and move them
(and other stuff into a legacy/ dir).

Modified Paths:
--------------
    trunk/www/.htaccess

Added Paths:
-----------
    trunk/www/legacy/
    trunk/www/legacy/.htaccess
    trunk/www/legacy/admin/
    trunk/www/legacy/archives.php
    trunk/www/legacy/downloads.php
    trunk/www/legacy/emit_portfile.php
    trunk/www/legacy/help.php
    trunk/www/legacy/portmgr_voting_200503.html

Removed Paths:
-------------
    trunk/www/admin/
    trunk/www/archives.php
    trunk/www/emit_portfile.php
    trunk/www/portmgr_voting_200503.html

Modified: trunk/www/.htaccess
===================================================================
--- trunk/www/.htaccess	2007-09-14 16:39:26 UTC (rev 29082)
+++ trunk/www/.htaccess	2007-09-14 17:02:54 UTC (rev 29083)
@@ -2,8 +2,3 @@
     Order allow,deny
     Deny from all
 </Files>
-<Files Portfile>
-    Action process-portfile /emit_portfile.php
-    SetHandler process-portfile
-</Files>
-

Deleted: trunk/www/archives.php
===================================================================
--- trunk/www/archives.php	2007-09-14 16:39:26 UTC (rev 29082)
+++ trunk/www/archives.php	2007-09-14 17:02:54 UTC (rev 29083)
@@ -1,23 +0,0 @@
-  <?php
-    /* $Id$ */
-    $MPWEB = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']);
-    include_once("$MPWEB/includes/common.inc");
-    include_once("$MPWEB/includes/news.inc");
-    print_header('MacPorts -- News Archive', 'utf-8');
-  ?>
-
-    <div id="content">
-		<h2 class="hdr">News Archive</h2>
-     <?php
-		if (isset($_GET['id'])) {
-			print_headline();
-		} else {
-			print_all_headlines_nonadmin();
-		}
-      ?>
-
-
-    </div>
-<?php
-  print_footer();
-?>

Deleted: trunk/www/emit_portfile.php
===================================================================
--- trunk/www/emit_portfile.php	2007-09-14 16:39:26 UTC (rev 29082)
+++ trunk/www/emit_portfile.php	2007-09-14 17:02:54 UTC (rev 29083)
@@ -1,75 +0,0 @@
-<?php
-/* $Id$ */
-$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
-$MPWEB = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']);
-include_once("$MPWEB/includes/email.inc");
-$portname = basename(dirname($_SERVER['PATH_INFO']));
-?>
-
-<html>
-	<head>
-		<title><?=$portname?> Portfile</title>
-	</head>
-	<body>
-
-<?php
-
-//	Read the file as an array of lines
-$target	= "${DOCUMENT_ROOT}${_SERVER['PATH_INFO']}";
-$lines = @file($target);
-if ($lines)
-{
-	print "<pre>";
-	foreach ($lines as $line)
-	{
-		$out = $line;
-
-		//	Replace tabs with spaces to maintain proper spacing
-		$tabs = 4;
-		$pos = 0;
-		$out = '';
-		for ($i = 0; $i < strlen($line); ++$i)
-		{
-			$char = $line{$i};
-			switch ($char)
-			{
-			case "\t":
-				$cnt = $tabs - ($pos % $tabs);
-				$out .= str_repeat(" ", $cnt);
-				$pos += $cnt;
-				break;
-			default:
-				$out .= $char;
-				++$pos;
-				break;
-			}
-		}
-
-		//	Clean up any html-unfriendly characters
-		$out = htmlspecialchars($out);
-
-		//	Special handling for email addresses
-		if (preg_match('/\s*(maintainers\s+)(.*)/i', $out, $matches))
-		{
-			$func = $matches[1];
-			$params = $matches[2];
-			
-			$addresses = preg_split('/\s+/', $params);
-			
-			foreach ($addresses as $addr)
-				$emails[] = obfuscate_email($addr);
-			
-			$out = $func.(count($emails) ? join(' ', $emails) : '')."\n";
-		}
-		
-		//	Output line
-		print $out;
-	}
-	print "</pre>";
-}
-else
-	print "Couldn't open file $target";
-?>
-
-	</body>
-</html>

Copied: trunk/www/legacy/.htaccess (from rev 29082, trunk/www/.htaccess)
===================================================================
--- trunk/www/legacy/.htaccess	                        (rev 0)
+++ trunk/www/legacy/.htaccess	2007-09-14 17:02:54 UTC (rev 29083)
@@ -0,0 +1,5 @@
+<Files Portfile>
+    Action process-portfile /emit_portfile.php
+    SetHandler process-portfile
+</Files>
+

Copied: trunk/www/legacy/admin (from rev 29082, trunk/www/admin)

Copied: trunk/www/legacy/archives.php (from rev 29082, trunk/www/archives.php)
===================================================================
--- trunk/www/legacy/archives.php	                        (rev 0)
+++ trunk/www/legacy/archives.php	2007-09-14 17:02:54 UTC (rev 29083)
@@ -0,0 +1,23 @@
+  <?php
+    /* $Id$ */
+    $MPWEB = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']);
+    include_once("$MPWEB/includes/common.inc");
+    include_once("$MPWEB/includes/news.inc");
+    print_header('MacPorts -- News Archive', 'utf-8');
+  ?>
+
+    <div id="content">
+		<h2 class="hdr">News Archive</h2>
+     <?php
+		if (isset($_GET['id'])) {
+			print_headline();
+		} else {
+			print_all_headlines_nonadmin();
+		}
+      ?>
+
+
+    </div>
+<?php
+  print_footer();
+?>

Copied: trunk/www/legacy/downloads.php (from rev 29009, trunk/www/downloads.php)
===================================================================
--- trunk/www/legacy/downloads.php	                        (rev 0)
+++ trunk/www/legacy/downloads.php	2007-09-14 17:02:54 UTC (rev 29083)
@@ -0,0 +1,42 @@
+<?php
+    /* $Id$ */
+    $MPWEB = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']);
+    include_once("$MPWEB/includes/common.inc");
+    print_header('MacPorts -- Downloads', 'utf-8');
+?>
+
+<div id="content">
+    <h2 class="hdr">Available Downloads</h2>
+<?php
+    $dir=".";
+    // Read files from the dirctory
+    $files = array();
+    $rep=opendir($dir);
+    while ($file = readdir($rep)) {
+        if (preg_match('/^(\..*)|(.*\.(php|css|html|js))$/', $file) || is_dir($file)) {
+            continue;
+        }
+        // Add file to array, as key, with modtime as value
+        $files[$file] = filemtime($file);
+    }
+    closedir($rep);
+
+    // Print the table only if the $files array is non-emtpy
+    if (count($files)) {
+        // Sort the array in reverse order by value (modtime)
+        arsort($files);
+        // Emit the files, with dates
+        echo "<table>";
+        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 "</tr>";
+        }
+        echo "</table>";
+    }
+?>
+</div>
+
+<?php
+    print_footer();
+?>

Copied: trunk/www/legacy/emit_portfile.php (from rev 29082, trunk/www/emit_portfile.php)
===================================================================
--- trunk/www/legacy/emit_portfile.php	                        (rev 0)
+++ trunk/www/legacy/emit_portfile.php	2007-09-14 17:02:54 UTC (rev 29083)
@@ -0,0 +1,75 @@
+<?php
+/* $Id$ */
+$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
+$MPWEB = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']);
+include_once("$MPWEB/includes/email.inc");
+$portname = basename(dirname($_SERVER['PATH_INFO']));
+?>
+
+<html>
+	<head>
+		<title><?=$portname?> Portfile</title>
+	</head>
+	<body>
+
+<?php
+
+//	Read the file as an array of lines
+$target	= "${DOCUMENT_ROOT}${_SERVER['PATH_INFO']}";
+$lines = @file($target);
+if ($lines)
+{
+	print "<pre>";
+	foreach ($lines as $line)
+	{
+		$out = $line;
+
+		//	Replace tabs with spaces to maintain proper spacing
+		$tabs = 4;
+		$pos = 0;
+		$out = '';
+		for ($i = 0; $i < strlen($line); ++$i)
+		{
+			$char = $line{$i};
+			switch ($char)
+			{
+			case "\t":
+				$cnt = $tabs - ($pos % $tabs);
+				$out .= str_repeat(" ", $cnt);
+				$pos += $cnt;
+				break;
+			default:
+				$out .= $char;
+				++$pos;
+				break;
+			}
+		}
+
+		//	Clean up any html-unfriendly characters
+		$out = htmlspecialchars($out);
+
+		//	Special handling for email addresses
+		if (preg_match('/\s*(maintainers\s+)(.*)/i', $out, $matches))
+		{
+			$func = $matches[1];
+			$params = $matches[2];
+			
+			$addresses = preg_split('/\s+/', $params);
+			
+			foreach ($addresses as $addr)
+				$emails[] = obfuscate_email($addr);
+			
+			$out = $func.(count($emails) ? join(' ', $emails) : '')."\n";
+		}
+		
+		//	Output line
+		print $out;
+	}
+	print "</pre>";
+}
+else
+	print "Couldn't open file $target";
+?>
+
+	</body>
+</html>

Copied: trunk/www/legacy/help.php (from rev 28648, trunk/www/help.php)
===================================================================
--- trunk/www/legacy/help.php	                        (rev 0)
+++ trunk/www/legacy/help.php	2007-09-14 17:02:54 UTC (rev 29083)
@@ -0,0 +1,60 @@
+  <?php
+    /* $Id$ */
+    $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
+    include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
+    print_header('MacPorts -- Help', 'utf-8');
+  ?>
+
+	<div id="content">
+		<h2 class="hdr">Get Help</h2>
+
+		<p>If you get stuck while using MacPorts and have a problem you 
+	        can't figure out, we have a lot of resources to help you.</p>
+	  
+		<h5 class="subhdr">Documentation</h5>
+
+		<p>The <a href="http://geeklair.net/new_macports_guide/">MacPorts Guide</a> has a section dedicated to MacPorts
+                installation issues, <a href="http://geeklair.net/new_macports_guide/#installing">Chapter 2. Installing MacPorts</a>
+                and another one for general usage, <a href="http://geeklair.net/new_macports_guide/#using">Chapter 3: Using MacPorts</a>.</p>
+
+		<p>The <a href="http://trac.macports.org/projects/macports/wiki/FAQ">MacPorts FAQ</a>
+		is now an ongoing, user driven effort part of our <a href="http://trac.macports.org/projects/macports/wiki">Wiki</a>,
+		where anyone with a <a href="http://www.macports.org/wp-register.php">Trac account</a>
+		and MacPorts knowledge can contribute with information to help others.</p>
+
+		<p>All of our documentation is a work in progress, so if you spot an error or have a quesiton about some part of the document, 
+                let us know!  This will help us </p>
+	
+		<h5 class="subhdr">Mailing Lists</h5>
+
+		<p>The <a href="http://lists.macosforge.org/mailman/listinfo/macports-users">General MacPorts mailing list</a> is open to all
+                for supscription. It is the best place for existing and new users alike to ask questions about MacPorts and MacPorts
+                installed software. Please note that due to spam problems the mailing list will reject posts from non-subscribers.</p>
+
+                <p>It is recommended to check the <a href="http://lists.macosforge.org/pipermail/macports-users/">list archive</a> before posting
+                a question, as some issues are aired fairly regularly and dealt with many times in a row. We try to be as helpful as possible,
+                but if it's a common question our answers may be fairly short.</p>
+
+		<p>When posting a question to the mailing list, please included	any information you think might be relevent to the problem, 
+		such as  operating system and version you're using, Mac OS X 10.4.10 for example, whether you have any other third party 
+		software installed, in <kbd>/usr/local</kbd> for instance, and any error messages that MacPorts might give you (use the
+                <kbd>-v</kbd> or <kbd>-d port(1)</kbd>'s flags to turn on verbose or debugging information, it's a lot easier for us to
+                help you once these are used).</p>
+
+                <p>If you are a developer and need help with any part of the MacPorts internals, the <a href="http://lists.macosforge.org/mailman/listinfo/macports-dev">
+                development list</a> is where you should direct your posts to, as this is where all discussion about MacPorts itself takes place.
+                <a href="http://lists.macosforge.org/pipermail/macports-dev/">Archives</a> for this mailing list are also available.</p>
+
+		<h5 class="subhdr">IRC</h5>
+
+		<p>For more real-time discussion, the #MacPorts channel on the <a href="http://freenode.net/">Freenode IRC network</a> is generally
+		where we hang out. Though it is generally helpful, please keep in mind that no one is obligated to help or even answer your question
+                if you join IRC. Do not take it personally, simply ask your question on the <a href="http://lists.macosforge.org/mailman/listinfo/macports-users">
+                users</a> or <a href="http://lists.macosforge.org/mailman/listinfo/macports-dev">development</a> mailing lists instead.</p>
+
+	</div>
+</div>
+
+<?php
+  print_footer();
+?>

Copied: trunk/www/legacy/portmgr_voting_200503.html (from rev 29082, trunk/www/portmgr_voting_200503.html)
===================================================================
--- trunk/www/legacy/portmgr_voting_200503.html	                        (rev 0)
+++ trunk/www/legacy/portmgr_voting_200503.html	2007-09-14 17:02:54 UTC (rev 29083)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="stylesheet" type="text/css" href="http://www.opendarwin.org/opendarwin.css" /><link rel="alternate" type="application/rss+xml" title="OpenDarwin RSS" href="http://www.opendarwin.org/en/news/index.rss" /><link rel="icon" type="image/png" href="http://www.opendarwin.org/favicon.png" /><link rel="shortcut icon" type="image/x-icon" href="http://www.opendarwin.org/favicon.ico" />
+<title>DarwinPorts portmgr@ Election</title>
+</head>
+<body><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="od-header"><a href="http://www.opendarwin.org/en/hexley.html"><img src="http://www.opendarwin.org/images/hexley-1.png" alt="Hexley" width="80" height="80" border="0" /></a><a href="http://www.opendarwin.org/en/"><img src="http://www.opendarwin.org/images/odlogo.gif" alt="OpenDarwin" width="202" height="41" border="0" /></a></div>
+
+<!-- begin main content section -->
+<div id="content">
+<table border="0" width="80%" align="center"><tr><td>
+<h1>NOTE: Voting venue changed to sancho due to lamancha instability, see below</h1>
+<h2>Darwinports portmgr@ Election</h2>
+
+The candidates for the portmgr@ election are (in no particular order):<br>
+
+<ul>
+	<li>Tristan O'Tierney (tristan)</li>
+	<li>Jim Mock (mij)</li>
+	<li>Markus Weissmann (mww)</li>
+	<li>Juan Manual Palacios  (jmpp)</li>
+	<li>Ole Guldberg Jensen (olegb)</li>
+</ul>
+
+The voting will be conducted as follows:<br>
+<br>
+- Each commiter will upload a text file named "portmgr-vote-loginname.txt"
+containing the votes to their home directory on sancho.opendarwin.org.  sftp will work for uploading to sancho.  Your vote-meister prefers that your vote files are readable by group staff (see below for voting end time).  sftp may require a numeric group ID instead of 'staff', in this case 20 == staff.<br>
+<br>
+- The preferred format for the voting files is one vote per line.  Preferred line format is to have the nickname of the candidate (as in parenthesis above), nothing else.<br>
+<br>
+- If, for some reason, sancho.opendarwin.org is not available at voting time, you may email: <br><br>
+ <center>
+<img src="img/vote_img.png" alt="" width="207" height="16" />
+</center> <br>
+as a substitute.  Messages must be *received* before the voting deadline.  It is *highly* recommended you vote at least a day before the deadline in case of problems.<br>
+<br>
+- Each commiter can place a total of 3 votes, with only one vote per candidate.  Duplicate votes will be discarded.<br>
+<br>
+- Voting ends at the 15 march 2005 at 09:00 UTC (yes virginia, that's 01:00 US/Pacific).<br>
+<br>
+- Votes will be tabulated by the official vote-meister and announced on the darwinports mailing list.<br>
+
+<br>
+
+</td></tr></table>
+<br>
+<!-- end main content section -->
+</div>
+
+</td></tr></table></body>
+</html>

Deleted: trunk/www/portmgr_voting_200503.html
===================================================================
--- trunk/www/portmgr_voting_200503.html	2007-09-14 16:39:26 UTC (rev 29082)
+++ trunk/www/portmgr_voting_200503.html	2007-09-14 17:02:54 UTC (rev 29083)
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel="stylesheet" type="text/css" href="http://www.opendarwin.org/opendarwin.css" /><link rel="alternate" type="application/rss+xml" title="OpenDarwin RSS" href="http://www.opendarwin.org/en/news/index.rss" /><link rel="icon" type="image/png" href="http://www.opendarwin.org/favicon.png" /><link rel="shortcut icon" type="image/x-icon" href="http://www.opendarwin.org/favicon.ico" />
-<title>DarwinPorts portmgr@ Election</title>
-</head>
-<body><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="od-header"><a href="http://www.opendarwin.org/en/hexley.html"><img src="http://www.opendarwin.org/images/hexley-1.png" alt="Hexley" width="80" height="80" border="0" /></a><a href="http://www.opendarwin.org/en/"><img src="http://www.opendarwin.org/images/odlogo.gif" alt="OpenDarwin" width="202" height="41" border="0" /></a></div>
-
-<!-- begin main content section -->
-<div id="content">
-<table border="0" width="80%" align="center"><tr><td>
-<h1>NOTE: Voting venue changed to sancho due to lamancha instability, see below</h1>
-<h2>Darwinports portmgr@ Election</h2>
-
-The candidates for the portmgr@ election are (in no particular order):<br>
-
-<ul>
-	<li>Tristan O'Tierney (tristan)</li>
-	<li>Jim Mock (mij)</li>
-	<li>Markus Weissmann (mww)</li>
-	<li>Juan Manual Palacios  (jmpp)</li>
-	<li>Ole Guldberg Jensen (olegb)</li>
-</ul>
-
-The voting will be conducted as follows:<br>
-<br>
-- Each commiter will upload a text file named "portmgr-vote-loginname.txt"
-containing the votes to their home directory on sancho.opendarwin.org.  sftp will work for uploading to sancho.  Your vote-meister prefers that your vote files are readable by group staff (see below for voting end time).  sftp may require a numeric group ID instead of 'staff', in this case 20 == staff.<br>
-<br>
-- The preferred format for the voting files is one vote per line.  Preferred line format is to have the nickname of the candidate (as in parenthesis above), nothing else.<br>
-<br>
-- If, for some reason, sancho.opendarwin.org is not available at voting time, you may email: <br><br>
- <center>
-<img src="img/vote_img.png" alt="" width="207" height="16" />
-</center> <br>
-as a substitute.  Messages must be *received* before the voting deadline.  It is *highly* recommended you vote at least a day before the deadline in case of problems.<br>
-<br>
-- Each commiter can place a total of 3 votes, with only one vote per candidate.  Duplicate votes will be discarded.<br>
-<br>
-- Voting ends at the 15 march 2005 at 09:00 UTC (yes virginia, that's 01:00 US/Pacific).<br>
-<br>
-- Votes will be tabulated by the official vote-meister and announced on the darwinports mailing list.<br>
-
-<br>
-
-</td></tr></table>
-<br>
-<!-- end main content section -->
-</div>
-
-</td></tr></table></body>
-</html>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070914/bd044573/attachment.html


More information about the macports-changes mailing list