Ticket #37702: couchdb.37702.1.patch
File couchdb.37702.1.patch, 5.3 KB (added by jeff@…, 12 years ago) |
---|
-
Portfile
1 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 2 2 # $Id$ 3 3 4 PortSystem 1.05 PortGroup active_variants 1.14 PortSystem 1.0 5 PortGroup active_variants 1.1 6 6 7 name couchdb 8 conflicts couchdb-devel 9 version 1.2.1 10 revision 2 11 categories databases 12 platforms darwin 13 license Apache-2 7 name couchdb 8 conflicts couchdb-devel 9 version 1.2.1 10 revision 2 14 11 15 description CouchDB is a document database server 16 maintainers jsnider.net:jeff \ 17 openmaintainer 18 long_description ${description} with a restful HTTP API, capable of \ 19 storing arbitrary JSON documents, building powerful data views, \ 20 defined in JavaScript, and processed in parallel using Map/Reduce. \ 21 It leaves out SQL and transactions for simplicity's sake, to \ 22 improve scalability and to relax users' lives. 12 categories databases 13 platforms darwin 23 14 24 homepage http://couchdb.apache.org/ 25 master_sites apache 15 description CouchDB is a document database server 16 maintainers jsnider.net:jeff \ 17 openmaintainer 18 long_description ${description} with a restful HTTP API, capable of \ 19 storing arbitrary JSON documents, building powerful data views, \ 20 defined in JavaScript, and processed in parallel using Map/Reduce. \ 21 It leaves out SQL and transactions for simplicity's sake, to \ 22 improve scalability and to relax users' lives. 23 homepage http://couchdb.apache.org/ 24 license Apache-2 25 26 master_sites apache 26 27 master_sites.mirror_subdir ${name}/${version}/ 27 distname apache-${name}-${version}28 distname apache-${name}-${version} 28 29 29 checksums rmd160 b89604089565c1f909046329c7e9d5faf84f036f \30 sha256 b54e643f3ca5f046cfd2f329a001efeaae8a3094365fa6c1cb5dcf68c1b25ccd30 checksums rmd160 b89604089565c1f909046329c7e9d5faf84f036f \ 31 sha256 b54e643f3ca5f046cfd2f329a001efeaae8a3094365fa6c1cb5dcf68c1b25ccd 31 32 32 depends_lib port:automake \33 port:autoconf \34 port:libtool \35 port:help2man \36 port:icu \37 port:spidermonkey \38 port:erlang33 depends_lib port:automake \ 34 port:autoconf \ 35 port:libtool \ 36 port:help2man \ 37 port:icu \ 38 port:spidermonkey \ 39 port:erlang 39 40 40 41 # erlang is not universal 41 universal_variant no42 universal_variant no 42 43 43 patchfiles patch-configure.diff \44 patch-etc-launchd-org.apache.couchdb.plist.tpl.in.diff \45 patch-src-couchdb-priv-Makefile.in.diff \46 patch-parameterized-modules-r16b-bug.38395.patch44 patchfiles patch-configure.diff \ 45 patch-etc-launchd-org.apache.couchdb.plist.tpl.in.diff \ 46 patch-src-couchdb-priv-Makefile.in.diff \ 47 patch-parameterized-modules-r16b-bug.38395.patch 47 48 48 49 require_active_variants erlang ssl 49 50 50 configure.args --with-js-include=${prefix}/include/js \51 --with-erlang=${prefix}/lib/erlang/usr/include \52 --enable-js-trunk51 configure.args --with-js-include=${prefix}/include/js \ 52 --with-erlang=${prefix}/lib/erlang/usr/include \ 53 --enable-js-trunk 53 54 54 set dbgroup couchdb55 set dbuser couchdb56 set logdir ${prefix}/var/log/couchdb57 set dbdir ${prefix}/var/lib/couchdb58 set confdir ${prefix}/etc/couchdb59 set rundir ${prefix}/var/run/couchdb60 set plistdir /Library/LaunchDaemons61 startupitem.uniquename org.apache.couchdb62 set plist ${startupitem.uniquename}.plist55 set dbgroup couchdb 56 set dbuser couchdb 57 set logdir ${prefix}/var/log/couchdb 58 set dbdir ${prefix}/var/lib/couchdb 59 set confdir ${prefix}/etc/couchdb 60 set rundir ${prefix}/var/run/couchdb 61 set plistdir /Library/LaunchDaemons 62 startupitem.uniquename org.apache.couchdb 63 set plist ${startupitem.uniquename}.plist 63 64 64 add_users ${dbuser} group=${dbgroup}65 add_users ${dbuser} group=${dbgroup} 65 66 66 67 post-destroot { 67 68 move ${destroot}${confdir}/local.ini ${destroot}${confdir}/local.ini.sample … … 83 84 } 84 85 } 85 86 87 86 88 notes " 87 89 Run the following command to load the CouchDB launchd plist\ 88 90 in order to start the service now and at system startup: 89 91 90 sudo launchctl load -w ${plistdir}/${plist}92 sudo port load couchdb 91 93 " 92 94 93 livecheck.type regex 94 livecheck.url http://couchdb.apache.org/downloads.html 95 livecheck.regex apache-${name}-(\[0-9.\]+\[0-9\]+) 95 livecheck.type regex 96 livecheck.url http://couchdb.apache.org/downloads.html 97 livecheck.regex apache-${name}-(\[0-9.\]+\[0-9\]+) 98 99