[22629] trunk/dports/sysutils

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 7 23:34:00 PST 2007


Revision: 22629
          http://trac.macosforge.org/projects/macports/changeset/22629
Author:   jmpp at macports.org
Date:     2007-03-07 23:34:00 -0800 (Wed, 07 Mar 2007)

Log Message:
-----------

Draft Portfile for the upcoming MacPorts 1.4 release, sans still unavailable checksums due to a still missing tarball
to validate (in short, users wont shoot themselves in the foot with this Portfile as there is nothing available to
download yet).

Question: after 1.4 is out, do we want to keep the DarwinPorts Portfile around....? We've migrated, but the old
tarballs are still up at the repo for anyone who might need them.

Added Paths:
-----------
    trunk/dports/sysutils/macports/
    trunk/dports/sysutils/macports/Portfile
    trunk/dports/sysutils/macports/ReadMe.rtf
    trunk/dports/sysutils/macports/files/
    trunk/dports/sysutils/macports/files/License.html
    trunk/dports/sysutils/macports/files/postflight

Added: trunk/dports/sysutils/macports/Portfile
===================================================================
--- trunk/dports/sysutils/macports/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/macports/Portfile	2007-03-08 07:34:00 UTC (rev 22629)
@@ -0,0 +1,165 @@
+# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping at macports.org $
+
+PortSystem 		1.0
+
+name			MacPorts
+version			1.4
+
+categories		sysutils
+platforms		darwin freebsd
+maintainers		macports-mgr at lists.macosforge.org
+
+description		The MacPorts Infrastructure
+long_description	MacPorts provides the infrastructure that allows easy installation and management \
+			of freely available software on Mac OS X 10.3 or newer systems.
+
+homepage		http://www.macports.org
+master_sites		http://svn.macosforge.org/repository/macports/downloads/${name}-${version}
+
+checksums		md5 \
+			sha1 \
+			rmd160 
+
+destroot.keepdirs ${destroot}${prefix}/include\
+	${destroot}${prefix}/lib ${destroot}${prefix}/libexec\
+	${destroot}${prefix}/sbin\
+	${destroot}${prefix}/share/info\
+	${destroot}${prefix}/share/man/cat1 ${destroot}${prefix}/share/man/cat2 ${destroot}${prefix}/share/man/cat3\
+	${destroot}${prefix}/share/man/cat4 ${destroot}${prefix}/share/man/cat5 ${destroot}${prefix}/share/man/cat6\
+	${destroot}${prefix}/share/man/cat7 ${destroot}${prefix}/share/man/cat8 ${destroot}${prefix}/share/man/cat9\
+	${destroot}${prefix}/share/man/catl ${destroot}${prefix}/share/man/catn \
+	${destroot}${prefix}/share/man/man1 ${destroot}${prefix}/share/man/man2 ${destroot}${prefix}/share/man/man3\
+	${destroot}${prefix}/share/man/man4 ${destroot}${prefix}/share/man/man5 ${destroot}${prefix}/share/man/man6\
+	${destroot}${prefix}/share/man/man7 ${destroot}${prefix}/share/man/man8 ${destroot}${prefix}/share/man/man9\
+	${destroot}${prefix}/share/man/manl ${destroot}${prefix}/share/man/mann \
+	${destroot}${prefix}/share/nls/C ${destroot}${prefix}/share/nls/skel\
+	${destroot}${prefix}/share/nls/af_ZA.ISO8859-1\
+	${destroot}${prefix}/share/nls/af_ZA.ISO8859-15\
+	${destroot}${prefix}/share/nls/bg_BG.CP1251\
+	${destroot}${prefix}/share/nls/cs_CZ.ISO8859-2\
+	${destroot}${prefix}/share/nls/da_DK.ISO8859-1\
+	${destroot}${prefix}/share/nls/da_DK.ISO8859-15\
+	${destroot}${prefix}/share/nls/de_AT.ISO8859-1\
+	${destroot}${prefix}/share/nls/de_AT.ISO8859-15\
+	${destroot}${prefix}/share/nls/de_CH.ISO8859-1\
+	${destroot}${prefix}/share/nls/de_CH.ISO8859-15\
+	${destroot}${prefix}/share/nls/de_DE.ISO8859-1\
+	${destroot}${prefix}/share/nls/de_DE.ISO8859-15\
+	${destroot}${prefix}/share/nls/el_GR.ISO8859-7\
+	${destroot}${prefix}/share/nls/en_AU.ISO8859-1\
+	${destroot}${prefix}/share/nls/en_AU.ISO8859-15\
+	${destroot}${prefix}/share/nls/en_AU.US-ASCII\
+	${destroot}${prefix}/share/nls/en_CA.ISO8859-1\
+	${destroot}${prefix}/share/nls/en_CA.ISO8859-15\
+	${destroot}${prefix}/share/nls/en_CA.US-ASCII\
+	${destroot}${prefix}/share/nls/en_GB.ISO8859-1\
+	${destroot}${prefix}/share/nls/en_GB.ISO8859-15\
+	${destroot}${prefix}/share/nls/en_GB.US-ASCII\
+	${destroot}${prefix}/share/nls/en_NZ.ISO8859-1\
+	${destroot}${prefix}/share/nls/en_NZ.ISO8859-15\
+	${destroot}${prefix}/share/nls/en_NZ.US-ASCII\
+	${destroot}${prefix}/share/nls/en_US.ISO8859-1\
+	${destroot}${prefix}/share/nls/en_US.ISO8859-15\
+	${destroot}${prefix}/share/nls/es_ES.ISO8859-1\
+	${destroot}${prefix}/share/nls/es_ES.ISO8859-15\
+	${destroot}${prefix}/share/nls/et_EE.ISO8859-15\
+	${destroot}${prefix}/share/nls/fi_FI.ISO8859-1\
+	${destroot}${prefix}/share/nls/fi_FI.ISO8859-15\
+	${destroot}${prefix}/share/nls/fr_BE.ISO8859-1\
+	${destroot}${prefix}/share/nls/fr_BE.ISO8859-15\
+	${destroot}${prefix}/share/nls/fr_CA.ISO8859-1\
+	${destroot}${prefix}/share/nls/fr_CA.ISO8859-15\
+	${destroot}${prefix}/share/nls/fr_CH.ISO8859-1\
+	${destroot}${prefix}/share/nls/fr_CH.ISO8859-15\
+	${destroot}${prefix}/share/nls/fr_FR.ISO8859-1\
+	${destroot}${prefix}/share/nls/fr_FR.ISO8859-15\
+	${destroot}${prefix}/share/nls/hi_IN.ISCII-DEV\
+	${destroot}${prefix}/share/nls/hr_HR.ISO8859-2\
+	${destroot}${prefix}/share/nls/hu_HU.ISO8859-2\
+	${destroot}${prefix}/share/nls/is_IS.ISO8859-1\
+	${destroot}${prefix}/share/nls/is_IS.ISO8859-15\
+	${destroot}${prefix}/share/nls/it_CH.ISO8859-1\
+	${destroot}${prefix}/share/nls/it_CH.ISO8859-15\
+	${destroot}${prefix}/share/nls/it_IT.ISO8859-1\
+	${destroot}${prefix}/share/nls/it_IT.ISO8859-15\
+	${destroot}${prefix}/share/nls/ja_JP.SJIS\
+	${destroot}${prefix}/share/nls/ja_JP.eucJP\
+	${destroot}${prefix}/share/nls/ko_KR.eucKR\
+	${destroot}${prefix}/share/nls/la_LN.ISO8859-1\
+	${destroot}${prefix}/share/nls/la_LN.ISO8859-15\
+	${destroot}${prefix}/share/nls/la_LN.ISO8859-2\
+	${destroot}${prefix}/share/nls/la_LN.ISO8859-4\
+	${destroot}${prefix}/share/nls/la_LN.US-ASCII\
+	${destroot}${prefix}/share/nls/lt_LT.ISO8859-4\
+	${destroot}${prefix}/share/nls/nl_BE.ISO8859-1\
+	${destroot}${prefix}/share/nls/nl_BE.ISO8859-15\
+	${destroot}${prefix}/share/nls/nl_NL.ISO8859-1\
+	${destroot}${prefix}/share/nls/nl_NL.ISO8859-15\
+	${destroot}${prefix}/share/nls/no_NO.ISO8859-1\
+	${destroot}${prefix}/share/nls/no_NO.ISO8859-15\
+	${destroot}${prefix}/share/nls/pl_PL.ISO8859-2\
+	${destroot}${prefix}/share/nls/pt_BR.ISO8859-1\
+	${destroot}${prefix}/share/nls/pt_PT.ISO8859-1\
+	${destroot}${prefix}/share/nls/pt_PT.ISO8859-15\
+	${destroot}${prefix}/share/nls/ro_RO.ISO8859-2\
+	${destroot}${prefix}/share/nls/ru_RU.CP866\
+	${destroot}${prefix}/share/nls/ru_RU.ISO8859-5\
+	${destroot}${prefix}/share/nls/ru_RU.KOI8-R\
+	${destroot}${prefix}/share/nls/sk_SK.ISO8859-2\
+	${destroot}${prefix}/share/nls/sl_SI.ISO8859-2\
+	${destroot}${prefix}/share/nls/sv_SE.ISO8859-1\
+	${destroot}${prefix}/share/nls/sv_SE.ISO8859-15\
+	${destroot}${prefix}/share/nls/tr_TR.ISO8859-9\
+	${destroot}${prefix}/share/nls/uk_UA.ISO8859-5\
+	${destroot}${prefix}/share/nls/uk_UA.KOI8-U\
+	${destroot}${prefix}/share/nls/zh_CN.eucCN\
+	${destroot}${prefix}/share/nls/zh_TW.Big5\
+	${destroot}${prefix}/var/db/dports/distfiles ${destroot}${prefix}/var/db/dports/receipts
+
+post-pkg {
+	set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
+	file copy -force -- ${filespath}/ReadMe.rtf ${resources}
+	file copy -force -- ${filespath}/License.html ${resources}
+	file copy -force -- ${filespath}/postflight ${resources}
+}
+
+platform darwin 7 {
+	 post-pkg {
+		  set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
+		  reinplace "s|__XVERS__|10.3|" ${resources}/ReadMe.rtf
+		  reinplace "s|or newer ||" ${resources}/Welcome.html
+	 }
+}
+
+platform darwin 8 {
+	 post-pkg {
+		  set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
+		  reinplace "s|is built|contains a Universal binary|" ${resources}/ReadMe.rtf
+		  reinplace "s|__XVERS__|10.4|" ${resources}/ReadMe.rtf
+		  reinplace "s|3|4|" ${resources}/Welcome.html
+		  reinplace "s|or newer ||" ${resources}/Welcome.html
+	 }
+}
+
+platform darwin 8 powerpc {
+	pre-configure {
+		set sdkrootpath /Developer/SDKs/MacOSX10.4u.sdk
+		if {[file exists ${sdkrootpath}]} {
+			# User has Universal SDK installed.
+			set tclstubpath /System/Library/Frameworks/Tcl.framework/Versions/8.4/libtclstub8.4.a
+			if {![file exists ${sdkrootpath}${tclstubpath}]} {
+				ui_msg "Fixing your MacOSX10.4u installation by copying libtclstub8.4.a to\
+				 ${sdkrootpath}${tclstubpath}"
+				system "cp -p ${tclstubpath} ${sdkrootpath}${tclstubpath}"
+			}
+			# Supply architecture flags to build darwinports as fat
+			configure.args-append "CFLAGS='-isysroot ${sdkrootpath} -arch ppc -arch i386'\
+			SHLIB_LDFLAGS='-Wl,-syslibroot,${sdkrootpath} -arch ppc -arch i386'"
+		}
+	}
+}
+
+platform darwin 8 i386 {
+	# Supply architecture flags to build darwinports as fat on an Intel Mac
+	configure.args-append "CFLAGS='-arch ppc -arch i386' SHLIB_LDFLAGS='-arch ppc -arch i386'"
+}

Added: trunk/dports/sysutils/macports/ReadMe.rtf
===================================================================
--- trunk/dports/sysutils/macports/ReadMe.rtf	                        (rev 0)
+++ trunk/dports/sysutils/macports/ReadMe.rtf	2007-03-08 07:34:00 UTC (rev 22629)
@@ -0,0 +1,122 @@
+{\rtf1\mac\ansicpg10000\cocoartf102
+{\fonttbl\f0\fswiss\fcharset77 Helvetica;\f1\fswiss\fcharset77 Helvetica-Bold;\f2\fswiss\fcharset77 Helvetica-Oblique;
+}
+{\colortbl;\red255\green255\blue255;}
+\margl1440\margr1440\vieww15040\viewh13420\viewkind0
+\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural
+
+\f0\fs24 \cf0 \
+
+\f1\b What is MacPorts?
+\f0\b0 \
+\
+MacPorts provides an infrastructure for building, installing, and packaging open source software.  It is designed to match the functionality of the FreeBSD Ports system and to be extensible for future enhancements.\
+\
+
+\f1\b \
+System Requirements:
+\f0\b0 \
+\
+This disk image is built for Mac OS X __XVERS__.x and requires valid TCL, curl and OpenSSL installations to function - all present by default on Mac OS X. Also required is the installation of Apple's XCode programing suite, available as a separate installation from your OS X CDs or DVD, or preferably the latest version from Apple's Developer site: {\field{\*\fldinst{HYPERLINK "http://developer.apple.com/"}}{\fldrslt http://developer.apple.com/}}.\
+\
+\
+
+\f1\b Install Location:\
+
+\f0\b0 \
+This installer places a ready to use  copy of MacPorts into its default location, /opt/local. If you wish to install to a path other than this, you must instal directly from MacPorts' source code. See {\field{\*\fldinst{HYPERLINK "http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts"}}{\fldrslt Installing MacPorts}} on the MacPorts Wiki for instructions.\
+
+\f1\b \
+\
+What is Installed:\
+
+\f0\b0 \
+Aside from a few MacPorts executable commands in /opt/local/bin, most MacPorts files are installed in /opt/local/var/db/dports. Within these directories you will find a "sources" directory containing the Portfiles that hold the necessary instructions to install ports and the MacPorts sources themselves. Both are kept up to date through the 
+\f2\i sync
+\f0\i0  and 
+\f2\i selfupdate
+\f0\i0  targets of the 
+\f2\i port
+\f0\i0  command, respectively. Please read the port(1) man page for more information.\
+
+\f1\b \
+\
+Shell Environment:
+\f0\b0 \
+\
+A file named ~/.profile is created for the use of the "bash" shell during the binary file install of MacPorts, default on Mac OS X 10.3 and newer. It contains the necessary statements to append MacPorts' binary paths within /opt/local/ to your environment, so MacPorts will be available to you for subsequent terminal sessions. You may have to quit and restart your terminal application for this change to take effect.\
+\
+
+\f1\b \
+Basic Usage:\
+
+\f0\b0 \
+The main interface to MacPorts is the 
+\f2\i port
+\f0\i0  command and the various facilities it provides for installing ports. The first thing you should do after you install MacPorts is to make sure it is fully up to date by pulling the latest revisions to the Portfiles and any newer MacPorts point release that might be available from our rsync servers, all accomplished simply by running the "selfupdate" target of the 
+\f2\i port 
+\f0\i0 command as the Unix superuser:\
+\
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
+\cf0 	
+\f2\i sudo port selfupdate 
+\f0\i0 \
+\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural
+\cf0 \
+Following that, you may wish to search for a specific software package:\
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
+\cf0 \
+	
+\f2\i port search <portname>
+\f0\i0 \
+\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural
+\cf0 \
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
+\cf0 where 
+\f2\i <portname>
+\f0\i0  is the name of the package you are searching for or that you wish to install. You may use partial names for searching, MacPorts will return the best matches to your query within our ports tree. To finally install a port you've chosen, you need to run the corresponding "install" target of 
+\f2\i port
+\f0\i0   again as the superuser:\
+\
+	
+\f2\i sudo port install <portname> 
+\f0\i0 \
+\
+where in this case 
+\f2\i <portname> 
+\f0\i0 now maps to an exact port name that we carry in our ports tree, such as those returned by the "search" target
+\f2\i . 
+\f0\i0 Please consult the port(1) man page for complete documentation of this command and the software installation process.\
+\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural
+
+\f1\b \cf0 \
+\
+Documentation:\
+
+\f0\b0 \
+The MacPorts Wiki is available at: {\field{\*\fldinst{HYPERLINK "http://trac.macosforge.org/projects/macports/wiki/"}}{\fldrslt http://trac.macports.org/projects/macports/}} and should be consulted for further documentation and support. Also provided are man pages for 
+\f2\i port
+\f0\i0 , 
+\f2\i ports.conf
+\f0\i0 , 
+\f2\i portfile
+\f0\i0 , 
+\f2\i portgroup
+\f0\i0 , 
+\f2\i portstyle
+\f0\i0 , and 
+\f2\i porthier
+\f0\i0 . These can be invoked by typing: "man" followed by the name of the command or file (e.g. "man port" or "man ports.conf").\
+\
+\
+
+\f1\b Creating New Ports:\
+\
+
+\f0\b0 If you are interested in developing your own ports for private usage, or would like to submit your ports for inclusion within the MacPorts software repository, please consult the documentation provided on our website. MacPorts depends on a community of active participants, and we are always open to welcome new contributors!\
+
+\f1\b \
+
+\f0\b0 \
+Thank you for your interest in MacPorts!\
+}
\ No newline at end of file

Added: trunk/dports/sysutils/macports/files/License.html
===================================================================
--- trunk/dports/sysutils/macports/files/License.html	                        (rev 0)
+++ trunk/dports/sysutils/macports/files/License.html	2007-03-08 07:34:00 UTC (rev 22629)
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <title></title>
+  <meta name="Generator" content="Cocoa HTML Writer">
+  <meta name="CocoaVersion" content="824.23">
+  <style type="text/css">
+    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
+    p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
+  </style>
+</head>
+<body>
+<p class="p1">Copyright (c) 2002 - 2003 Apple Computer, Inc.</p>
+<p class="p1">All rights reserved.</p>
+<p class="p2"><br></p>
+<p class="p1">Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
+<ol>
+  <li style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
+  <li style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
+  <li style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">Neither the name of Apple Computer, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
+</ol>
+<p class="p2"><br></p>
+<p class="p1">THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
+</body>
+</html>

Added: trunk/dports/sysutils/macports/files/postflight
===================================================================
--- trunk/dports/sysutils/macports/files/postflight	                        (rev 0)
+++ trunk/dports/sysutils/macports/files/postflight	2007-03-08 07:34:00 UTC (rev 22629)
@@ -0,0 +1,93 @@
+#!/bin/bash
+#
+# Copyright (c) 2005 Ole Guldberg Jensen <olegb at opendarwin.org>
+# Copyright (c) 2005 Dr. Ernie Prabhakar <drernir at opendarwin.org>
+# Copyright (c) 2005 Matt Anton <matt at opendarwin.org>
+# Copyright (c) 2005 Juan Manuel Palacios <jmpp at opendarwin.org>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY Eric Melville AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+#
+
+echo ""
+echo "Checking the PATH variable for $USER..."
+echo ""
+
+BINPATH=/opt/local/bin
+SBINPATH=/opt/local/sbin
+TMP=`/usr/bin/mktemp /tmp/dp.$$`
+$SHELL -l <<EOF > $TMP
+    /usr/bin/printenv PATH
+    exit
+EOF
+
+if grep $BINPATH $TMP >/dev/null 2>&1; then
+	echo "You already have the right PATH - l337!"
+else
+    USHELL=`basename $SHELL`
+   echo "Setting the PATH of $USHELL for $USER in ${HOME:=/Users/$USER}..."
+    case $USHELL in
+      *csh)
+        /bin/cp -fp $HOME/.cshrc $HOME/.cshrc.dpsaved	# we backup the original
+        echo "#" >> $HOME/.cshrc
+        echo "# Your previous .cshrc (if any) is saved as .cshrc.dpsaved" >> $HOME/.cshrc
+        echo "# Setting the path for DarwinPorts." >> $HOME/.cshrc
+        echo "set path=($BINPATH $SBINPATH" '$path'")" >> $HOME/.cshrc
+        chown $USER $HOME/.cshrc
+        echo "Finished modifying $HOME/.cshrc"
+       ;;
+      *sh)
+        /bin/cp -fp $HOME/.profile $HOME/.profile.dpsaved # we backup the original
+        echo "#" >> $HOME/.profile
+        echo "# Your previous .profile  (if any) is saved as .profile.dpsaved" >> $HOME/.profile
+        echo "# Setting the path for DarwinPorts." >> $HOME/.profile
+        echo "export PATH=$BINPATH:$SBINPATH:\$PATH" >> $HOME/.profile
+        chown $USER $HOME/.profile
+        echo "Finished modifying $HOME/.profile"
+        ;;
+      *)
+        echo "Unknown shell! Please set your own PATH manually."
+        ;;
+    esac
+fi
+
+export PATH=$BINPATH:$PATH
+
+# run selfupdate
+
+echo""
+echo "Selfupdating The DarwinPorts system ..."
+echo ""
+
+port -d selfupdate
+if [ $? != 0 ]; then
+    echo "An attempt to synchronize your recent DarwinPorts installation with OpenDarwin servers failed, please run 'port -d selfupdate' manually to find out the cause of the error."
+    exit
+fi
+
+# done !!
+echo ""
+echo "You have succesfully installed the DarwinPorts system."
+echo ""
+echo "Launch a terminal and try it out !!"
+echo "Read the port manualpage for help."
+echo ""


Property changes on: trunk/dports/sysutils/macports/files/postflight
___________________________________________________________________
Name: svn:executable
   + *

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


More information about the macports-changes mailing list