#40360: couchdb can't install into userdir ----------------------+-------------------------------- Reporter: mtb19@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: | ----------------------+-------------------------------- Comment (by mtb19@…): Actually, I take it back. This is bad: {{{ ... set plistdir ${prefix}/Library/LaunchDaemons ... }}} It overwrites the `.plist` file and instead creates a soft link from `[__MACPORTS_ROOT__]/Library/LaunchDaemons/org.apache.couchdb.plist` to itself (which is not what we want). This is better (but incomplete): {{{ --- [__MACPORTS_ROOT__]/var/macports/sources/rsync.macports.org/release/tarballs/ports/databases/couchdb/Portfile.orig 2013-07-15 09:03:12.000000000 -0700 +++ [__MACPORTS_ROOT__]/var/macports/sources/rsync.macports.org/release/tarballs/ports/databases/couchdb/Portfile 2013-09-02 21:50:49.000000000 -0700 @@ -51,8 +51,8 @@ --with-erlang=${prefix}/lib/erlang/usr/include \ --enable-js-trunk -set dbgroup couchdb -set dbuser couchdb +set dbgroup matt +set dbuser matt set logdir ${prefix}/var/log/couchdb set dbdir ${prefix}/var/lib/couchdb set confdir ${prefix}/etc/couchdb @@ -74,7 +74,7 @@ ${destroot}${dbdir} \ ${destroot}${logdir} \ ${destroot}${rundir} - system "cd ${destroot}${plistdir} && ln -sf ${prefix}${plistdir}/${plist}" + #system "cd ${destroot}${plistdir} && ln -sf ${prefix}${plistdir}/${plist}" } post-activate { }}} This allows creation of `[__MACPORTS_ROOT__]/Library/LaunchDaemons/org.apache.couchdb.plist` but does not link it to (e.g.) `${HOME}/Library/LaunchDaemons`, as it probably should for non-root installs. (See `.../devel/dbus/Portfile` as a decent example of supporting `+no_root` with LaunchDaemons.) -- Ticket URL: <https://trac.macports.org/ticket/40360#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X