Ticket #16947: patch-couchdb_Portfile.diff

File patch-couchdb_Portfile.diff, 2.3 KB (added by febeling@…, 16 years ago)
  • databases/couchdb/Portfile

     
    44
    55name            couchdb
    66version         0.8.1
     7revision        1
    78
    89categories      databases
    910platforms       darwin
     
    1213maintainers     jwa
    1314long_description        ${description}
    1415
    15 homepage        http://incubator.apache.org/couchdb/
     16homepage        http://couchdb.apache.org/
    1617master_sites    apache
    1718master_sites.mirror_subdir      incubator/${name}/${version}-incubating/
    1819distname        apache-${name}-${version}-incubating
     
    3233set dbuser couchdb
    3334set logdir ${prefix}/var/log/couchdb
    3435set dbdir ${prefix}/var/lib/couchdb
    35 set piddir ${prefix}/var/run/
    36 set plistloc ${prefix}/etc/LaunchDaemons/org.macports.CouchDB
    3736
    38 variant server description {adds a startup item} {
     37pre-destroot {
    3938    addgroup ${dbgroup}
    4039    adduser ${dbuser} gid=[existsgroup ${dbgroup}]
    41 
    42     startupitem.create  yes
    43     startupitem.type    launchd
    44     startupitem.name    CouchDB
    45 #    startupitem.start  "\$\(${prefix}/bin/icu-config --invoke\) ${prefix}/bin/couchdb -b -o ${logdir}/couchdb.stdout -e ${logdir}/couchdb.stderr"
    46     startupitem.start   "${prefix}/bin/couchdb -b -o ${logdir}/couchdb.stdout -e ${logdir}/couchdb.stderr"
    47     startupitem.stop    "${prefix}/bin/couchdb -d"
     40    xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
     41        ${destroot}${dbdir} \
     42        ${destroot}${logdir}
     43    destroot.keepdirs-append \
     44        ${destroot}${dbdir} \
     45        ${destroot}${logdir}
    4846}
    4947
    50 pre-destroot {
    51     if { [variant_isset server] } {
    52         xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
    53             ${destroot}${dbdir} \
    54             ${destroot}${logdir} \
    55             ${destroot}${piddir}
    56         destroot.keepdirs-append \
    57             ${destroot}${dbdir} \
    58             ${destroot}${logdir} \
    59             ${destroot}${piddir}
    60     }
    61 }
    62 
    63 pre-install {
    64     if { [variant_isset server] } {
    65         system "touch ${destroot}${piddir}/couchdb.pid"
    66         system "chown -R ${dbuser}:${dbgroup} ${destroot}${dbdir} ${destroot}${logdir} ${destroot}${piddir}/couchdb.pid"
    67         system "cd ${destroot}${plistloc}; patch <${filespath}/patch-org.macports.CouchDB.plist.diff"
    68     }
    69 }
    70 
    7148livecheck.check regex
    7249livecheck.url   http://incubator.apache.org/couchdb/downloads.html
    7350livecheck.regex apache-${name}-(0.\[0-9\].\[0-9\])