[51564] users/dweber
dweber at macports.org
dweber at macports.org
Wed May 27 15:54:17 PDT 2009
Revision: 51564
http://trac.macports.org/changeset/51564
Author: dweber at macports.org
Date: 2009-05-27 15:54:16 -0700 (Wed, 27 May 2009)
Log Message:
-----------
Added Paths:
-----------
users/dweber/tmp/
users/dweber/tmp/aqua/
users/dweber/tmp/aqua/qt4-mac/
users/dweber/tmp/aqua/qt4-mac/Portfile
users/dweber/tmp/aqua/qt4-mac/files/
users/dweber/tmp/aqua/qt4-mac/files/patch-mac.conf.diff
users/dweber/tmp/databases/
users/dweber/tmp/databases/pgAdmin3/
users/dweber/tmp/databases/pgAdmin3/Portfile
users/dweber/tmp/databases/pgAdmin3/files/
users/dweber/tmp/databases/pgAdmin3/files/scripts/
users/dweber/tmp/databases/pgAdmin3/files/scripts/doc-pgadmin.applescript
users/dweber/tmp/databases/pgAdmin3/files/scripts/images/
users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-help.icns
users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-psql.icns
users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-reload.icns
users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-restart.icns
users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-start.icns
users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-stop.icns
users/dweber/tmp/databases/pgAdmin3/files/scripts/pgadmin.applescript
users/dweber/tmp/databases/pgAdmin3/files/scripts/reload.applescript
users/dweber/tmp/databases/pgAdmin3/files/scripts/restart.applescript
users/dweber/tmp/databases/pgAdmin3/files/scripts/runpsql.sh
users/dweber/tmp/databases/pgAdmin3/files/scripts/start.applescript
users/dweber/tmp/databases/pgAdmin3/files/scripts/stop.applescript
users/dweber/tmp/databases/pgbash/
users/dweber/tmp/databases/pgbash/Portfile
users/dweber/tmp/databases/pgbash/databases_pgbash.pdf
users/dweber/tmp/databases/postgresql83/
users/dweber/tmp/databases/postgresql83/Portfile
users/dweber/tmp/databases/postgresql83/Portfile-postgresql83.diff
users/dweber/tmp/databases/postgresql83-doc/
users/dweber/tmp/databases/postgresql83-doc/Portfile
users/dweber/tmp/databases/postgresql83-server/
users/dweber/tmp/databases/postgresql83-server/Portfile
users/dweber/tmp/databases/postgresql83-server/Portfile-postgresql83-server.diff
users/dweber/tmp/databases/postgresql83-server/files/
users/dweber/tmp/databases/postgresql83-server/files/scripts/
users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-pljava-readme.applescript
users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-pljava.applescript
users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-postgresql-releasenotes.applescript
users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-postgresql.applescript
users/dweber/tmp/databases/postgresql83-server/files/scripts/images/
users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-help.icns
users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-psql.icns
users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-reload.icns
users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-restart.icns
users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-start.icns
users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-stop.icns
users/dweber/tmp/databases/postgresql83-server/files/scripts/psql.applescript
users/dweber/tmp/databases/postgresql83-server/files/scripts/reload.applescript
users/dweber/tmp/databases/postgresql83-server/files/scripts/restart.applescript
users/dweber/tmp/databases/postgresql83-server/files/scripts/runpsql.sh
users/dweber/tmp/databases/postgresql83-server/files/scripts/start.applescript
users/dweber/tmp/databases/postgresql83-server/files/scripts/stop.applescript
users/dweber/tmp/databases/ruby-pg/
users/dweber/tmp/databases/ruby-pg/Portfile
users/dweber/tmp/devel/
users/dweber/tmp/devel/cableswig/
users/dweber/tmp/devel/cableswig/Portfile
users/dweber/tmp/devel/gdb/
users/dweber/tmp/devel/gdb/Portfile
users/dweber/tmp/editors/
users/dweber/tmp/editors/hexfiend/
users/dweber/tmp/editors/hexfiend/Portfile
users/dweber/tmp/editors/vim-r/
users/dweber/tmp/editors/vim-r/Portfile
users/dweber/tmp/guide/
users/dweber/tmp/guide/docbook.css
users/dweber/tmp/guide/print.css
users/dweber/tmp/guide/reference.startupitems.html
users/dweber/tmp/guide/reference.startupitems_files/
users/dweber/tmp/guide/reference.startupitems_files/docbook.css
users/dweber/tmp/test/
users/dweber/tmp/test/adduser/
users/dweber/tmp/test/adduser/Portfile
Added: users/dweber/tmp/aqua/qt4-mac/Portfile
===================================================================
--- users/dweber/tmp/aqua/qt4-mac/Portfile (rev 0)
+++ users/dweber/tmp/aqua/qt4-mac/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,198 @@
+# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name qt4-mac
+version 4.4.3
+categories aqua
+platforms macosx
+maintainers erickt clubjuggler at gmail.com openmaintainer
+
+homepage http://www.trolltech.com/
+description Qt Tool Kit (Native Aqua Version)
+long_description This is Qt, TrollTech's C++ toolkit for writing cross-platform GUI applications. \
+ This version uses the native Aqua UI. For a X11 version, see qt4-x11.
+master_sites ftp://ftp.trolltech.com/qt/source/ \
+ http://ftp.iasi.roedu.net/mirrors/ftp.trolltech.com/qt/source/ \
+ http://ftp.ntua.gr/pub/X11/Qt/qt/source/ \
+ http://wftp.tu-chemnitz.de/pub/Qt/qt/source/
+distname qt-mac-opensource-src-${version}
+checksums md5 766c02e23d2de1b19c9a25a68297b04e \
+ sha1 00cdf6df27a590565f557a7c02ba2edc634354d1 \
+ rmd160 7c39303f7aef6a369a16e787681b78d07c59fc76
+
+depends_lib port:libmng port:libpng port:jpeg port:tiff
+
+patchfiles patch-mac.conf.diff
+
+# have to build with Apple gcc because of -fconstant-cfstrings
+configure.compiler gcc-4.0
+configure.cmd "CFLAGS=-isystem${prefix}/include CXXFLAGS=-isystem${prefix}/include ./configure"
+configure.pre_args
+
+# directory for .app and executable files
+# Once installed, they should not be moved so they can find each other
+# (e.g. assistant.app) and the examples directory
+set bindir ${prefix}/libexec/${name}/bin
+set frameworkdir ${prefix}/Library/Frameworks
+
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+ set applications_dir /Applications/MacPorts
+}
+
+# See
+# http://doc.trolltech.com/qtopia4.3/buildsystem/over-configure-options-qt-1.html
+# for options
+configure.args \
+ -v \
+ -confirm-license \
+ -prefix '${prefix}' \
+ -bindir '${bindir}' \
+ -docdir '${prefix}/share/doc/${portname}' \
+ -datadir '${prefix}/share/${portname}' \
+ -headerdir '${prefix}/include/${portname}' \
+ -plugindir '${prefix}/lib/${portname}-plugins' \
+ -translationdir '${prefix}/share/${portname}/translations' \
+ -optimized-qmake -debug-and-release -shared -stl \
+ -no-openssl -largefile \
+ -system-libpng -system-libjpeg -system-libmng -system-libtiff \
+ -system-zlib -qt-gif \
+ -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql \
+ -no-sql-sqlite -no-nis -no-cups \
+ -framework -libdir '${frameworkdir}' \
+ -make libs -make tools \
+ -I${worksrcpath}/include \
+ -L${worksrcpath}/lib -L${prefix}/lib
+
+ # Take care of this with the CXXFLAGS=-isystem${prefix}/include
+ # this puts the include at the end so that qt's include files are found first.
+ # -I${prefix}/include
+ # not made by default, anyway: -nomake demos -nomake examples
+
+build.target first
+use_parallel_build yes
+
+destroot.destdir INSTALL_ROOT="${destroot}"
+
+post-destroot {
+ xinstall -d -m 0755 ${destroot}${bindir}
+ xinstall -d -m 0755 ${destroot}${applications_dir}/Qt
+ xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${portname}
+
+ # create link in ${prefix}/bin to executable files in ${bindir}
+ foreach bin [glob -type f -directory ${destroot}${bindir} *] {
+ system "ln -s ${bindir}/[file tail ${bin}] ${destroot}${prefix}/bin"
+ }
+
+ # create link in ${applications_dir}/Qt to .app directories in ${bindir}
+ # create link in ${prefix}/bin to all *.app/Contents/MacOS/*
+ foreach app [glob -type d -directory ${destroot}${bindir} *.app] {
+ system "ln -s ${bindir}/[file tail ${app}] ${destroot}${applications_dir}/Qt"
+ foreach bin [glob -type f -directory ${app} Contents/MacOS/*] {
+ system "ln -s ${bindir}/[file tail ${app}]/Contents/MacOS/[file tail ${bin}] ${destroot}${prefix}/bin"
+ }
+ }
+
+ # fix id of plugins shared libraries
+ foreach dirFull [glob -directory ${destroot}${prefix}/lib/${portname}-plugins -type d -nocomplain *] {
+ set dir [file tail ${dirFull}]
+ foreach libFull [glob -directory ${destroot}${prefix}/lib/${portname}-plugins/${dir} -nocomplain *.dylib] {
+ set lib [file tail ${libFull}]
+ system "install_name_tool -id ${prefix}/lib/${portname}-plugins/${dir}/${lib} ${libFull}"
+ }
+ }
+
+ # Put pkgconfig directory in correct place (Fix Ticket #15353)
+ if { ![variant_isset noframework]} {
+ system "mv ${destroot}${frameworkdir}/pkgconfig ${destroot}/${prefix}/lib/"
+ }
+
+ # dweber: I find it useful to have these symlinks,
+ # but this is not stricly macports style because it
+ # creates files outside the ${destroot}${prefix}
+ # if {[variant_isset noframework]} {
+ #xinstall -d -m 0755 /Developer/Applications/Qt
+ #system "for d in ${prefix}/libexec/qt4-mac/bin/*; do sudo ln -s $d /Developer/Applications/Qt/`basename $d`; done"
+ #}
+
+ # install documentation
+ foreach doc {INSTALL LICENSE.GPL2 LICENSE.GPL3 OPENSOURCE-NOTICE.TXT README \
+ GPL_EXCEPTION_ADDENDUM.TXT GPL_EXCEPTION.TXT} {
+ xinstall -c -m 644 ${worksrcpath}/$doc ${destroot}${prefix}/share/doc/${portname}
+ }
+}
+
+default_variants +docs +dbus
+
+variant dbus description "Include DBus support" {
+ depends_lib-append port:dbus
+ configure.args-append -dbus-linked
+}
+
+variant noframework description "Do not build frameworks" {
+ configure.args-delete -framework -libdir '${frameworkdir}'
+ configure.args-append -no-framework
+}
+
+variant nis description "Include Network Information Service (NIS) support" {
+ configure.args-delete -no-nis
+ configure.args-append -nis
+}
+
+variant cups description "Include Common Unix Printing System (CUPS) support" {
+ configure.args-delete -no-cups
+ configure.args-append -cups
+}
+
+variant mysql4 conflicts mysql5 description "Include support for SQL via mysql4 driver" {
+ depends_lib-append lib:libmysqlclient.12:mysql4
+ configure.args-delete -no-sql-mysql
+ configure.args-append -qt-sql-mysql -plugin-sql-mysql \
+ -I${prefix}/include/mysql -L${prefix}/lib/mysql
+}
+
+variant mysql5 conflicts mysql4 description "Include support for SQL via mysql5 driver" {
+ depends_lib-append lib:libmysqlclient.15:mysql5
+ configure.args-delete -no-sql-mysql
+ configure.args-append -qt-sql-mysql -plugin-sql-mysql \
+ -I${prefix}/include/mysql5/mysql -L${prefix}/lib/mysql5/mysql
+}
+
+variant psql description "Include support for SQL via postgresql driver" {
+ depends_lib-append port:postgresql83
+ configure.args-delete -no-sql-psql
+ configure.args-append -qt-sql-psql -plugin-sql-psql \
+ -I${prefix}/include/postgresql83 -L${prefix}/lib/postgresql83
+}
+
+variant sqlite description "Include support for SQL via sqlite driver" {
+ configure.args-delete -no-sql-sqlite
+ configure.args-append -qt-sql-sqlite -plugin-sql-sqlite
+}
+
+variant ssl description "Include OpenSSL support" {
+ depends_lib-append port:openssl
+ configure.args-delete -no-openssl
+ configure.args-append -openssl
+}
+
+variant examples description "Build Qt examples" {
+ # configure.args-delete "-nomake examples"
+ configure.args-append -make examples -examplesdir ${prefix}/share/${portname}/examples
+}
+
+variant demos description "Build Qt demos" {
+ # configure.args-delete "-nomake demos"
+ configure.args-append -make demos -demosdir ${prefix}/share/${portname}/demos
+}
+
+variant docs description "Include Qt Documentation" {
+ configure.args-append -make docs
+}
+
+
+livecheck.check regex
+livecheck.url http://trolltech.com/developer/downloads/qt/mac
+livecheck.regex "The current version of Qt/Mac Open Source Edition is (4(?:\\.\\d+)*)"
Property changes on: users/dweber/tmp/aqua/qt4-mac/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/aqua/qt4-mac/files/patch-mac.conf.diff
===================================================================
--- users/dweber/tmp/aqua/qt4-mac/files/patch-mac.conf.diff (rev 0)
+++ users/dweber/tmp/aqua/qt4-mac/files/patch-mac.conf.diff 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,25 @@
+Index: mkspecs/common/mac.conf
+===================================================================
+--- mkspecs/common/mac.conf (revision 814547)
++++ mkspecs/common/mac.conf (working copy)
+@@ -5,6 +5,7 @@
+ QMAKE_RESOURCE = /Developer/Tools/Rez
+
+ QMAKE_EXTENSION_SHLIB = dylib
++QMAKE_EXTENSION_PLUGIN = bundle
+
+ QMAKE_LIBDIR =
+ QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS]
+Index: mkspecs/common/mac-g++.conf
+===================================================================
+--- mkspecs/common/mac-g++.conf (revision 814547)
++++ mkspecs/common/mac-g++.conf (working copy)
+@@ -55,7 +55,7 @@
+ QMAKE_LFLAGS_DEBUG +=
+ QMAKE_LFLAGS_APP +=
+ QMAKE_LFLAGS_SHLIB += -single_module -dynamiclib
+-QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB
++QMAKE_LFLAGS_PLUGIN += -bundle -flat_namespace
+ QMAKE_LFLAGS_THREAD +=
+ QMAKE_LFLAGS_INCREMENTAL+= -undefined suppress -flat_namespace
+ QMAKE_LFLAGS_SONAME += -install_name$${LITERAL_WHITESPACE}
Added: users/dweber/tmp/databases/pgAdmin3/Portfile
===================================================================
--- users/dweber/tmp/databases/pgAdmin3/Portfile (rev 0)
+++ users/dweber/tmp/databases/pgAdmin3/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,69 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+
+# $Id$
+
+PortSystem 1.0
+
+name pgAdmin3
+version 1.8.4
+
+categories databases
+maintainers jwa
+
+description An administration program to PostgreSQL
+long_description pgAdmin III is a powerful administration and development \
+ platform for the PostgreSQL database, free for any use. The \
+ application works on several platforms, e.g. GNU/Linux, FreeBSD, \
+ OS X and Windows 2000/XP. This port is for OS X.
+
+platforms macosx
+homepage http://www.pgadmin.org/
+
+master_sites http://developer.pgadmin.org/ftp/release/v${version}/src/ \
+ http://www.postgresql.org/ftp/pgadmin3/release/v${version}/src/
+
+distname pgadmin3-${version}
+
+checksums \
+ md5 12fc6027f651788615a7fa1c6ddbcdb3 \
+ sha1 c3103792c678183c5a9081daac56ebf467d674ff \
+ rmd160 466fa7fbb734f9bc63fb2375da0c87fe3d47b7f1
+
+depends_lib port:postgresql83 \
+ port:wxWidgets \
+ port:openssl \
+ port:libxml2 \
+ port:libxslt
+
+configure.args-append \
+ --with-pgsql=${prefix}/lib/postgresql83 \
+ --with-wx=${prefix} \
+ --with-wx-version=2.8 \
+ --with-libxml2=${prefix} \
+ --with-libxslt=${prefix} \
+ --enable-appbundle
+
+build.target all install
+
+#destroot.violate_mtree yes
+destroot {
+ xinstall -d -m 0755 ${destroot}/Applications/MacPorts
+ file copy ${worksrcpath}/${name}.app ${destroot}/Applications/MacPorts/${name}.app
+}
+
+variant with_postgresql82 conflicts with_postgresql83 \
+ description {support for PostgreSQL 8.2.x} {
+ depends_lib-delete port:postgresql83
+ depends_lib-delete --with-pgsql=${prefix}/lib/postgresql83
+ depends_lib-append port:postgresql82
+ configure.args-append --with-pgsql=${prefix}/lib/postgresql82
+}
+
+variant debug description {provide a debug build in case of difficulties} {
+ configure.args-append --enable-debug
+}
+
+livecheck.check regex
+livecheck.url ${homepage}
+livecheck.regex pgAdmin III v(1.\[0-9\]+.\[0-9\]+)
+
Property changes on: users/dweber/tmp/databases/pgAdmin3/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/doc-pgadmin.applescript
===================================================================
--- users/dweber/tmp/databases/pgAdmin3/files/scripts/doc-pgadmin.applescript (rev 0)
+++ users/dweber/tmp/databases/pgAdmin3/files/scripts/doc-pgadmin.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1 @@
+open location "file:///Library/PostgreSQL/8.3/pgAdmin3.app/Contents/SharedSupport/docs/en_US/index.html"
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/doc-pgadmin.applescript
___________________________________________________________________
Added: svn:executable
+ *
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-help.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-help.icns
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-psql.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-psql.icns
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-reload.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-reload.icns
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-restart.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-restart.icns
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-start.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-start.icns
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-stop.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/images/pg-stop.icns
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/pgadmin.applescript
===================================================================
--- users/dweber/tmp/databases/pgAdmin3/files/scripts/pgadmin.applescript (rev 0)
+++ users/dweber/tmp/databases/pgAdmin3/files/scripts/pgadmin.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1 @@
+do shell script "open -a \"/Applications/MacPorts/pgAdmin3.app\""
\ No newline at end of file
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/pgadmin.applescript
___________________________________________________________________
Added: svn:executable
+ *
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/reload.applescript
===================================================================
--- users/dweber/tmp/databases/pgAdmin3/files/scripts/reload.applescript (rev 0)
+++ users/dweber/tmp/databases/pgAdmin3/files/scripts/reload.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,2 @@
+set retval to do shell script "su - postgres -c \"/opt/local/lib/postgresql83/bin/pg_ctl -D /opt/local/var/db/postgresql83/defaultdb reload\"" with administrator privileges
+display dialog retval buttons {"OK"} with icon 1 default button 1
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/reload.applescript
___________________________________________________________________
Added: svn:executable
+ *
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/restart.applescript
===================================================================
--- users/dweber/tmp/databases/pgAdmin3/files/scripts/restart.applescript (rev 0)
+++ users/dweber/tmp/databases/pgAdmin3/files/scripts/restart.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,2 @@
+set retval to do shell script "SystemStarter restart postgresql-8.3" with administrator privileges
+display dialog retval buttons {"OK"} with icon 1 default button 1
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/restart.applescript
___________________________________________________________________
Added: svn:executable
+ *
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/runpsql.sh
===================================================================
--- users/dweber/tmp/databases/pgAdmin3/files/scripts/runpsql.sh (rev 0)
+++ users/dweber/tmp/databases/pgAdmin3/files/scripts/runpsql.sh 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+# PostgreSQL psql runner script for OS X
+# Dave Page, EnterpriseDB
+
+# Check the command line
+if [ $# -ne 0 -a $# -ne 1 ];
+then
+ echo "Usage: $0 [wait]"
+ exit 127
+fi
+
+echo -n "Server [localhost]: "
+read SERVER
+
+if [ "$SERVER" = "" ];
+then
+ SERVER="localhost"
+fi
+
+echo -n "Database [postgres]: "
+read DATABASE
+
+if [ "$DATABASE" = "" ];
+then
+ DATABASE="postgres"
+fi
+
+echo -n "Port [5432]: "
+read PORT
+
+if [ "$PORT" = "" ];
+then
+ PORT="5432"
+fi
+
+echo -n "Username [postgres]: "
+read USERNAME
+
+if [ "$USERNAME" = "" ];
+then
+ USERNAME="postgres"
+fi
+
+psql -h $SERVER -p $PORT -U $USERNAME $DATABASE
+RET=$?
+
+if [ "$RET" != "0" ];
+then
+ echo
+ echo -n "Press <return> to continue..."
+ read dummy
+fi
+
+exit $RET
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/runpsql.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:eol-style
+ native
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/start.applescript
===================================================================
--- users/dweber/tmp/databases/pgAdmin3/files/scripts/start.applescript (rev 0)
+++ users/dweber/tmp/databases/pgAdmin3/files/scripts/start.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,2 @@
+set retval to do shell script "SystemStarter start postgresql-8.3" with administrator privileges
+display dialog retval buttons {"OK"} with icon 1 default button 1
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/start.applescript
___________________________________________________________________
Added: svn:executable
+ *
Added: users/dweber/tmp/databases/pgAdmin3/files/scripts/stop.applescript
===================================================================
--- users/dweber/tmp/databases/pgAdmin3/files/scripts/stop.applescript (rev 0)
+++ users/dweber/tmp/databases/pgAdmin3/files/scripts/stop.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,2 @@
+set retval to do shell script "SystemStarter stop postgresql-8.3" with administrator privileges
+display dialog retval buttons {"OK"} with icon 1 default button 1
Property changes on: users/dweber/tmp/databases/pgAdmin3/files/scripts/stop.applescript
___________________________________________________________________
Added: svn:executable
+ *
Added: users/dweber/tmp/databases/pgbash/Portfile
===================================================================
--- users/dweber/tmp/databases/pgbash/Portfile (rev 0)
+++ users/dweber/tmp/databases/pgbash/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,95 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+
+# $Id$
+
+PortSystem 1.0
+
+name pgbash
+version 7.3
+
+categories databases devel
+
+maintainers gmail.com:darren.weber.lists
+
+description Pgbash is a BASH shell with PostgreSQL functionality.
+
+long_description \
+Pgbash is a BASH shell that includes the functionality for accessing PostgreSQL. It is possible to execute SQL in a shell script for batch processing, and execute SQL directly in an interactive bash environment. Also, pgbash has convenient functionality for creating simple web applications.
+
+homepage http://www.psn.co.jp/PostgreSQL/pgbash/index-e.html
+
+master_sites \
+ http://www.psn.co.jp/PostgreSQL/pgbash/ \
+ ftp://www.psn.co.jp/pub/PostgreSQL/pgbash/ \
+ ftp://ftp.gnu.org/gnu/bash/
+
+distfiles \
+ pgbash-7.3.tar.gz \
+ bash-2.05a.tar.gz
+
+checksums \
+ pgbash-7.3.tar.gz \
+ md5 e3e33423208a5a538708dc92001abf67 \
+ sha1 730a4879bc74e03de78445b94aad94efda75c033 \
+ rmd160 0658dcbb5db8d492fb041c58ac29c623f18a2d06 \
+ bash-2.05a.tar.gz \
+ md5 eeabc3f624861c4a8a687f7701db3d06 \
+ sha1 1a74a4a4e4f771484cbf22786689fe33ab6d36d3 \
+ rmd160 136302f57bf56668f042938de8de0174d51ddbf9
+
+
+# build dependencies (noted on the download web site)
+#> gcc -v
+#gcc version 2.7.2.1
+#> bison --version
+#GNU Bison version 1.25
+#> flex --version
+#flex version 2.5.4
+#
+#The version of each tool is O.K., if it is new or same as the
+#version shown above. (I think that it is O.K. if it is compiled normally,
+#even if the tool is older than the above-mentioned.)
+
+
+platforms darwin
+depends_build port:bison \
+ port:flex \
+ port:gmake
+depends_lib port:postgresql83
+
+# maybe it should depend on postgresql7; this source package was last
+# updated in 2003!
+
+#
+# running my test build in /usr/src/pgbash-7.3/src/bash-2.05a
+#
+
+
+post-extract {
+ system "mv ${worksrcpath}/bash-2.05a ${worksrcpath}/pgbash-7.3/src/"
+ system "cd ${worksrcpath}/pgbash-7.3/src/bash-2.05a-patch/ && make"
+ worksrcpath="${worksrcpath}/pgbash-7.3/src/bash-2.05a/"
+}
+
+configure.env-append \
+ PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config
+
+configure.args-append \
+ --pginc-prefix=${prefix}/include/postgresql83 \
+ --pglib-prefix=${prefix}/lib/postgresql83
+
+# How to change into postgres super user and modify destroot phase?
+
+#Please execute 'make install' as a postgres super user. 'make install'
+#copies Pgbash to /usr/local/bin directory and copies Pgbashrc to /etc
+#directory.
+#
+#pgbash-7.3/src/bash-2.05a/pgbash ==> /usr/local/bin/pgbash
+#pgbash-7.3/rc/pgbashrc ==> /etc/pgbashrc
+#
+#If you can not work as a postgres super user, please copy Pgbash to a
+#suitable directory directory and copy Pgbash to the home directory.
+#
+#cp pgbash-7.3/src/bash-2.05a/pgbash ~/pgbash
+#cp pgbash-7.3/rc/pgbashrc ~/.pgbashrc
+
Property changes on: users/dweber/tmp/databases/pgbash/Portfile
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/databases/pgbash/databases_pgbash.pdf
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/pgbash/databases_pgbash.pdf
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/postgresql83/Portfile
===================================================================
--- users/dweber/tmp/databases/postgresql83/Portfile (rev 0)
+++ users/dweber/tmp/databases/postgresql83/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,195 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+
+# $Id$
+
+PortSystem 1.0
+
+name postgresql83
+version 8.3.4
+
+distname postgresql-${version}
+worksrcdir postgresql-${version}
+
+categories databases
+platforms darwin
+maintainers mww jwa
+description The world's most advanced open-source database.
+long_description \
+ PostgreSQL is Object-Relational Database Management System. \
+ It supports almost all SQL constructs, including transactions, \
+ subselects, and user-defined types and functions. Write-ahead \
+ logging means increased performance while retaining data \
+ integrity.
+
+homepage http://www.postgresql.org/
+master_sites http://www.postgresql.org/ftp/source/v${version}/ \
+ ftp://ftp7.us.postgresql.org/pub/postgresql/source/v${version}/ \
+ postgresql:source/v${version}/
+
+use_bzip2 yes
+
+checksums md5 c339b9d3c0c4add64c7a76640fc93744 \
+ sha1 3e6fd905fd3fe9698b50e5376ed15b7d6e3bb602 \
+ rmd160 13cb20672b0dc6fe52346d7c906a0842e0c872ac
+
+depends_lib port:readline \
+ port:openssl \
+ port:ossp-uuid \
+ port:zlib \
+ port:libxml2 \
+ port:libxslt
+
+depends_build port:bison
+
+set libdir ${prefix}/lib/${name}
+
+configure.args-append \
+ --sysconfdir=${prefix}/etc/${name} \
+ --bindir=${libdir}/bin \
+ --libdir=${libdir} \
+ --includedir=${prefix}/include/${name} \
+ --datadir=${prefix}/share/${name} \
+ --mandir=${prefix}/share/man \
+ --enable-thread-safety \
+ --enable-integer-datetimes \
+ --without-docdir \
+ --with-includes=${prefix}/include \
+ --with-libraries=${prefix}/lib \
+ --with-openssl \
+ --with-ossp-uuid \
+ --with-readline \
+ --with-zlib \
+ --with-libxml \
+ --with-libxslt
+
+configure.cflags-append \
+ -I${prefix}/include \
+ -I${prefix}/include/ossp
+
+build.type gnu
+build.target
+
+test.run yes
+test.target check
+
+livecheck.check regex
+livecheck.url ${homepage}/versions.rss
+livecheck.regex (8.3.\[0-9\]+)
+
+set contribs "adminpack dblink fuzzystrmatch lo uuid-ossp pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
+
+post-build {
+ foreach contrib ${contribs} {
+ system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
+ }
+}
+
+post-destroot {
+ foreach contrib ${contribs} {
+ system "echo contrib: \"${contrib}\""
+ system "cd ${worksrcpath}/contrib/${contrib}/ && \
+ ${destroot.cmd} install ${destroot.destdir} && touch DONE"
+ }
+ system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql83"
+ file delete -force ${destroot}${prefix}/share/doc/${name} \
+ ${destroot}${prefix}/share/man
+
+ # Add /opt/local/lib/postgresql83/bin to the system path
+ mkdir ${destroot}/etc/paths.d
+ echo "${prefix}/lib/postgresql83/bin" > ${destroot}/etc/paths.d/postgresql83
+}
+
+post-install {
+ ui_msg "\
+ \nTo use the postgresql server, install the ${name}-server port\
+ \n"
+
+ if {[variant_isset doc]} {
+ ui_msg "\nDocumentation can be found in\n\
+ ${prefix}/share/doc/${name}/html/\n\
+ Update this path in pgAdmin3 Preferences:General\n"
+ }
+}
+
+
+default_variants +doc +bonjour +krb5 +tclSys +perl +python
+
+
+# --enable section
+
+variant dependency description {automatic dependency tracking} {
+ configure.args-append --enable-depend
+}
+
+variant profiling description {add profiling support} {
+ configure.args-append --enable-profiling
+}
+
+variant debug description {add debug symbols and enable assertion checking} {
+ configure.args-append --enable-debug --enable-cassert
+}
+
+variant nls description {add native language support} {
+ configure.args-append --enable-nls
+}
+
+variant NOlargefile description {DISABLE large file support} {
+ configure.args-append --disable-largefile
+}
+
+variant NOshared description {DISABLE shared libs} {
+ configure.args-append --disable-shared
+}
+
+variant NOrpath description {DISABLE rpath search for executables} {
+ configure.args-append --disable-rpath
+}
+
+variant NOspinlocks description {DISABLE spinlocks} {
+ configure.args-append --disable-spinlocks
+}
+
+
+# --with section
+
+variant bonjour description {add support for Bonjour} {
+ configure.args-append --with-bonjour
+}
+
+variant doc description {add documentation} {
+ configure.args-delete --without-docdir
+ configure.args-append --with-docdir=${prefix}/share/doc/${name}
+}
+
+variant krb5 description {add support for Kerberos 5 authentication} {
+ configure.args-append --with-krb5
+}
+
+variant ldap description {add support for LDAP} {
+ configure.args-append --with-ldap
+}
+
+variant pam description {add support for PAM authentication} {
+ configure.args-append --with-pam
+}
+
+variant perl description {add Perl modules (PL/Perl)} {
+ depends_lib-append bin:perl:perl5.8
+ configure.args-append --with-perl
+}
+
+variant python description {add Python modules (PL/Python)} {
+ depends_lib-append port:python25
+ configure.args-append --with-python
+ configure.env-append PYTHON=${prefix}/bin/python2.5
+}
+
+variant tclPort conflicts tclSys description {add Tcl modules (PL/Tcl; MacPorts Tcl)} {
+ configure.args-append --with-tcl \
+ --with-tclconfig=${prefix}/lib/
+}
+
+variant tclSys conflicts tclPort description {add Tcl modules (PL/Tcl; System Tcl framework)} {
+ configure.args-append --with-tcl \
+ --with-tclconfig=/System/Library/Frameworks/Tcl.framework/
+}
Property changes on: users/dweber/tmp/databases/postgresql83/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/databases/postgresql83/Portfile-postgresql83.diff
===================================================================
--- users/dweber/tmp/databases/postgresql83/Portfile-postgresql83.diff (rev 0)
+++ users/dweber/tmp/databases/postgresql83/Portfile-postgresql83.diff 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,287 @@
+--- Portfile.orig 2008-10-04 13:57:50.000000000 -0700
++++ Portfile 2008-10-04 14:00:44.000000000 -0700
+@@ -1,101 +1,207 @@
+-# $Id: Portfile-postgresql83.diff,v 1.1.1.1 2009/05/15 14:31:01 dweber Exp $
++# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
++
++# $Id: Portfile-postgresql83.diff,v 1.1.1.1 2009/05/15 14:31:01 dweber Exp $
+
+ PortSystem 1.0
+
+-name postgresql83
+-version 8.3.4
+-categories databases
+-platforms darwin
+-maintainers mww jwa
+-description The most advanced open-source database available anywhere.
+-long_description PostgreSQL is Object-Relational Database Management System. \
+- It supports almost all SQL constructs, including transactions, \
+- subselects, and user-defined types and functions. Write-ahead \
+- logging means increased performance while retaining data \
+- integrity.
+-
+-homepage http://www.postgresql.org/
+-master_sites http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v${version}/ \
+- postgresql:source/v${version}/
+-distname postgresql-${version}
+-
+-checksums md5 c339b9d3c0c4add64c7a76640fc93744 \
+- sha1 3e6fd905fd3fe9698b50e5376ed15b7d6e3bb602 \
+- rmd160 13cb20672b0dc6fe52346d7c906a0842e0c872ac
+-
+-use_bzip2 yes
+-
+-depends_lib port:readline port:openssl port:zlib port:libxml2 port:libxslt port:ossp-uuid
+-depends_build port:bison
+-
+-worksrcdir postgresql-${version}
+-
+-set libdir ${prefix}/lib/${name}
+-configure.args --sysconfdir=${prefix}/etc/${name} \
+- --bindir=${libdir}/bin \
+- --libdir=${libdir} \
+- --includedir=${prefix}/include/${name} \
+- --datadir=${prefix}/share/${name} \
+- --mandir=${prefix}/share/man \
+- --without-docdir \
+- --with-includes=${prefix}/include \
+- --with-libraries=${prefix}/lib \
+- --with-openssl \
+- --with-bonjour \
+- --with-readline \
+- --with-zlib \
+- --with-libxml \
+- --with-libxslt \
+- --enable-thread-safety \
+- --enable-integer-datetimes \
+- --with-ossp-uuid
+-configure.cppflags-append -I${prefix}/include/ossp
++name postgresql83
++version 8.3.4
++
++categories databases
++platforms darwin
++maintainers mww jwa
++
++distname postgresql-${version}
++worksrcdir postgresql-${version}
++
++set pathConf ${prefix}/etc/${name}
++set pathLib ${prefix}/lib/${name}
++set pathInc ${prefix}/include/${name}
++set pathBin ${pathLib}/bin
++set pathMan ${prefix}/share/man
++set pathDoc ${prefix}/share/doc/${name}
++set pathData ${prefix}/share/${name}
++
++description The world's most advanced open-source database.
++long_description \
++ PostgreSQL is Object-Relational Database Management System. \
++ It supports almost all SQL constructs, including transactions, \
++ subselects, and user-defined types and functions. Write-ahead \
++ logging means increased performance while retaining data \
++ integrity. \n\n\
++ default_variants +doc +bonjour +krb5 +tclSys +perl +python \n\n\
++ Install paths:\n\
++ config:\t ${pathConf}\n\
++ include:\t ${pathInc}\n\
++ lib:\t\t ${pathLib}\n\
++ bin:\t\t ${pathBin}\n\
++ man:\t\t ${pathMan}\n\
++ doc:\t\t ${pathDoc}\n\
++ data:\t\t ${pathData}\n
++
++homepage http://www.postgresql.org/
++master_sites http://www.postgresql.org/ftp/source/v${version}/ \
++ ftp://ftp7.us.postgresql.org/pub/postgresql/source/v${version}/ \
++ postgresql:source/v${version}/
++
++use_bzip2 yes
++
++checksums md5 c339b9d3c0c4add64c7a76640fc93744 \
++ sha1 3e6fd905fd3fe9698b50e5376ed15b7d6e3bb602 \
++ rmd160 13cb20672b0dc6fe52346d7c906a0842e0c872ac
++
++depends_lib port:readline \
++ port:openssl \
++ port:ossp-uuid \
++ port:zlib \
++ port:libxml2 \
++ port:libxslt
++
++depends_build port:bison
++
++configure.args-append \
++ --sysconfdir=${pathConf} \
++ --bindir=${pathBin} \
++ --libdir=${pathLib} \
++ --includedir=${pathInc} \
++ --datadir=${pathData} \
++ --mandir=${pathMan} \
++ --enable-thread-safety \
++ --enable-integer-datetimes \
++ --without-docdir \
++ --with-includes=${prefix}/include \
++ --with-libraries=${prefix}/lib \
++ --with-openssl \
++ --with-ossp-uuid \
++ --with-readline \
++ --with-zlib \
++ --with-libxml \
++ --with-libxslt
++
++configure.cflags-append \
++ -I${prefix}/include \
++ -I${prefix}/include/ossp
+
+-build.type gnu
++build.type gnu
+ build.target
+
+-test.run yes
+-test.target check
++test.run yes
++test.target check
+
+-livecheck.check regex
+-livecheck.url ${homepage}
+-livecheck.regex (8.3.\[0-9\]+)
++livecheck.check regex
++livecheck.url ${homepage}/versions.rss
++livecheck.regex (8.3.\[0-9\]+)
+
+-set contribs "adminpack dblink fuzzystrmatch lo uuid-ossp pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
++set contribs "adminpack dblink fuzzystrmatch lo uuid-ossp pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
+
+ post-build {
+- foreach contrib ${contribs} {
+- system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
+- }
++ foreach contrib ${contribs} {
++ system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
++ }
+ }
+
+ post-destroot {
+- foreach contrib ${contribs} {
+- system "echo contrib: \"${contrib}\""
+- system "cd ${worksrcpath}/contrib/${contrib}/ && \
+- ${destroot.cmd} install ${destroot.destdir} && touch DONE"
+- }
+- system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql83"
+- file delete -force ${destroot}${prefix}/share/doc/${name} \
+- ${destroot}${prefix}/share/man
++ foreach contrib ${contribs} {
++ system "echo contrib: \"${contrib}\""
++ system "cd ${worksrcpath}/contrib/${contrib}/ && \
++ ${destroot.cmd} install ${destroot.destdir} && touch DONE"
++ }
++ system "cd ${destroot}${prefix}/bin && ln -sf ${pathLib}/bin/psql psql83"
++ file delete -force ${destroot}${prefix}/share/doc/${name} \
++ ${destroot}${prefix}/share/man
++}
++
++post-install {
++ ui_msg "\nTo use the postgresql server, install the ${name}-server port\n"
++
++ if {[variant_isset doc]} {
++ ui_msg "Documentation is installed in\n${pathDoc}/html/\n\
++ Update this path in pgAdmin3 Preferences:General\n"
++ }
++}
++
++
++# -- Variants
++
++default_variants +doc +bonjour +krb5 +tclSys +perl +python
++
++
++# --enable section
++
++variant dependency description {automatic dependency tracking} {
++ configure.args-append --enable-depend
++}
++
++variant profiling description {add profiling support} {
++ configure.args-append --enable-profiling
++}
++
++variant debug description {add debug symbols and enable assertion checking} {
++ configure.args-append --enable-debug --enable-cassert
++}
++
++variant nls description {add native language support} {
++ configure.args-append --enable-nls
++}
++
++variant NOlargefile description {DISABLE large file support} {
++ configure.args-append --disable-largefile
++}
++
++variant NOshared description {DISABLE shared libs} {
++ configure.args-append --disable-shared
++}
++
++variant NOrpath description {DISABLE rpath search for executables} {
++ configure.args-append --disable-rpath
++}
++
++variant NOspinlocks description {DISABLE spinlocks} {
++ configure.args-append --disable-spinlocks
++}
++
++
++# --with section
++
++variant bonjour description {add support for Bonjour} {
++ configure.args-append --with-bonjour
+ }
+
+-variant python description {add support for python} {
+- depends_lib-append port:python25
+- configure.args-append --with-python
+- configure.env-append PYTHON=${prefix}/bin/python2.5
++variant doc description {add documentation} {
++ configure.args-delete --without-docdir
++ configure.args-append --with-docdir=${pathDoc}
+ }
+
+ variant krb5 description {add support for Kerberos 5 authentication} {
+- configure.args-append --with-krb5
++ configure.args-append --with-krb5
+ }
+
+-variant perl description {add Perl support} {
+- depends_lib-append bin:perl:perl5.8
+- configure.args-append --with-perl
++variant ldap description {add support for LDAP} {
++ configure.args-append --with-ldap
+ }
+
+-post-install {
+- ui_msg "\nTo use the postgresql server, install the postgresql83-server port"
++variant pam description {add support for PAM authentication} {
++ configure.args-append --with-pam
++}
++
++variant perl description {add Perl modules (PL/Perl)} {
++ depends_lib-append bin:perl:perl5.8
++ configure.args-append --with-perl
++}
++
++variant python description {add Python modules (PL/Python)} {
++ depends_lib-append port:python25
++ configure.args-append --with-python
++ configure.env-append PYTHON=${prefix}/bin/python2.5
++}
++
++variant tclPort conflicts tclSys description {add Tcl modules (PL/Tcl; MacPorts Tcl)} {
++ configure.args-append --with-tcl \
++ --with-tclconfig=${prefix}/lib/
++}
++
++variant tclSys conflicts tclPort description {add Tcl modules (PL/Tcl; System Tcl framework)} {
++ configure.args-append --with-tcl \
++ --with-tclconfig=/System/Library/Frameworks/Tcl.framework/
+ }
+
Added: users/dweber/tmp/databases/postgresql83-doc/Portfile
===================================================================
--- users/dweber/tmp/databases/postgresql83-doc/Portfile (rev 0)
+++ users/dweber/tmp/databases/postgresql83-doc/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,46 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+
+# $Id$
+
+PortSystem 1.0
+
+name postgresql83-doc
+version 8.3.4
+categories databases
+platforms darwin
+maintainers mww jwa
+description Documentation for the postgresql database
+long_description PostgreSQL is Object-Relational Database Management System. \
+ It supports almost all SQL constructs, including transactions, \
+ subselects, and user-defined types and functions. Write-ahead \
+ logging means increased performance while retaining data \
+ integrity. This is the documentation.
+
+homepage http://www.postgresql.org/
+master_sites postgresql:source/v${version}
+distname postgresql-${version}
+
+checksums md5 c339b9d3c0c4add64c7a76640fc93744 \
+ sha1 3e6fd905fd3fe9698b50e5376ed15b7d6e3bb602 \
+ rmd160 13cb20672b0dc6fe52346d7c906a0842e0c872ac
+use_bzip2 yes
+dist_subdir postgresql83
+
+set libdir ${prefix}/lib/postgresql83
+configure.args --mandir=${prefix}/share/man \
+ --with-docdir=${prefix}/share/doc/postgresql83 \
+ --without-openssl \
+ --without-rendezvous \
+ --without-readline \
+ --without-zlib
+
+build.dir ${worksrcpath}/doc
+build.type gnu
+build.target
+
+destroot.dir ${build.dir}
+
+livecheck.check regex
+livecheck.url ${homepage}/versions.rss
+livecheck.regex (8.3.\[0-9\]+)
+
Property changes on: users/dweber/tmp/databases/postgresql83-doc/Portfile
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/databases/postgresql83-server/Portfile
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/Portfile (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,129 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+
+# $Id$
+
+PortSystem 1.0
+
+set server postgresql83
+
+name ${server}-server
+version 8.3.4
+categories databases
+platforms darwin
+maintainers mww jwa
+description Run ${server} as a server
+
+long_description Run ${server} as a server (with SSL connections).
+
+homepage http://www.postgresql.org/
+master_sites postgresql
+
+livecheck.check regex
+livecheck.url ${homepage}/versions.rss
+livecheck.regex (8.3.\[0-9\]+)
+
+depends_run port:${server} \
+ port:openssl
+
+fetch {}
+checksum {}
+extract {}
+use_configure no
+build {}
+
+set libdir ${prefix}/lib/${server}
+set logdir ${prefix}/var/log/${server}
+# Is it possible to prompt for a user defined database path?
+set dbdir ${prefix}/var/db/${server}/defaultdb
+set dbpid ${dbdir}/postmaster.pid
+set dbuser postgres
+set dbgrp postgres
+
+startupitem.create yes
+startupitem.name ${name}
+startupitem.logfile ${logdir}/postgres.log
+startupitem.logevents yes
+startupitem.init "PGCTL=${libdir}/bin/pg_ctl"
+
+# Options passed through to postmaster via 'pg_ctl -o'
+# -i enable TCP/IP connections
+# -l enable SSL connections
+startupitem.start \
+ "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} start -w -l ${logdir}/postgres.log -o \\\"-i -l\\\"\""
+startupitem.stop \
+ "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} stop -s -m fast\""
+startupitem.restart \
+ "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} restart -w -s -m fast\""
+startupitem.pidfile clean ${dbpid}
+
+destroot {
+ # Check if the user and group already exist and replace them?
+ addgroup ${dbgrp}
+ set gid [existsgroup ${dbgrp}]
+ adduser ${dbuser} shell=/bin/sh gid=${gid} \
+ home=${prefix}/var/db/${server} \
+ realname=PostgreSQL\ Server
+
+ xinstall -m 755 -d ${destroot}${logdir}
+ system "touch ${destroot}${logdir}/postgres.log"
+ system "chown -R ${dbuser}:${dbgrp} ${destroot}${logdir}"
+}
+
+post-install {
+ ui_msg "
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% To create a database instance, after install do
+% %% sudo mkdir -p ${dbdir}
+% %% sudo chown ${dbuser}:${dbgrp} ${dbdir}
+% %% sudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\'
+% (You can replace ${dbdir} with any path of your choice, but
+% you must then modify the startup management scripts in
+% ${prefix}/etc/LaunchDaemons/org.macports.${name}/.
+% These scripts over-ride the PGDATA environment variable.)
+%
+% This server will accept SSL connections, which must be
+% enabled by a server certificate in your data directory. This
+% server will NOT start without an SSL certificate and it is not
+% possible to provide a generic certificate automatically. For more
+% information, see http://developer.postgresql.org/pgdocs/postgres/ssl-tcp.html
+% To create a self-signed certificate:
+% $ sudo -i
+% # cd ${dbdir}
+% # openssl req -new -text -out server.req
+% Fill out the information that openssl asks for. The program will
+% generate a key that is passphrase protected; enter any passphrase at
+% the prompt for a PEM passphrase (it will be removed from the key later).
+% When prompted for a \"Common Name\", make sure you enter the local
+% host name. The challenge password can be left blank. Now, to remove
+% the PEM passphrase (for automatic startup of the server), run:
+% # openssl rsa -in privkey.pem -out server.key
+% # rm privkey.pem
+% Enter the old passphrase to unlock the existing key. Now do:
+% # openssl req -x509 -in server.req -text -key server.key -out server.crt
+% # chmod og-rwx server.key
+% # chown ${dbuser}:${dbgrp} server.*
+% That's it. A self-signed certificate can be used for testing, but a
+% certificate signed by a certificate authority (CA; either a global CA
+% or a local one) should be used in production, so a client can verify
+% the server's identity.
+%
+% To load the startup deamon, run:
+% $ sudo launchctl load -w /Library/LaunchDaemons/org.macports.${name}.plist
+% To unload the startup deamon, run:
+% $ sudo launchctl unload -w /Library/LaunchDaemons/org.macports.${name}.plist
+%
+% Run 'port install pgAdmin3' to administer PostgreSQL
+% Run 'port install slony1' to manage replication for PostgreSQL
+%
+% To tweak your DBMS, consider increasing kern.sysv.shmmax
+% by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf
+%
+% Please read the documentation for the complete list of run-time
+% configuration settings and how to set them on the command line or in
+% the configuration file. The server config can be found in:
+%
+% The server log can be found in:
+% ${prefix}/var/log/${server}/postgres.log
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"
+}
+
Property changes on: users/dweber/tmp/databases/postgresql83-server/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/databases/postgresql83-server/Portfile-postgresql83-server.diff
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/Portfile-postgresql83-server.diff (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/Portfile-postgresql83-server.diff 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,145 @@
+--- Portfile.orig 2008-10-04 15:45:12.000000000 -0700
++++ Portfile 2008-10-04 15:46:23.000000000 -0700
+@@ -1,61 +1,92 @@
++# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
++
+ # $Id: Portfile-postgresql83-server.diff,v 1.1.1.1 2009/05/15 14:31:01 dweber Exp $
+
+ PortSystem 1.0
+
+-name postgresql83-server
+-version 8.3.4
+-categories databases
+-platforms darwin
+-maintainers mww jwa
+-description run postgresql83 as server
+-long_description ${description}
+-
+-homepage http://www.postgresql.org/
+-master_sites postgresql
+-
+-depends_run port:postgresql83
+-
+-fetch {}
+-checksum {}
+-extract {}
+-use_configure no
+-build {}
+-
+-set libdir ${prefix}/lib/postgresql83
+-set dbdir ${prefix}/var/db/postgresql83/defaultdb
+-set logdir ${prefix}/var/log/postgresql83
+-set dbuser postgres
+-set dbgrp postgres
+-
+-startupitem.create yes
+-startupitem.init \
+- "PGCTL=${libdir}/bin/pg_ctl"
+-startupitem.start \
+- "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} start -l ${logdir}/postgres.log\""
+-startupitem.stop \
+-"su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} stop -s -m fast\""
++name postgresql83-server
++version 8.3.4
++categories databases
++platforms darwin
++maintainers mww jwa
++description Run postgresql83 as a server
++
++set libdir ${prefix}/lib/postgresql83
++set logdir ${prefix}/var/log/postgresql83
++set dbdir ${prefix}/var/db/postgresql83/defaultdb
++set dbpid ${dbdir}/postmaster.pid
++set dbuser postgres
++set dbgrp postgres
++
++long_description \
++ Run postgresql83 as a server. After installation:\n\
++ \nCreate a database instance, with\n\
++ %% sudo mkdir -p ${dbdir}\n\
++ %% sudo chown ${dbuser}:${dbgrp} ${dbdir}\n\
++ %% sudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\'\n\
++ \nTo load or activate the startup deamon, run:\n\
++ %% sudo launchctl load -w /Library/LaunchDaemons/org.macports.${name}.plist\
++ \nTo unload the startup deamon, run:\n\
++ %% sudo launchctl unload -w /Library/LaunchDaemons/org.macports.${name}.plist\n\
++ \nRun 'port install pgadmin3' to administer PostgreSQL\n\
++ \nRun 'port install slony1' to manage replication for PostgreSQL\n\
++ \nTo tweak your DBMS, consider increasing the value of kern.sysv.shmmax in /etc/sysctl.conf
++
++
++homepage http://www.postgresql.org/
++master_sites postgresql
++
++livecheck.check regex
++livecheck.url ${homepage}/versions.rss
++livecheck.regex (8.3.\[0-9\]+)
++
++depends_run port:postgresql83
++
++fetch {}
++checksum {}
++extract {}
++use_configure no
++build {}
++
++startupitem.create yes
++startupitem.name ${name}
++startupitem.logfile ${logdir}/postgres.log
++startupitem.logevents yes
++startupitem.init "PGCTL=${libdir}/bin/pg_ctl"
++startupitem.start \
++ "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} start -l ${logdir}/postgres.log\""
++startupitem.stop \
++ "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} stop -s -m fast\""
++startupitem.restart \
++ "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} restart -s -m fast\""
++startupitem.pidfile auto ${dbpid}
+
+ destroot {
+- addgroup ${dbgrp}
+- set gid [existsgroup ${dbgrp}]
+- adduser ${dbuser} shell=/bin/sh gid=${gid} \
+- home=${prefix}/var/db/postgresql83 \
+- realname=PostgreSQL-83\ Server
+- xinstall -m 755 -d ${destroot}${logdir}
+- system "touch ${destroot}${logdir}/postgres.log"
+- system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
++ addgroup ${dbgrp}
++ set gid [existsgroup ${dbgrp}]
++ adduser ${dbuser} shell=/bin/sh gid=${gid} \
++ home=${prefix}/var/db/postgresql83 \
++ realname=PostgreSQL-83\ Server
++
++ # Check the permissions of this logdir for postgres user
++ xinstall -m 755 -d ${destroot}${logdir}
++ system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}"
++ system "touch ${destroot}${logdir}/postgres.log"
++ system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
+ }
+
+ post-install {
+- ui_msg "\nTo create a database instance, after install do\n\
+- sudo mkdir -p ${dbdir}\n\
+- sudo chown ${dbuser}:${dbgrp} ${dbdir}\n\
+- sudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\'"
+- ui_msg "\nTo tweak your DBMS, consider increasing kern.sysv.shmmax\
+- by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf"
++ ui_msg "\nTo create a database instance, after install do\n\
++ %% sudo mkdir -p ${dbdir}\n\
++ %% sudo chown ${dbuser}:${dbgrp} ${dbdir}\n\
++ %% sudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\'\n\
++ \nTo tweak your DBMS, consider increasing kern.sysv.shmmax\
++ by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf\n\
++ \nTo load the startup deamon, run:\n\
++ %% sudo launchctl load -w /Library/LaunchDaemons/org.macports.${name}.plist\n\
++ \nTo unload the startup deamon, run:\n\
++ %% sudo launchctl unload -w /Library/LaunchDaemons/org.macports.${name}.plist\n\
++ \nRun 'port install pgAdmin3' to administer PostgreSQL\n\
++ \nRun 'port install slony1' to manage replication for PostgreSQL\n"
+ }
+
+-livecheck.check regex
+-livecheck.url ${homepage}
+-livecheck.regex (8.3.\[0-9\]+)
+-
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-pljava-readme.applescript
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-pljava-readme.applescript (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-pljava-readme.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1 @@
+open location "file:///Library/PostgreSQL/8.3/doc/pljava/readme.html"
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-pljava.applescript
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-pljava.applescript (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-pljava.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1 @@
+open location "file:///Library/PostgreSQL/8.3/doc/pljava/userguide.html"
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-postgresql-releasenotes.applescript
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-postgresql-releasenotes.applescript (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-postgresql-releasenotes.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1 @@
+open location "file:///Library/PostgreSQL/8.3/doc/postgresql/html/release.html"
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-postgresql.applescript
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-postgresql.applescript (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/files/scripts/doc-postgresql.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1 @@
+open location "file:///Library/PostgreSQL/8.3/doc/postgresql/html/index.html"
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-help.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-help.icns
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-psql.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-psql.icns
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-reload.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-reload.icns
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-restart.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-restart.icns
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-start.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-start.icns
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-stop.icns
===================================================================
(Binary files differ)
Property changes on: users/dweber/tmp/databases/postgresql83-server/files/scripts/images/pg-stop.icns
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/psql.applescript
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/files/scripts/psql.applescript (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/files/scripts/psql.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,8 @@
+ignoring application responses
+ tell application "Terminal"
+ activate
+ do script with command "/Library/PostgreSQL/8.3/scripts/runpsql.sh; exit"
+ end tell
+end ignoring
+
+
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/reload.applescript
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/files/scripts/reload.applescript (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/files/scripts/reload.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,2 @@
+set retval to do shell script "su - postgres -c \"/opt/local/lib/postgresql83/bin/pg_ctl -D /opt/local/var/db/postgresql83/defaultdb reload\"" with administrator privileges
+display dialog retval buttons {"OK"} with icon 1 default button 1
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/restart.applescript
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/files/scripts/restart.applescript (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/files/scripts/restart.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,2 @@
+set retval to do shell script "SystemStarter restart postgresql-8.3" with administrator privileges
+display dialog retval buttons {"OK"} with icon 1 default button 1
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/runpsql.sh
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/files/scripts/runpsql.sh (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/files/scripts/runpsql.sh 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+# PostgreSQL psql runner script for OS X
+# Dave Page, EnterpriseDB
+
+# Check the command line
+if [ $# -ne 0 -a $# -ne 1 ];
+then
+ echo "Usage: $0 [wait]"
+ exit 127
+fi
+
+echo -n "Server [localhost]: "
+read SERVER
+
+if [ "$SERVER" = "" ];
+then
+ SERVER="localhost"
+fi
+
+echo -n "Database [postgres]: "
+read DATABASE
+
+if [ "$DATABASE" = "" ];
+then
+ DATABASE="postgres"
+fi
+
+echo -n "Port [5432]: "
+read PORT
+
+if [ "$PORT" = "" ];
+then
+ PORT="5432"
+fi
+
+echo -n "Username [postgres]: "
+read USERNAME
+
+if [ "$USERNAME" = "" ];
+then
+ USERNAME="postgres"
+fi
+
+psql -h $SERVER -p $PORT -U $USERNAME $DATABASE
+RET=$?
+
+if [ "$RET" != "0" ];
+then
+ echo
+ echo -n "Press <return> to continue..."
+ read dummy
+fi
+
+exit $RET
Property changes on: users/dweber/tmp/databases/postgresql83-server/files/scripts/runpsql.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:eol-style
+ native
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/start.applescript
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/files/scripts/start.applescript (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/files/scripts/start.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,2 @@
+set retval to do shell script "SystemStarter start postgresql-8.3" with administrator privileges
+display dialog retval buttons {"OK"} with icon 1 default button 1
Added: users/dweber/tmp/databases/postgresql83-server/files/scripts/stop.applescript
===================================================================
--- users/dweber/tmp/databases/postgresql83-server/files/scripts/stop.applescript (rev 0)
+++ users/dweber/tmp/databases/postgresql83-server/files/scripts/stop.applescript 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,2 @@
+set retval to do shell script "SystemStarter stop postgresql-8.3" with administrator privileges
+display dialog retval buttons {"OK"} with icon 1 default button 1
Added: users/dweber/tmp/databases/ruby-pg/Portfile
===================================================================
--- users/dweber/tmp/databases/ruby-pg/Portfile (rev 0)
+++ users/dweber/tmp/databases/ruby-pg/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,50 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+
+# $Id$
+
+PortSystem 1.0
+PortGroup ruby 1.0
+
+# When the ruby PortGroup is declared within a Portfile, the following
+# variables are provided during port install.
+#
+# ruby.version: The MacPorts Ruby version.
+# ruby.bin: The Ruby binary location.
+# ruby.lib: Path to the Ruby vendorlibdir directory (ie, ${prefix}/lib/ruby/vendor_ruby/${ruby.version})
+# ruby.arch: The name for the Ruby architecture-dependent directory name (ie, i686-darwin8.10.1).
+# ruby.archlib: Path to the Ruby vendor archdir (ie, ${ruby.lib}/${ruby.arch}).
+
+ruby.setup {postgres ruby-pg} 0.7.9 \
+ setup.rb {README doc sample} \
+ rubyforge:44546:ruby-pg
+revision 0
+distname ${ruby.module}-${version}
+
+maintainers nomaintainer
+description Ruby API for the PostgreSQL database
+long_description \
+ This is the Ruby library for accessing PostgreSQL \
+ databases from within Ruby. It works with PostgreSQL 8.3.
+
+categories-append databases
+
+homepage http://rubyforge.org/projects/ruby-pg
+master_sites http://rubyforge.org/frs/download.php/44546/
+
+distfiles ruby-pg-0.7.9.2008.10.05.tar.gz
+checksums \
+ ruby-pg-0.7.9.2008.10.05.tar.gz \
+ md5 63eb62524165c6db25decc97216ff9fd \
+ sha1 7115ac7aed6a8a1f7514e3ad59b12f6f5f7405f5 \
+ rmd160 cb66ac3adcb8d226a5f14f007613cb944d82e697
+
+depends_lib-append port:postgresql83
+
+configure.args-append \
+ --with-pgsql-include=${prefix}/include/postgresql83 \
+ --with-pgsql-lib=${prefix}/lib/postgresql83
+
+configure.env-append \
+ POSTGRES_LIB="${prefix}/lib/postgresql83 -L${prefix}/lib -lssl -lcrypto" \
+ POSTGRES_INCLUDE="${prefix}/include/postgresql83 -I${prefix}/include"
+
Property changes on: users/dweber/tmp/databases/ruby-pg/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/devel/cableswig/Portfile
===================================================================
--- users/dweber/tmp/devel/cableswig/Portfile (rev 0)
+++ users/dweber/tmp/devel/cableswig/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,78 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name cableswig
+version 20090521
+# CableSwig is only available from cvs and there are no release tags, using date
+# of cvs checkout for the version number.
+
+categories devel
+maintainers dweber openmaintainer
+
+description CableSwig creates interfaces to interpreted languages such as Tcl and Python.
+
+long_description \
+CableSwig is used to create interfaces (i.e. wrappers) to interpreted languages such as Tcl and Python. It was created to produce wrappers for ITK because the toolkit uses C++ structures that SWIG cannot parse (deeply nested template instantiations). CableSwig is a combination tool that uses GCC_XML as the c++ parser. The input files are Cable style input files. The XML produced from the Cable/GCC_XML input files are then parsed and feed into a modified version of SWIG. SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. It is used to generate the language bindings to the target language. Currently, Tcl and Python are supported. CableSwig consists of four executables: 1) cswig - the main cable swig executable, that takes an xml file from gccxml as input. The xml file should be created from a cable config input file. This program is a modified version of the standard SWIG main. It uses CABLE
libraries to parse the input XML from gccxml to create SWIG data structures describing the C++ code to be wrapped. 2) cableidx - a program to generate index files from gccxml xml files. The index files tell cswig what classes are wrapped in which libraries. This is important because swig needs to know if a class is not wrapped or wrapped in another module, and if it is wrapped which module it is wrapped in. 3) gccxml_cc1plus - A patched version of gcc that has the -fxml option to convert c++ into xml. 4) gccxml - ( www.gccxml.org) the front end program to gccxml_cc1plus. CableSwig was developed to support ITK, and has not been widely used elsewhere. Not all features of SWIG are currently accessible through CableSwig. Features known to be missing are: * Wrapping of public data members in structs and classes, no accessor routines are created, the original source must provide access methods.
+
+homepage http://www.itk.org/ITK/resources/CableSwig.html
+platforms darwin
+
+fetch.type cvs
+cvs.root :pserver:anonymous at public.kitware.com:/cvsroot/CableSwig
+cvs.module CableSwig
+cvs.date "21-May-2009"
+
+post-extract {
+ move ${workpath}/CableSwig ${worksrcpath}
+}
+
+depends_build port:cmake \
+ port:gmake \
+ port:bison \
+ port:gawk
+
+# Use gmake and build in a separate directory from the source
+build.type gnu
+build.dir ${workpath}/cableswig-build
+
+configure {
+ xinstall -d -m 755 ${build.dir}
+ system "cd ${build.dir} && cmake ${configure.args} ${worksrcpath}"
+}
+
+configure.args-append \
+ -DBISON_YACC:FILEPATH=${prefix}/bin/bison \
+ -DCMAKE_BUILD_TYPE:STRING=Release \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_OSX_SYSROOT=${universal_sysroot} \
+ -DCMAKE_SKIP_RPATH:BOOL=OFF \
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
+ -DCSWIG_USE_SYSTEM_GCCXML:BOOL=OFF \
+ -DSWIG_BUILD_EXAMPLES:BOOL=OFF \
+ -DBUILD_TESTING:BOOL=OFF
+
+variant examples description "provide examples" {
+ configure.args-delete \
+ -DSWIG_BUILD_EXAMPLES:BOOL=OFF
+ configure.args-append \
+ -DSWIG_BUILD_EXAMPLES:BOOL=ON
+}
+
+variant testing description "provide testing" {
+ configure.args-delete \
+ -DBUILD_TESTING:BOOL=OFF
+ configure.args-append \
+ -DBUILD_TESTING:BOOL=ON
+}
+
+variant gccxml description "use port:gccxml" {
+ depends_lib-append \
+ port:gccxml
+ configure.args-delete \
+ -DCSWIG_USE_SYSTEM_GCCXML:BOOL=OFF
+ configure.args-append \
+ -DCSWIG_USE_SYSTEM_GCCXML:BOOL=ON
+}
+
Property changes on: users/dweber/tmp/devel/cableswig/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/devel/gdb/Portfile
===================================================================
--- users/dweber/tmp/devel/gdb/Portfile (rev 0)
+++ users/dweber/tmp/devel/gdb/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,61 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name gdb
+version 6.8
+revision 0
+categories devel
+maintainers dweber openmaintainer
+description GDB: The GNU Project Debugger
+
+long_description GDB, the GNU Project debugger, allows you to see what is going on 'inside' another program while it executes -- or what another program was doing at the moment it crashed. GDB can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act: a) start your program, specifying anything that might affect its behavior, b) make your program stop on specified conditions, c) examine what has happened, when your program has stopped, d) change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another. The program being debugged can be written in Ada, C, C++, Objective-C, Pascal (and many other languages). Those programs might be executing on the same machine as GDB (native) or on another machine (remote). GDB can run on most popular UNIX and Microsoft Windows variants.
+
+homepage http://www.gnu.org/software/gdb/
+platforms darwin
+
+master_sites gnu
+
+distname gdb-${version}
+
+use_bzip2 yes
+
+checksums \
+ md5 c9da266b884fb8fa54df786dfaadbc7a \
+ sha1 ba1394d59dd84a1dd3a83322bd82c799596f0bcf \
+ rmd160 23fc9442290b6383ce8f943ef1eb117fa06e79fb
+
+depends_build \
+ port:expat
+ #port:gcc42
+
+
+#Fine tuning of the installation directories:
+# --bindir=DIR user executables [EPREFIX/bin]
+# --sbindir=DIR system admin executables [EPREFIX/sbin]
+# --libexecdir=DIR program executables [EPREFIX/libexec]
+# --datadir=DIR read-only architecture-independent data [PREFIX/share]
+# --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+# --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+# --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+# --libdir=DIR object code libraries [EPREFIX/lib]
+# --includedir=DIR C header files [PREFIX/include]
+# --oldincludedir=DIR C header files for non-gcc [/usr/include]
+# --infodir=DIR info documentation [PREFIX/info]
+# --mandir=DIR man documentation [PREFIX/man]
+#
+#Program names:
+# --program-prefix=PREFIX prepend PREFIX to installed program names
+# --program-suffix=SUFFIX append SUFFIX to installed program names
+# --program-transform-name=PROGRAM run sed PROGRAM on installed program names
+
+
+
+configure.args-append \
+ --infodir=${prefix}/share/info \
+ --mandir=${prefix}/share/man \
+ --with-docdir=${prefix}/share/doc \
+ --enable-objc-gc
+
+
Property changes on: users/dweber/tmp/devel/gdb/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/editors/hexfiend/Portfile
===================================================================
--- users/dweber/tmp/editors/hexfiend/Portfile (rev 0)
+++ users/dweber/tmp/editors/hexfiend/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,37 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup xcode 1.0
+
+name hexfiend
+version 17
+
+# HexFiend has no versions, but it is available from svn, so we can use
+# the revision number for a version number (see svn.tag below).
+
+categories editors aqua
+maintainers dweber openmaintainer
+
+description HexFiend is a fast and clever hex editor
+
+long_description \
+* Insert, delete, rearrange. Hex Fiend is not limited to in-place changes like some hex editors. * Work with huge files. Hex Fiend can handle as big a file as you're able to create. It's been tested on files as large as 118 GB. * Small footprint. Hex Fiend does not need to keep your files in memory. You won't dread launching or working with Hex Fiend even on low-RAM machines. * Fast. Open a huge file, scroll around, copy and paste, all instantly. Find what you're looking for with fast searching. * Smart saving. Hex Fiend knows not to waste time overwriting the parts of your files that haven't changed. * Data inspector. Interpret data as integer or floating point, signed or unsigned, big or little endian... * Smooth scrolling. No separate pages - scroll like any text document.
+
+homepage http://ridiculousfish.com/hexfiend/
+
+fetch.type svn
+svn.url http://ridiculousfish.com/svn/HexFiend/trunk
+svn.tag ${version}
+
+post-extract {
+ move ${workpath}/trunk ${worksrcpath}
+}
+
+#depends_build port:cmake
+#depends_lib port:gccxml
+
+post-destroot {
+ copy ${worksrcpath}/frameworks "${destroot}/Applications/MacPorts/Hex\ Fiend.app/Contents/Frameworks"
+}
+
Property changes on: users/dweber/tmp/editors/hexfiend/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/editors/vim-r/Portfile
===================================================================
--- users/dweber/tmp/editors/vim-r/Portfile (rev 0)
+++ users/dweber/tmp/editors/vim-r/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,37 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+
+# $Id$
+
+PortSystem 1.0
+
+name vim-r
+version 0.5-80
+categories editors
+maintainers dweber
+description Vim R-project plugin
+long_description Send R code from a VIM buffer to R
+
+homepage http://www.vim.org/scripts/script.php?script_id=1048
+
+checksums \
+ MD5 500463d51b48a3c3d5368d74e400c6a2 \
+ SHA1 c79b42f7a2b17053f4ffd407955d9d089455f04c \
+ RMD160 457dfa1d650b66d25c48f4648bdc2164a6bae0fe
+
+fetch {
+ wget -q -O ${name}-${version}.tgz \
+ http://www.vim.org/scripts/download_script.php?src_id=7976
+}
+
+distname ${name}-${version}
+
+# Is there a port for R?
+# See http://r.research.att.com/ for R on OSX
+
+depends_lib port:R \
+ port:vim \
+ port:p5-term-readline-gnu \
+ port:p5-io-tty \
+ port:p5-io-stty
+
+
Property changes on: users/dweber/tmp/editors/vim-r/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/dweber/tmp/guide/docbook.css
===================================================================
--- users/dweber/tmp/guide/docbook.css (rev 0)
+++ users/dweber/tmp/guide/docbook.css 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,208 @@
+/*
+ * MacPorts Guide Stylesheet
+ */
+
+/*
+ CSS design by Mark Duling
+*/
+
+div.mediaobject {
+ text-align: center;
+ margin: auto;
+ border: thin black inset;
+}
+
+.emphasis { font-weight: bold ; }
+
+a:link { color: #6298E5; text-decoration: none; }
+a:visited { color: #6298E5; text-decoration: none;}
+a:hover { text-decoration: underline; }
+
+.filename { color: #8B1A1A; }
+
+span.term { font-weight: bold; }
+
+span.guilabel { font-weight: bold; }
+
+span.guimenu { font-weight: bold; }
+
+.programlisting {
+ font-family: monospace;
+ font-size: medium;
+ background-color: #E6E6E6;
+ border: thin black inset }
+
+.literallayout {
+ font-family: monospace;
+}
+
+.screen {
+ font-family: monospace;
+ font-size: medium;
+ border: thin black inset;
+ background-color: white; }
+
+div.screenshot div.mediaobject {
+ text-align: center;
+ margin: auto }
+
+body {
+ font-family: Verdana, Arial, sans-serif;
+ font-size: 14px;
+ line-height: 1.4;
+ color: #696969;
+}
+
+div.note h3.title { color: #C00; }
+
+.author {
+ font-size: 14px;
+ color: #6298E5;
+ font-weight: bold;
+}
+
+.copyright {
+ font-size: 12px;
+ font-family: times;
+}
+
+div.book div.titlepage h1 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 24pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.book div.titlepage h2 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 18pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.section div.titlepage h2 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 16pt;
+ color: black;
+ text-align: left;
+}
+
+div.section div.titlepage h3 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 14pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.section div.titlepage h4 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 12pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.mediaobject {
+ text-align: center;
+ margin: auto;
+}
+
+p { margin-bottom: 14pt; }
+
+div.toc {
+ border-width: 1px;
+ border-color: black;
+ border-style: solid;
+/* background-color: #C2CAD8; Color of macosforge.org sidebar */
+ background-color: #9FB6CD;
+ background-repeat: no-repeat;
+ background-position: center top;
+
+ font-size: 10px;
+ font-family: Verdana, Arial, sans-serif;
+ color: black;
+ left: 8px;
+ width: 234px;
+ padding-left: 2px;
+ padding-top: 0px;
+ height: 96%;
+ float: left;
+ overflow: scroll;
+ position: fixed;
+ top: 12px;
+
+/* IE hack */
+
+ position: expression("absolute");
+ top: expression(document.body.scrollTop+this.offsetHeight-this.offsetHeight);
+}
+
+/* Definitions for non-Safari/non-IE toc sections */
+div.toc dt {
+ font-size: 12px;
+ line-height: 22px;
+}
+
+/* Definitions for non-Safari/non-IE toc subsections */
+div.toc dd dl dt {
+ font-size: 11px;
+ line-height: 14px;
+}
+
+/* Definitions for toc sections using Safari Stokely hack */
+html*.toc dt {
+/* Seen by Safari */
+ font-size: 14px;
+ line-height: 16px;
+/* Seen by IE */
+ _font-size: 14px;
+ _line-height: 22px;
+}
+
+/* Definitions for toc subsections using Safari Stokely hack */
+html*.toc dd dl dt {
+/* Seen by Safari */
+ font-size: 11px;
+ line-height: 13px;
+ padding-bottom: 0px;
+/* Seen by IE */
+ _font-size: 11px;
+ _line-height: 14px;
+ _padding-bottom: 0px;
+}
+
+/* TOC All Links */
+/* div.toc a:link { color: royalblue; } */
+/* div.toc a:hover { color: #D00; } */
+/* div.toc a:visited { color: black; text-decoration: none; } */
+
+
+/* TOC Section Links */
+div.toc dt a:link { color: #F4F6F8; text-decoration: none; }
+div.toc dt a:hover { color: gray; }
+div.toc dt a:visited { color: #F4F6F8; text-decoration: none; }
+
+
+/* TOC Subsubsection Links */
+div.toc dd dl dt a:link { color: black; text-decoration: none; }
+div.toc dd dl dt a:hover { color: gray; }
+div.toc dd dl dt a:visited { color: black; text-decoration: none; }
+
+div.book {
+ margin-left: 247px;
+}
+
+/*
+div.toc:before {
+ font-family: Palatino, Bookman, serif;
+ font-size: 16px;
+ font-weight: bold;
+ text-align: center;
+ display: block;
+ color: black;
+ content: "MacPorts Guide Contents";
+} */
+
Added: users/dweber/tmp/guide/print.css
===================================================================
--- users/dweber/tmp/guide/print.css (rev 0)
+++ users/dweber/tmp/guide/print.css 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,139 @@
+/*
+ * MacPorts Guide Stylesheet
+ */
+
+/*
+ CSS design by Mark Duling
+
+ This print.css version adapted by Darren Weber
+ To be used with a style link attribute: media="print"
+ <link href="print.css" media="print" rel="stylesheet" type="text/css" />
+*/
+
+div.mediaobject {
+ text-align: center;
+ margin: auto;
+ border: thin black inset;
+}
+
+.emphasis { font-weight: bold ; }
+
+a:link { color: #6298E5; text-decoration: none; }
+a:visited { color: #6298E5; text-decoration: none;}
+a:hover { text-decoration: underline; }
+
+.filename { color: #8B1A1A; }
+
+span.term { font-weight: bold; }
+
+span.guilabel { font-weight: bold; }
+
+span.guimenu { font-weight: bold; }
+
+.programlisting {
+ font-family: monospace;
+ font-size: medium;
+ background-color: #E6E6E6;
+ border: thin black inset }
+
+.literallayout {
+ font-family: monospace;
+}
+
+.screen {
+ font-family: monospace;
+ font-size: medium;
+ border: thin black inset;
+ background-color: white; }
+
+div.screenshot div.mediaobject {
+ text-align: center;
+ margin: auto }
+
+body {
+ font-family: Verdana, Arial, sans-serif;
+ font-size: 14px;
+ line-height: 1.4;
+ color: #696969;
+}
+
+div.note h3.title { color: #C00; }
+
+.author {
+ font-size: 14px;
+ color: #6298E5;
+ font-weight: bold;
+}
+
+.copyright {
+ font-size: 12px;
+ font-family: times;
+}
+
+div.book div.titlepage h1 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 24pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.book div.titlepage h2 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 18pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.section div.titlepage h2 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 16pt;
+ color: black;
+ text-align: left;
+}
+
+div.section div.titlepage h3 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 14pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.section div.titlepage h4 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 12pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+p { margin-bottom: 14pt; }
+
+
+
+/* ALL TOC STYLES BELOW */
+
+div.toc {
+ /* For print style, remove TOC */
+ display: none;
+ width: 0px;
+}
+
+div.book {
+ margin-left: 2px;
+}
+
+.navheader {
+ display: none;
+ height: 0px;
+ width: 0px;
+}
+
+.navfooter {
+ display: none;
+ height: 0px;
+ width: 0px;
+}
+
Added: users/dweber/tmp/guide/reference.startupitems.html
===================================================================
--- users/dweber/tmp/guide/reference.startupitems.html (rev 0)
+++ users/dweber/tmp/guide/reference.startupitems.html 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,154 @@
+<!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">
+<title>5.7. StartupItems</title>
+<link rel="stylesheet" href="reference.startupitems_files/docbook.css" type="text/css">
+<link rel="stylesheet" href="print.css" type="text/css" media="print">
+<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
+<link rel="start" href="http://guide.macports.org/chunked/index.html" title="MacPorts Guide"><link rel="up" href="http://guide.macports.org/chunked/reference.html" title="Chapter 5. Portfile Reference"><link rel="prev" href="http://guide.macports.org/chunked/reference.tcl-extensions.html" title="5.6. Tcl Extensions"><link rel="next" href="http://guide.macports.org/chunked/reference.livecheck.html" title="5.8. Livecheck / Distcheck"></head><body><div class="toc"><dl><dt><span class="chapter"><a href="http://guide.macports.org/chunked/introduction.html">1. Introduction</a></span></dt><dt><span class="chapter"><a href="http://guide.macports.org/chunked/installing.html">2. Installing MacPorts</a></span></dt><dd><dl><dt><span class="section"><a href="http://guide.macports.org/chunked/installing.html#installing.x11">2.1. Install X11</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/installing.xcode.html">2.2. Install Xcode Tool
s</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/installing.macports.html">2.3. Install MacPorts</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/installing.shell.html">2.4. MacPorts and the Shell</a></span></dt></dl></dd><dt><span class="chapter"><a href="http://guide.macports.org/chunked/using.html">3. Using MacPorts</a></span></dt><dd><dl><dt><span class="section"><a href="http://guide.macports.org/chunked/using.html#using.port">3.1. The port Command</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/using.variants.html">3.2. Port Variants</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/using.common-tasks.html">3.3. Common Tasks</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/using.binaries.html">3.4. Port Binaries</a></span></dt></dl></dd><dt><span class="chapter"><a href="http://guide.macports.or
g/chunked/development.html">4. Portfile Development</a></span></dt><dd><dl><dt><span class="section"><a href="http://guide.macports.org/chunked/development.html#development.introduction">4.1. Portfile Introduction</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/development.creating-portfile.html">4.2. Creating a Portfile</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/development.examples.html">4.3. Example Portfiles</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/development.variants.html">4.4. Port Variants</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/development.patches.html">4.5. Patch Files</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/development.local-repositories.html">4.6. Local Portfile Repositories</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/d
evelopment.practices.html">4.7. Portfile Best Practices</a></span></dt></dl></dd><dt><span class="chapter"><a href="http://guide.macports.org/chunked/reference.html">5. Portfile Reference</a></span></dt><dd><dl><dt><span class="section"><a href="http://guide.macports.org/chunked/reference.html#reference.keywords">5.1. Global Keywords</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/reference.variables.html">5.2. Global Variables</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/reference.phases.html">5.3. Port Phases</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/reference.dependencies.html">5.4. Dependencies</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/reference.variants.html">5.5. Variants</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/reference.tcl-extensions.html">5.6. Tcl Extensions</a></spa
n></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/reference.startupitems.html">5.7. StartupItems</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/reference.livecheck.html">5.8. Livecheck / Distcheck</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/reference.portgroup.html">5.9. PortGroups</a></span></dt></dl></dd><dt><span class="chapter"><a href="http://guide.macports.org/chunked/internals.html">6. MacPorts Internals</a></span></dt><dd><dl><dt><span class="section"><a href="http://guide.macports.org/chunked/internals.html#internals.hierarchy">6.1. File Hierarchy</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/internals.configuration-files.html">6.2. Configuration Files</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/internals.images.html">6.3. Port Images</a></span></dt><dt><span class="section"><a href="http
://guide.macports.org/chunked/internals.apis.html">6.4. APIs and Libs</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/internals.registry.html">6.5. The MacPorts Registry</a></span></dt></dl></dd><dt><span class="chapter"><a href="http://guide.macports.org/chunked/project.html">7. MacPorts Project</a></span></dt><dd><dl><dt><span class="section"><a href="http://guide.macports.org/chunked/project.html#project.tickets">7.1. Creating Trac Tickets</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/project.contributing.html">7.2. Contributing to MacPorts</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/project.update-policies.html">7.3. Port Update Policies</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/project.membership.html">7.4. MacPorts Membership</a></span></dt><dt><span class="section"><a href="http://guide.macports.org/chunked/project
.portmgr.html">7.5. The PortMgr Team</a></span></dt></dl></dd><dt><span class="chapter"><a href="http://guide.macports.org/chunked/guide-terms.html">8. MacPorts Guide Terms</a></span></dt><dd><dl><dt><span class="glossary"><a href="http://guide.macports.org/chunked/guide-terms.html#glossary">Glossary</a></span></dt></dl></dd></dl></div><div class="book"><div class="navheader"><table summary="Navigation header" width="100%"><tbody><tr><th colspan="3" align="center">5.7. StartupItems</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="http://guide.macports.org/chunked/reference.tcl-extensions.html">Prev</a> </td><th align="center" width="60%">Chapter 5. Portfile Reference</th><td align="right" width="20%"> <a accesskey="n" href="http://guide.macports.org/chunked/reference.livecheck.html">Next</a></td></tr></tbody></table><hr></div><div class="section" xml:lang="en" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear:
both;"><a id="reference.startupitems"></a><a href="#reference.startupitems">5.7. StartupItems</a></h2></div></div></div><p>A StartupItem is a MacPorts facility to run "daemons," a Unix term for
+ programs that run continuously in the background, rather than under the
+ direct control of a user; for example, mail servers, network listeners, etc.
+ Ports that use StartupItem keywords create Mac OS X scripts for <a class="ulink" href="http://developer.apple.com/macosx/launchd.html" target="_top">launchd</a>, which
+ is the Apple facility introduced with Mac OS X 10.4 to replace xinetd for
+ starting and managing daemons. To support <span class="command"><strong>launchd</strong></span>, a
+ program named <span class="command"><strong>daemondo</strong></span> is provided by MacPorts base that
+ serves as an adapter between Mac OS X's <span class="command"><strong>launchd</strong></span> and
+ daemons (“<span class="quote">executable</span>” StartupItems) or traditional Unix startup
+ scripts that start daemons (“<span class="quote">script</span>” StartupItems).</p><p>There are three categories of StartupItem keywords. Those that trigger
+ StartupItem creation and logging, those that specify attributes of
+ “<span class="quote">executable</span>” StartupItems, and those that specify attributes of
+ “<span class="quote">script</span>” StartupItems.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The variable <code class="varname">startupitem_type</code> in
+ <code class="filename">${prefix}/etc/macports/macports.conf</code> may be set to
+ <code class="option">none</code> to globally override all StartupItem keywords found
+ in Portfiles; this prevents StartupItems from being created.</p></div><div class="section" xml:lang="en" lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="reference.startupitems.attributes"></a><a href="#reference.startupitems.attributes">5.7.1. StartupItem Attributes</a></h3></div></div></div><p>The keywords in this section may be used with either
+ “<span class="quote">executable</span>” or “<span class="quote">script</span>” StartupItems (see
+ below).</p><div class="variablelist"><dl><dt><span class="term">startupitem.create</span></dt><dd><p>Trigger the creation of a StartupItem.</p><div class="itemizedlist"><ul type="disc"><li><p>Default: <code class="option">no</code></p></li><li><p>Example:</p><pre class="programlisting">startupitem.create yes</pre></li></ul></div></dd><dt><span class="term">startupitem.name</span></dt><dd><p>Sets the name for the StartupItem. Defaults to the name of the
+ port, so this keyword is usually unnecessary.</p><div class="itemizedlist"><ul type="disc"><li><p>Default: <code class="varname">${name}</code></p></li><li><p>Example:</p><pre class="programlisting">startupitem.name dhcpd</pre></li></ul></div></dd><dt><span class="term">startupitem.logfile</span></dt><dd><p>Path to a logfile for logging events about the lifetime of the
+ StartupItem. Depending on the type of StartupItem, and the manner in
+ which it is started, standard output from the daemon may also be
+ directed to the logfile.</p><div class="itemizedlist"><ul type="disc"><li><p>Default: <code class="filename">/dev/null</code></p></li><li><p>Example:</p><pre class="programlisting">startupitem.logfile ${prefix}/var/log/mydaemon.log</pre></li></ul></div></dd><dt><span class="term">startupitem.logevents</span></dt><dd><p>Control whether or not to log events to the log file. If
+ logevents is set, events with timestamps are logged to the
+ logfile.</p><div class="itemizedlist"><ul type="disc"><li><p>Default: <code class="option">no</code></p></li><li><p>Example:</p><pre class="programlisting">startupitem.logevents yes</pre></li></ul></div></dd><dt><span class="term">startupitem.netchange</span></dt><dd><p>Cause the daemon to be restarted when a change in network
+ state is detected.</p><div class="itemizedlist"><ul type="disc"><li><p>Default: <code class="option">no</code></p></li><li><p>Example:</p><pre class="programlisting">startupitem.netchange yes</pre></li></ul></div></dd></dl></div></div><div class="section" xml:lang="en" lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="reference.startupitems.executable"></a><a href="#reference.startupitems.executable">5.7.2. Executable StartupItems</a></h3></div></div></div><p>Daemons run continuously, so monitoring the health of daemon
+ processes and restarting them if they die is an important StartupItems'
+ feature. “<span class="quote">Executable</span>” StartupItems are preferred over
+ “<span class="quote">script</span>” StartupItems because <span class="command"><strong>daemondo</strong></span>
+ launches the daemon <span class="emphasis"><em>directly</em></span>, rather than
+ <span class="emphasis"><em>indirectly</em></span> via a script, and therefore it
+ automatically knows how to monitor a daemon process and restart it if it
+ dies. Daemons used with “<span class="quote">executable</span>” StartupItems may be
+ programs or scripts (shell, perl, python, etc.), but when a script is used
+ the script <span class="emphasis"><em>itself</em></span> must be the daemon, rather than
+ merely what launches the daemon (for the latter,“<span class="quote">script</span>”
+ StartupItems are to be used).</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>For a given port, the “<span class="quote">executable</span>” StartupItem
+ keyword may not be used with any keywords in the “<span class="quote">script</span>”
+ StartupItem category.</p></div><div class="variablelist"><dl><dt><span class="term">startupitem.executable</span></dt><dd><p>Specifies the name of the daemon to be run. It may have
+ multiple arguments, but they must be appropriate for a call to exec;
+ arbitrary shell code may not be used.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Some daemons "daemonize" by detaching themselves from the
+ controlling tty before sending themselves to the background, thus
+ making themselves a child of the original process. A daemon to be
+ started with <code class="code">startupitem.executable</code> must not be
+ allowed to do this (daemondo will think the process has died and
+ start another instance); this can usually be turned off with a
+ switch so the daemon does not detach itself (runs as a foreground
+ process).</p></div><div class="itemizedlist"><ul type="disc"><li><p>Default: none</p></li><li><p>Example:</p><pre class="programlisting">startupitem.executable ${prefix}/sbin/vm-pop3d -d 10 -t 600</pre></li></ul></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Do not wrap values in quotes if passing arguments to the
+ daemon; “<span class="quote">executable</span>” StartupItem elements must be
+ tagged individually so the spaces between arguments serve as
+ delimiters for “<span class="quote">string</span>” tags. For example, this
+ startupitem key/value pair:</p><pre class="programlisting">startupitem.executable ${prefix}/sbin/vm-pop3d -d 10 -t 600</pre><p> generates a .plist file with these tags:</p><pre class="programlisting"><key>ProgramArguments</key>
+<array>
+ <string>/opt/local/bin/daemondo</string>
+ <string>--label=vm-pop3d</string>
+ <string>--start-cmd</string>
+ <string>/opt/local/sbin/vm-pop3d</string>
+ <string>-d</string>
+ <string>10</string>
+ <string>-t</string>
+ <string>600</string>
+ <string>;</string>
+</array></pre></div></dd></dl></div></div><div class="section" xml:lang="en" lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="reference.startupitems.script"></a><a href="#reference.startupitems.script">5.7.3. Script StartupItems</a></h3></div></div></div><p>StartupItems of type “<span class="quote">script</span>” use
+ <span class="command"><strong>daemondo</strong></span> to launch a daemon
+ <span class="emphasis"><em>indirectly</em></span> via a startup script. A typical snippet of
+ a startup script that may be used with a “<span class="quote">script</span>” StartupItem
+ is shown below. Notice that the script is not a daemon; rather the script
+ indirectly launches the vm-pop3d daemon.</p><pre class="programlisting">#!/bin/sh
+
+case "$1" in
+ start)
+ echo -n "Starting vm-pop3d: "
+ /opt/local/sbin/vm-pop3d -d 10 -t 600
+
+[... trimmed ...]</pre><p>But if a script itself is a daemon, use the
+ “<span class="quote">executable</span>” StartupItem type since that way it will be
+ launched directly and its health tracked automatically. When using
+ “<span class="quote">script</span>” StartupItems, the <code class="code">startupitem.pidfile</code>
+ keyword must be used if you want <span class="command"><strong>daemondo</strong></span> to monitor a
+ daemon process and restart it if it dies.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>For a given port, StartupItem keywords in category
+ “<span class="quote">script</span>” may not be used with an “<span class="quote">executable</span>”
+ StartupItem keyword.</p></div><div class="variablelist"><dl><dt><span class="term">startupitem.start, </span><span class="term">startupitem.stop, </span><span class="term">startupitem.restart</span></dt><dd><p>Specify a shell script to start, stop, and restart the daemon.
+ In the absence of <code class="code">startupitem.restart</code>, the daemon will
+ be restarted by taking the stop action, followed by the start
+ action.</p><div class="itemizedlist"><ul type="disc"><li><p>Default: none</p></li><li><p>Examples:</p><pre class="programlisting">startupitem.start "${prefix}/share/mysql/mysql.server start"
+startupitem.stop "${prefix}/share/mysql/mysql.server stop"
+startupitem.restart "${prefix}/share/mysql/mysql.server restart"</pre></li></ul></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Wrap the stop, start, and restart values in quotes so they
+ will be placed in the wrapper tagged as a single element.</p></div></dd><dt><span class="term">startupitem.init</span></dt><dd><p>Shell code that will be executed prior to any of the options
+ <code class="code">startupitem.start</code>, <code class="code">startupitem.stop</code> and
+ <code class="code">startupitem.restart</code>.</p><div class="itemizedlist"><ul type="disc"><li><p>Default: none</p></li><li><p>Example:</p><pre class="programlisting">startupitem.init BIN=${prefix}/sbin/bacula-fd</pre></li></ul></div></dd><dt><span class="term">startupitem.pidfile</span></dt><dd><p>This keyword must be defined properly for
+ <span class="command"><strong>daemondo</strong></span> to be able to monitor daemons launched
+ via “<span class="quote">script</span>” StartupItems and restart them if they die.
+ It specifies two things: a process id (PID) file handling method,
+ and a pidfile name and path.</p><div class="itemizedlist"><ul type="disc"><li><p>Default: <code class="literal">none
+ ${prefix}/var/run/${name}.pid</code></p><p>Default: [none] |
+ [<code class="filename">${prefix}/var/run/${name}.pid</code>]</p></li><li><p>Values [none auto manual clean]
+ [<em class="replaceable"><code>/path/to/pidfile</code></em>]</p></li><li><p>Example:</p><pre class="programlisting">startupitem.pidfile auto ${prefix}/var/run/${name}.pidfile</pre></li></ul></div><p>PID file handling options:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="option">none</code> - daemondo will not create or track
+ a PID file, so it won't know when a daemon dies.</p></li><li><p><code class="option">auto</code> - The started process is expected to
+ create a PID file that contains the PID of the running daemon;
+ daemondo then reads the PID from the file and tracks the
+ process. The started process must delete the PID file if this is
+ necessary.</p></li><li><p><code class="option">clean</code> - The started process is expected
+ to create a PID file that contains the PID of the running
+ daemon; daemondo then reads the PID from the file and tracks the
+ process, and deletes the PID file if it detects the daemon has
+ died.</p></li><li><p><code class="option">manual</code> - This option should only be used
+ if an “<span class="quote">executable</span>” StartupItem could be used
+ (daemondo launches a daemon directly) <span class="emphasis"><em>and</em></span> a
+ port author wants a PID file written for some special use. A PID
+ file is not needed to detect process death for daemons launched
+ directly by daemondo. As with executable StartupItems, daemondo
+ remembers the PID of the launched process and tracks it
+ automatically.</p></li></ul></div></dd></dl></div></div><div class="section" xml:lang="en" lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="reference.startupitems.launchd"></a><a href="#reference.startupitems.launchd">5.7.4. Loading / Unloading StartupItems into launchd</a></h3></div></div></div><p>A port with a StartupItem places a link to a .plist file for the
+ port's daemon within <code class="filename">/Library/LaunchDaemons/</code>. A
+ .plist file is an XML file; MacPorts installs .plist files tagged as
+ “<span class="quote">disabled</span>” for the sake of security. You may enable a startup
+ script (tag the.plist file as “<span class="quote">enabled</span>”) and load it into
+ <span class="command"><strong>launchd</strong></span> with a single command as shown.</p><pre class="programlisting"><code class="prompt">%%</code> <strong class="userinput"><code>sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist</code></strong></pre><p>You may stop a running startup script, disable it (tag the.plist
+ file as “<span class="quote">disabled</span>”), and unload it from
+ <span class="command"><strong>launchd</strong></span> with a single command as shown.</p><pre class="programlisting"><code class="prompt">%%</code> <strong class="userinput"><code>sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql5.plist</code></strong></pre></div><div class="section" xml:lang="en" lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="reference.startupitems.internals"></a><a href="#reference.startupitems.internals">5.7.5. StartupItem Internals</a></h3></div></div></div><p>During port installation a MacPorts StartupItem creates a .plist
+ file in <code class="filename">${prefix}/etc/LaunchDaemons/</code>, and places a
+ symbolic link to the .plist file within
+ <code class="filename">/Library/LaunchDaemons/</code>.</p><p>For example, the StartupItem for the mysql5 port is
+ <code class="filename">org.macports.mysql5.plist</code>, and it is linked as
+ shown.</p><pre class="programlisting"><code class="prompt">%%</code> <strong class="userinput"><code>ls -l /Library/LaunchDaemons</code></strong></pre><pre class="screen">org.macports.mysql5.plist ->
+ /opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysql5.plist</pre><p>For “<span class="quote">script</span>” StartupItems, in addition to a .plist
+ file, a wrapper is also created.</p><pre class="programlisting"><code class="prompt">%%</code> <strong class="userinput"><code>ls -l /opt/local/etc/LaunchDaemons/org.macports.mysql5/</code></strong></pre><pre class="screen">-rwxr-xr-x 2 root wheel 475 Aug 2 14:16 mysql5.wrapper
+-rw-r--r-- 2 root wheel 975 Aug 2 14:16 org.macports.mysql5.plist</pre><p>The
+ wrapper manipulates the script as specified in the startupitem.start and
+ startupitem.stop keywords. An example wrapper script snippet is shown
+ below.</p><pre class="programlisting">#!/bin/sh
+
+# MacPorts generated daemondo support script
+
+# Start
+Start()
+{
+ /opt/local/share/mysql5/mysql/mysql.server start
+}
+
+# Stop
+Stop()
+{
+ /opt/local/share/mysql5/mysql/mysql.server stop
+}
+
+[... trimmed ...]</pre></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tbody><tr><td align="left" width="40%"><a accesskey="p" href="http://guide.macports.org/chunked/reference.tcl-extensions.html">Prev</a> </td><td align="center" width="20%"><a accesskey="u" href="http://guide.macports.org/chunked/reference.html">Up</a></td><td align="right" width="40%"> <a accesskey="n" href="http://guide.macports.org/chunked/reference.livecheck.html">Next</a></td></tr><tr><td align="left" valign="top" width="40%">5.6. Tcl Extensions </td><td align="center" width="20%"><a accesskey="h" href="http://guide.macports.org/chunked/index.html">Home</a></td><td align="right" valign="top" width="40%"> 5.8. Livecheck / Distcheck</td></tr></tbody></table></div></div></body></html>
Added: users/dweber/tmp/guide/reference.startupitems_files/docbook.css
===================================================================
--- users/dweber/tmp/guide/reference.startupitems_files/docbook.css (rev 0)
+++ users/dweber/tmp/guide/reference.startupitems_files/docbook.css 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,208 @@
+/*
+ * MacPorts Guide Stylesheet
+ */
+
+/*
+ CSS design by Mark Duling
+*/
+
+div.mediaobject {
+ text-align: center;
+ margin: auto;
+ border: thin black inset;
+}
+
+.emphasis { font-weight: bold ; }
+
+a:link { color: #6298E5; text-decoration: none; }
+a:visited { color: #6298E5; text-decoration: none;}
+a:hover { text-decoration: underline; }
+
+.filename { color: #8B1A1A; }
+
+span.term { font-weight: bold; }
+
+span.guilabel { font-weight: bold; }
+
+span.guimenu { font-weight: bold; }
+
+.programlisting {
+ font-family: monospace;
+ font-size: medium;
+ background-color: #E6E6E6;
+ border: thin black inset }
+
+.literallayout {
+ font-family: monospace;
+}
+
+.screen {
+ font-family: monospace;
+ font-size: medium;
+ border: thin black inset;
+ background-color: white; }
+
+div.screenshot div.mediaobject {
+ text-align: center;
+ margin: auto }
+
+body {
+ font-family: Verdana, Arial, sans-serif;
+ font-size: 14px;
+ line-height: 1.4;
+ color: #696969;
+}
+
+div.note h3.title { color: #C00; }
+
+.author {
+ font-size: 14px;
+ color: #6298E5;
+ font-weight: bold;
+}
+
+.copyright {
+ font-size: 12px;
+ font-family: times;
+}
+
+div.book div.titlepage h1 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 24pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.book div.titlepage h2 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 18pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.section div.titlepage h2 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 16pt;
+ color: black;
+ text-align: left;
+}
+
+div.section div.titlepage h3 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 14pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.section div.titlepage h4 {
+ font-family: Verdana, Arial, Utopia, sans-serif;
+ font-size: 12pt;
+ color: black;
+ font-weight: bold;
+ text-align: left;
+}
+
+div.mediaobject {
+ text-align: center;
+ margin: auto;
+}
+
+p { margin-bottom: 14pt; }
+
+div.toc {
+ border-width: 1px;
+ border-color: black;
+ border-style: solid;
+/* background-color: #C2CAD8; Color of macosforge.org sidebar */
+ background-color: #9FB6CD;
+ background-repeat: no-repeat;
+ background-position: center top;
+
+ font-size: 10px;
+ font-family: Verdana, Arial, sans-serif;
+ color: black;
+ left: 8px;
+ width: 234px;
+ padding-left: 2px;
+ padding-top: 0px;
+ height: 96%;
+ float: left;
+ overflow: scroll;
+ position: fixed;
+ top: 12px;
+
+/* IE hack */
+
+ position: expression("absolute");
+ top: expression(document.body.scrollTop+this.offsetHeight-this.offsetHeight);
+}
+
+/* Definitions for non-Safari/non-IE toc sections */
+div.toc dt {
+ font-size: 12px;
+ line-height: 22px;
+}
+
+/* Definitions for non-Safari/non-IE toc subsections */
+div.toc dd dl dt {
+ font-size: 11px;
+ line-height: 14px;
+}
+
+/* Definitions for toc sections using Safari Stokely hack */
+html*.toc dt {
+/* Seen by Safari */
+ font-size: 14px;
+ line-height: 16px;
+/* Seen by IE */
+ _font-size: 14px;
+ _line-height: 22px;
+}
+
+/* Definitions for toc subsections using Safari Stokely hack */
+html*.toc dd dl dt {
+/* Seen by Safari */
+ font-size: 11px;
+ line-height: 13px;
+ padding-bottom: 0px;
+/* Seen by IE */
+ _font-size: 11px;
+ _line-height: 14px;
+ _padding-bottom: 0px;
+}
+
+/* TOC All Links */
+/* div.toc a:link { color: royalblue; } */
+/* div.toc a:hover { color: #D00; } */
+/* div.toc a:visited { color: black; text-decoration: none; } */
+
+
+/* TOC Section Links */
+div.toc dt a:link { color: #F4F6F8; text-decoration: none; }
+div.toc dt a:hover { color: gray; }
+div.toc dt a:visited { color: #F4F6F8; text-decoration: none; }
+
+
+/* TOC Subsubsection Links */
+div.toc dd dl dt a:link { color: black; text-decoration: none; }
+div.toc dd dl dt a:hover { color: gray; }
+div.toc dd dl dt a:visited { color: black; text-decoration: none; }
+
+div.book {
+ margin-left: 247px;
+}
+
+/*
+div.toc:before {
+ font-family: Palatino, Bookman, serif;
+ font-size: 16px;
+ font-weight: bold;
+ text-align: center;
+ display: block;
+ color: black;
+ content: "MacPorts Guide Contents";
+} */
+
Added: users/dweber/tmp/test/adduser/Portfile
===================================================================
--- users/dweber/tmp/test/adduser/Portfile (rev 0)
+++ users/dweber/tmp/test/adduser/Portfile 2009-05-27 22:54:16 UTC (rev 51564)
@@ -0,0 +1,43 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+
+# $Id$
+
+PortSystem 1.0
+
+name adduser
+version 0.1
+categories test
+description test tcl extensions
+
+fetch {}
+checksum {}
+extract {}
+use_configure no
+build {}
+destroot {}
+
+set usr postgres
+set grp postgres
+
+post-destroot {
+
+ # Check if the user and group already exist and replace them?
+ set uid [existsuser ${usr}]
+ set gid [existsgroup ${grp}]
+
+ ui_msg "${uid}:${gid}"
+
+ if {!${uid}} {
+ ui_msg "Creating user:\t ${usr}"
+ } else {
+ ui_msg "User ${usr} exists,\t uid=${uid}"
+ }
+
+ if {!${gid}} {
+ ui_msg "Creating group:\t ${grp}"
+ } else {
+ ui_msg "Group ${grp} exists,\t gid=${gid}"
+ }
+
+}
+
Property changes on: users/dweber/tmp/test/adduser/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090527/9086cf6c/attachment-0001.html>
More information about the macports-changes
mailing list