source: trunk/dports/databases/couchdb-devel/Portfile @ 47693

Last change on this file since 47693 was 47693, checked in by febeling@…, 11 years ago

databases/couchdb-devel: Fix logging, provide plist in LaunchDaemons.

  • use forground process controlled by launchd/upsteam plist
  • add stdout and stderr log file locations into plist
  • make bin/couchdb honour stdout and stderr path options
  • symlink plist into system location
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 47693 2009-03-03 22:47:23Z febeling@macports.org $
2
3PortSystem 1.0
4
5name                couchdb-devel
6version             0.9.0a-incubating
7revision            2
8
9categories          databases
10platforms           darwin
11
12description         couchdb is a document database server
13maintainers         jwa febeling
14long_description    ${description}
15homepage            http://couchdb.apache.org/
16master_sites        ${homepage}
17checksums           sha1 bf6506dd200ea18ea1331391da7aaece1188208d
18
19distname            couchdb-${version}
20fetch.type          svn
21svn.url             http://svn.apache.org/repos/asf/couchdb/trunk
22svn.tag         719015
23worksrcdir          trunk
24
25depends_lib     port:automake \
26    port:autoconf \
27    port:libtool \
28    port:help2man \
29    port:icu \
30    port:spidermonkey \
31    port:erlang
32
33patchfiles      patch-plist_stdout_stderr.diff
34
35pre-configure {
36    system "cd ${worksrcpath}; ./bootstrap"
37}
38
39set dbgroup couchdb
40set dbuser couchdb
41set logdir ${prefix}/var/log/couchdb
42set dbdir ${prefix}/var/lib/couchdb
43set plistdir /Library/LaunchDaemons
44
45post-destroot {
46    addgroup ${dbgroup}
47    adduser ${dbuser} gid=[existsgroup ${dbgroup}]
48    xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
49        ${destroot}${dbdir} \
50        ${destroot}${logdir} \
51        ${destroot}${plistdir}
52    destroot.keepdirs-append \
53        ${destroot}${dbdir} \
54        ${destroot}${logdir}
55    set plist org.apache.couchdb.plist
56    ln -sf ${destroot}${prefix}${plistdir}${plist} \
57        ${destroot}${plistdir}/${plist}
58}
59
60livecheck.check regex
61livecheck.url   http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/
62livecheck.version       ${svn.tag}
63livecheck.regex  (\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.