diff -ruN /Users/jeff/couchdb-devel-37641/Portfile ./Portfile
old
|
new
|
|
7 | 7 | name couchdb-devel |
8 | 8 | conflicts couchdb |
9 | 9 | version 1.4.0a-20130112 |
| 10 | revision 1 |
10 | 11 | |
11 | 12 | categories databases |
12 | 13 | platforms darwin |
… |
… |
|
50 | 51 | system "cd ${worksrcpath}; ./bootstrap" |
51 | 52 | } |
52 | 53 | |
| 54 | configure.args --with-js-include=${prefix}/include/js \ |
| 55 | --with-erlang=${prefix}/lib/erlang/usr/include \ |
| 56 | --enable-js-trunk |
| 57 | |
53 | 58 | set dbgroup couchdb |
54 | 59 | set dbuser couchdb |
55 | 60 | set logdir ${prefix}/var/log/couchdb |
56 | 61 | set dbdir ${prefix}/var/lib/couchdb |
| 62 | set confdir ${prefix}/etc/couchdb |
| 63 | set rundir ${prefix}/var/run/couchdb |
57 | 64 | set plistdir /Library/LaunchDaemons |
58 | 65 | startupitem.uniquename org.apache.couchdb |
59 | 66 | set plist ${startupitem.uniquename}.plist |
60 | 67 | |
| 68 | add_users ${dbuser} group=${dbgroup} |
| 69 | |
61 | 70 | post-destroot { |
62 | | addgroup ${dbgroup} |
63 | | adduser ${dbuser} gid=[existsgroup ${dbgroup}] |
| 71 | move ${destroot}${confdir}/local.ini ${destroot}${confdir}/local.ini.sample |
64 | 72 | xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \ |
65 | 73 | ${destroot}${dbdir} \ |
66 | 74 | ${destroot}${logdir} \ |
67 | | ${destroot}${plistdir} |
| 75 | ${destroot}${plistdir} \ |
| 76 | ${destroot}${rundir} |
68 | 77 | destroot.keepdirs-append \ |
69 | 78 | ${destroot}${dbdir} \ |
70 | | ${destroot}${logdir} |
| 79 | ${destroot}${logdir} \ |
| 80 | ${destroot}${rundir} |
71 | 81 | system "cd ${destroot}${plistdir} && ln -sf ${prefix}${plistdir}/${plist}" |
72 | 82 | } |
73 | 83 | |
| 84 | post-activate { |
| 85 | if {![file exists ${confdir}/local.ini]} { |
| 86 | xinstall -m 640 -o ${dbuser} -g ${dbgroup} ${confdir}/local.ini.sample ${confdir}/local.ini |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | |
74 | 91 | notes " |
75 | 92 | Changes in CouchDB r753448 make older database files incompatible.\ |
76 | 93 | See http://wiki.apache.org/couchdb/BreakingChanges for details. |