Index: trunk/dports/sysutils/darwinports/Portfile
===================================================================
--- trunk/dports/sysutils/darwinports/Portfile	(revision 15106)
+++ trunk/dports/sysutils/darwinports/Portfile	(revision 15110)
@@ -1,3 +1,3 @@
-# $Id: Portfile,v 1.11 2005/10/14 16:48:23 jmpp Exp $
+# $Id: Portfile,v 1.12 2005/11/22 02:08:20 jmpp Exp $
 
 PortSystem 		1.0
@@ -5,7 +5,8 @@
 name			DarwinPorts
 version			1.1
+revision		1
 categories		sysutils
 platforms		darwin freebsd
-maintainers		michaelm@opendarwin.org matt@opendarwin.org jmpp@opendarwin.org
+maintainers		portmgr@opendarwin.org
 
 description		The DarwinPorts Infrastructure
@@ -21,3 +22,110 @@
 patchfiles		patch-Makefiles_all
 
+#depends_run		port:PortAuthority
+
 configure.args		--mandir=${prefix}/share/man
+
+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
+
+
+#package.resources ${filespath}/ReadMe.rtf ${filespath}/License.html ${filespath}/postflight
+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}
+}
Index: trunk/dports/sysutils/darwinports/files/License.html
===================================================================
--- trunk/dports/sysutils/darwinports/files/License.html	(revision 15110)
+++ trunk/dports/sysutils/darwinports/files/License.html	(revision 15110)
@@ -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>
Index: trunk/dports/sysutils/darwinports/files/postflight
===================================================================
--- trunk/dports/sysutils/darwinports/files/postflight	(revision 15110)
+++ trunk/dports/sysutils/darwinports/files/postflight	(revision 15110)
@@ -0,0 +1,93 @@
+#!/bin/bash
+#
+# Copyright (c) 2005 Ole Guldberg Jensen <olegb@opendarwin.org>
+# Copyright (c) 2005 Dr. Ernie Prabhakar <drernir@opendarwin.org>
+# Copyright (c) 2005 Matt Anton <matt@opendarwin.org>
+# Copyright (c) 2005 Juan Manuel Palacios <jmpp@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 ""
