[30025] trunk/dports/databases

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 18 10:16:07 PDT 2007


Revision: 30025
          http://trac.macosforge.org/projects/macports/changeset/30025
Author:   jwa at macports.org
Date:     2007-10-18 10:16:07 -0700 (Thu, 18 Oct 2007)

Log Message:
-----------
A new port, CouchDB, a document database server, in a very developmental phase, svn build only, lacks a startupitem (coming soon)

Modified Paths:
--------------
    trunk/dports/databases/postgresql7/Portfile
    trunk/dports/databases/postgresql82-server/Portfile

Added Paths:
-----------
    trunk/dports/databases/couchdb-devel/
    trunk/dports/databases/couchdb-devel/Portfile

Added: trunk/dports/databases/couchdb-devel/Portfile
===================================================================
--- trunk/dports/databases/couchdb-devel/Portfile	                        (rev 0)
+++ trunk/dports/databases/couchdb-devel/Portfile	2007-10-18 17:16:07 UTC (rev 30025)
@@ -0,0 +1,39 @@
+# $Id: Portfile 29623 2007-10-03 10:44:55Z afb at macports.org $
+
+PortSystem 1.0
+
+name                couchdb-devel
+version             0.7.0a
+categories          databases
+platforms           darwin
+description         couchdb is a document database server
+maintainers         jwa
+long_description    ${description}
+homepage            http://couchdb.org/
+master_sites        http://couchdb.googlecode.com/svn/trunk/
+checksums           sha1 bf6506dd200ea18ea1331391da7aaece1188208d
+
+distname            couchdb-${version}
+fetch.type          svn
+svn.url             http://couchdb.googlecode.com/svn/trunk/
+worksrcdir          trunk
+
+depends_lib	port:automake \
+    port:autoconf \
+    port:libtool \
+    port:help2man \
+    port:icu \
+    port:erlang
+
+pre-configure {
+    system "cd ${worksrcpath}; ./bootstrap"
+}
+
+platform darwin 8 {
+    configure.compiler	gcc-4.0
+}
+
+livecheck.check	moddate
+livecheck.url	http://couchdb.googlecode/svn/trunk
+#livecheck.regex	files/xar-(\[0-9\.\]+).tar.gz
+

Modified: trunk/dports/databases/postgresql7/Portfile
===================================================================
--- trunk/dports/databases/postgresql7/Portfile	2007-10-18 17:12:59 UTC (rev 30024)
+++ trunk/dports/databases/postgresql7/Portfile	2007-10-18 17:16:07 UTC (rev 30025)
@@ -27,31 +27,32 @@
 use_bzip2		yes
 
 depends_lib		port:readline \
-				port:openssl \
-				port:zlib \
-				port:bison
+			port:openssl \
+			port:zlib \
+			port:bison
 
 worksrcdir		postgresql-${version}
 
 set libdir		${prefix}/lib/pgsql7
-configure.args	--sysconfdir=${prefix}/etc/pgsql7 \
-				--bindir=${libdir}/bin \
-				--libdir=${libdir} \
-				--includedir=${prefix}/include/pgsql7 \
-				--datadir=${prefix}/share/${name} \
-				--mandir=${prefix}/share/man \
-				--docdir=${prefix}/share/doc/${name} \
-				--with-docdir=${prefix}/share/doc/${name} \
-				--with-includes=${prefix}/include \
-				--with-libraries=${prefix}/lib \
-				--with-openssl=${prefix} \
-				--with-rendezvous \
-				--with-readline \
-				--with-zlib \
-				--enable-thread-safety \
-				--enable-integer-datetimes \
-				--enable-multibyte \
-				--enable-unicode
+configure.args		--sysconfdir=${prefix}/etc/pgsql7 \
+			--bindir=${libdir}/bin \
+			--libdir=${libdir} \
+			--includedir=${prefix}/include/pgsql7 \
+			--datadir=${prefix}/share/${name} \
+			--mandir=${prefix}/share/man \
+			--docdir=${prefix}/share/doc/${name} \
+			--with-docdir=${prefix}/share/doc/${name} \
+			--with-includes=${prefix}/include \
+			--with-libraries=${prefix}/lib \
+			--with-openssl=${prefix} \
+			--with-rendezvous \
+			--with-readline \
+			--with-zlib \
+			--enable-thread-safety \
+			--enable-integer-datetimes \
+			--enable-multibyte \
+			--enable-unicode \
+			--disable-spinlocks
 
 build.type		gnu
 

Modified: trunk/dports/databases/postgresql82-server/Portfile
===================================================================
--- trunk/dports/databases/postgresql82-server/Portfile	2007-10-18 17:12:59 UTC (rev 30024)
+++ trunk/dports/databases/postgresql82-server/Portfile	2007-10-18 17:16:07 UTC (rev 30025)
@@ -36,22 +36,31 @@
 "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL82DATA:=${dbdir}} stop -s -m fast\""
 
 destroot {
+    if {![existsgroup ${dbgrp}]} {
 	addgroup ${dbgrp}
-	set gid [existsgroup ${dbgrp}]
+    } else {
+	ui_msg "${dbgrp} group exists, not added"
+    }
+    set gid [existsgroup ${dbgrp}]
+    if {![existsuser ${dbuser}]} {
+	ui_msg "adding ${dbgrp}"
 	adduser ${dbuser} shell=/bin/sh gid=${gid} \
-		home=${prefix}/var/db/postgresql82 \
-		realname=PostgreSQL-82\ Server
-	xinstall -m 755 -d ${destroot}${logdir}
-	system "touch ${destroot}${logdir}/postgres.log"
-	system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
+	    home=${prefix}/var/db/postgresql82 \
+	    realname=PostgreSQL-82\ Server
+    } else {
+	ui_msg "${dbuser} user exists, not added"
+    }
+    xinstall -m 755 -d ${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\
+    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\
+    ui_msg "\nTo tweak your DBMS, consider increasing kern.sysv.shmmax\
 		by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf"
 }
 

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


More information about the macports-changes mailing list