Ticket #31820: couchdb-keep-local-ini.patch
File couchdb-keep-local-ini.patch, 1.1 KB (added by jeff-macports@…, 13 years ago) |
---|
-
Portfile
old new 55 55 set dbuser couchdb 56 56 set logdir ${prefix}/var/log/couchdb 57 57 set dbdir ${prefix}/var/lib/couchdb 58 set confdir ${prefix}/etc/couchdb 58 59 set rundir ${prefix}/var/run/couchdb 59 60 set plistdir /Library/LaunchDaemons 60 61 startupitem.uniquename org.apache.couchdb … … 63 64 post-destroot { 64 65 addgroup ${dbgroup} 65 66 adduser ${dbuser} gid=[existsgroup ${dbgroup}] 67 move ${destroot}${confdir}/local.ini ${destroot}${confdir}/local.ini.sample 66 68 xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \ 67 69 ${destroot}${dbdir} \ 68 70 ${destroot}${logdir} \ … … 79 81 } 80 82 81 83 post-activate { 84 if {![file exists ${confdir}/local.ini]} { 85 xinstall -m 640 -o ${dbuser} -g ${dbgroup} ${confdir}/local.ini.sample ${confdir}/local.ini 86 } 82 87 ui_msg "########################################################################" 83 88 ui_msg "# Run the following command to install the CouchDB launchd" 84 89 ui_msg "# startup item in order to start and re-start service automatically:"