Ticket #16947: patch-couchdb_Portfile.diff
File patch-couchdb_Portfile.diff, 2.3 KB (added by febeling@…, 16 years ago) |
---|
-
databases/couchdb/Portfile
4 4 5 5 name couchdb 6 6 version 0.8.1 7 revision 1 7 8 8 9 categories databases 9 10 platforms darwin … … 12 13 maintainers jwa 13 14 long_description ${description} 14 15 15 homepage http:// incubator.apache.org/couchdb/16 homepage http://couchdb.apache.org/ 16 17 master_sites apache 17 18 master_sites.mirror_subdir incubator/${name}/${version}-incubating/ 18 19 distname apache-${name}-${version}-incubating … … 32 33 set dbuser couchdb 33 34 set logdir ${prefix}/var/log/couchdb 34 35 set dbdir ${prefix}/var/lib/couchdb 35 set piddir ${prefix}/var/run/36 set plistloc ${prefix}/etc/LaunchDaemons/org.macports.CouchDB37 36 38 variant server description {adds a startup item}{37 pre-destroot { 39 38 addgroup ${dbgroup} 40 39 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} 48 46 } 49 47 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 71 48 livecheck.check regex 72 49 livecheck.url http://incubator.apache.org/couchdb/downloads.html 73 50 livecheck.regex apache-${name}-(0.\[0-9\].\[0-9\])