Changeset 32868


Ignore:
Timestamp:
Jan 14, 2008, 9:10:38 AM (12 years ago)
Author:
jwa@…
Message:

version bump to 0.7.3a, adding svn tag for proper reproducible fetch, merging improvements from current stable port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/couchdb-devel/Portfile

    r30491 r32868  
    44
    55name                couchdb-devel
    6 version             0.7.0a
     6version             0.7.3a
    77categories          databases
    88platforms           darwin
     
    1717fetch.type          svn
    1818svn.url             http://couchdb.googlecode.com/svn/trunk/
     19svn.tag         623
    1920worksrcdir          trunk
    2021
     
    2526    port:icu \
    2627    port:erlang
     28
     29set dbgroup couchdb
     30set dbuser couchdb
     31set logdir ${prefix}/var/log/couchdb
     32set dbdir ${prefix}/var/lib/couchdb
     33set piddir ${prefix}/var/run/
     34set plistloc ${prefix}/etc/LaunchDaemons/org.macports.CouchDB
    2735
    2836pre-configure {
     
    3543
    3644variant server {
    37     set logdir ${prefix}/var/log
     45    addgroup ${dbgroup}
     46    adduser ${dbuser} gid=[existsgroup ${dbgroup}]
     47
    3848    startupitem.create  yes
    3949    startupitem.type    launchd
     
    4353}
    4454
     55pre-destroot {
     56    if { [variant_isset server] } {
     57        xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
     58            ${destroot}${dbdir} \
     59            ${destroot}${logdir} \
     60            ${destroot}${piddir}
     61        destroot.keepdirs-append \
     62            ${destroot}${dbdir} \
     63            ${destroot}${logdir} \
     64            ${destroot}${piddir}
     65    }
     66}
     67
     68pre-install {
     69    if { [variant_isset server] } {
     70        system "touch ${destroot}${piddir}/couchdb.pid"
     71        system "chown -R ${dbuser}:${dbgroup} ${destroot}${dbdir} ${destroot}${logdir} ${destroot}${piddir}/couchdb.pid"
     72        system "cd ${destroot}${plistloc}; patch <${filespath}/patch-org.macports.CouchDB.plist"
     73    }
     74}
     75
    4576livecheck.check moddate
    4677livecheck.url   http://couchdb.googlecode.com/svn/trunk
Note: See TracChangeset for help on using the changeset viewer.