[32868] trunk/dports/databases/couchdb-devel/Portfile
jwa at macports.org
jwa at macports.org
Mon Jan 14 01:10:40 PST 2008
Revision: 32868
http://trac.macosforge.org/projects/macports/changeset/32868
Author: jwa at macports.org
Date: 2008-01-14 01:10:38 -0800 (Mon, 14 Jan 2008)
Log Message:
-----------
version bump to 0.7.3a, adding svn tag for proper reproducible fetch, merging improvements from current stable port
Modified Paths:
--------------
trunk/dports/databases/couchdb-devel/Portfile
Modified: trunk/dports/databases/couchdb-devel/Portfile
===================================================================
--- trunk/dports/databases/couchdb-devel/Portfile 2008-01-14 09:05:37 UTC (rev 32867)
+++ trunk/dports/databases/couchdb-devel/Portfile 2008-01-14 09:10:38 UTC (rev 32868)
@@ -3,7 +3,7 @@
PortSystem 1.0
name couchdb-devel
-version 0.7.0a
+version 0.7.3a
categories databases
platforms darwin
description couchdb is a document database server
@@ -16,6 +16,7 @@
distname couchdb-${version}
fetch.type svn
svn.url http://couchdb.googlecode.com/svn/trunk/
+svn.tag 623
worksrcdir trunk
depends_lib port:automake \
@@ -25,6 +26,13 @@
port:icu \
port:erlang
+set dbgroup couchdb
+set dbuser couchdb
+set logdir ${prefix}/var/log/couchdb
+set dbdir ${prefix}/var/lib/couchdb
+set piddir ${prefix}/var/run/
+set plistloc ${prefix}/etc/LaunchDaemons/org.macports.CouchDB
+
pre-configure {
system "cd ${worksrcpath}; ./bootstrap"
}
@@ -34,7 +42,9 @@
}
variant server {
- set logdir ${prefix}/var/log
+ addgroup ${dbgroup}
+ adduser ${dbuser} gid=[existsgroup ${dbgroup}]
+
startupitem.create yes
startupitem.type launchd
startupitem.name CouchDB
@@ -42,6 +52,27 @@
startupitem.stop "${prefix}/bin/couchdb -d"
}
+pre-destroot {
+ if { [variant_isset server] } {
+ xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
+ ${destroot}${dbdir} \
+ ${destroot}${logdir} \
+ ${destroot}${piddir}
+ destroot.keepdirs-append \
+ ${destroot}${dbdir} \
+ ${destroot}${logdir} \
+ ${destroot}${piddir}
+ }
+}
+
+pre-install {
+ if { [variant_isset server] } {
+ system "touch ${destroot}${piddir}/couchdb.pid"
+ system "chown -R ${dbuser}:${dbgroup} ${destroot}${dbdir} ${destroot}${logdir} ${destroot}${piddir}/couchdb.pid"
+ system "cd ${destroot}${plistloc}; patch <${filespath}/patch-org.macports.CouchDB.plist"
+ }
+}
+
livecheck.check moddate
livecheck.url http://couchdb.googlecode.com/svn/trunk
#livecheck.regex files/couchdb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080114/e30210e9/attachment.html
More information about the macports-changes
mailing list