source: trunk/dports/databases/couchdb/Portfile @ 70696

Last change on this file since 70696 was 70696, checked in by jwa@…, 10 years ago

version bump to 1.0.1, fixing the data-loss risking bug in 1.0.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 70696 2010-08-17 16:47:33Z jwa@macports.org $
2
3PortSystem 1.0
4
5name            couchdb
6version         1.0.1
7
8categories      databases
9platforms       darwin
10
11description     CouchDB is a document database server
12maintainers     jwa
13long_description  ${description} with a restful HTTP API, capable of \
14        storing arbitrary JSON documents, building powerful data views, \
15        defined in JavaScript, and processed in parallel using Map/Reduce. \
16        It leaves out SQL and transactions for simplicity's sake, to \
17        improve scalability and to relax users' lives.
18
19homepage        http://couchdb.apache.org/
20master_sites    apache
21master_sites.mirror_subdir      ${name}/${version}/
22distname        apache-${name}-${version}
23
24checksums           md5     001cf286b72492617e9ffba271702a00 \
25                    sha1    470c88bca6a157e8a40b0713192a7a169bb0395e \
26                    rmd160  d5e6616c71472a7f6769774dc13fc07ccbf33350
27
28depends_lib     port:automake \
29    port:autoconf \
30    port:libtool \
31    port:help2man \
32    port:icu \
33    port:spidermonkey \
34    port:curl \
35    port:erlang
36
37set dbgroup couchdb
38set dbuser couchdb
39set logdir ${prefix}/var/log/couchdb
40set dbdir ${prefix}/var/lib/couchdb
41set plistdir /Library/LaunchDaemons
42startupitem.uniquename org.apache.couchdb
43
44post-destroot {
45    addgroup ${dbgroup}
46    adduser ${dbuser} gid=[existsgroup ${dbgroup}]
47    xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
48        ${destroot}${dbdir} \
49        ${destroot}${logdir} \
50        ${destroot}${plistdir}
51    destroot.keepdirs-append \
52        ${destroot}${dbdir} \
53        ${destroot}${logdir}
54    set plist org.apache.couchdb.plist
55    system "cd ${destroot}/Library/LaunchDaemons && ln -sf ${prefix}/Library/LaunchDaemons/${plist}"
56# the following patches can be removed after next version
57    reinplace "s;`/opt/local/bin/icu-config --invoke`;;" ${destroot}/${prefix}/bin/couchdb
58    reinplace "s;^.*DYLD_LIBRARY_PATH.*$;;g" ${destroot}/${prefix}/Library/LaunchDaemons/org.apache.couchdb.plist
59}
60
61post-activate {
62    ui_msg "########################################################################"
63    ui_msg "# Run the following command to install the CouchDB launchd"
64    ui_msg "# startup item in order to start and re-start service automatically:"
65    ui_msg "#"
66    ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist"
67    ui_msg "########################################################################"
68}
69
70livecheck.type  regex
71livecheck.url   http://couchdb.apache.org/downloads.html
72livecheck.regex apache-${name}-(\[0-9.\]+\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.