ticket#25375 couchdb (rookie here)
Daniel Terreros
daniel.terreros at gmail.com
Fri Jul 2 17:58:35 PDT 2010
If anyone stumbles across this thread I wanted to give a step by step rookie
translation into getting this port to work. everyone has been so awesome to
help me and those like me
[After the fix its still missing default.d and local.d so maybe this keeps
it from being a dupe xD]
So for anyone who comes here from now on here is the step by step in pure
rookie terms to get couchdb up and running (assuming you are using the
default set up in your config file using "rsync.macports.org')
Follow this file path to where you need to make your changes
/opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/couchdb
Open the Portfile and add one line of code
patchfiles patch-src-couchdb-couch_app.erl.diff
create a new file called "files" (no quotation marks)
in the "files" folder create a file named
"patch-src-couchdb-couch_app.erl.diff" which contains this code:
Index: src/couchdb/couch_app.erl
===================================================================
--- src/couchdb/couch_app.erl (revision 955834)
+++ src/couchdb/couch_app.erl (working copy)
@@ -20,7 +20,7 @@
start(_Type, DefaultIniFiles) ->
IniFiles = get_ini_files(DefaultIniFiles),
- case start_apps([crypto, sasl, inets, oauth, ssl, ibrowse, mochiweb]) of
+ case start_apps([crypto, public_key, sasl, inets, oauth, ssl,
ibrowse, mochiweb]) of
ok ->
couch_server_sup:start_link(IniFiles);
{error, Reason} ->
then
sudo port install couchdb
And it is time to relax
[final portfile should look something like this]
# $Id$
PortSystem 1.0
name couchdb
version 0.11.0
categories databases
platforms darwin
description CouchDB is a document database server
maintainers jwa
long_description ${description} with a restful HTTP API, capable of \
storing arbitrary JSON documents, building powerful data views, \
defined in JavaScript, and processed in parallel using Map/Reduce. \
It leaves out SQL and transactions for simplicity's sake, to \
improve scalability and to relax users' lives.
homepage http://couchdb.apache.org/
master_sites apache
master_sites.mirror_subdir ${name}/${version}/
distname apache-${name}-${version}
checksums md5 c1784e3850da01dc37dad20c5b1a85f8 \
sha1 b5b84e1d8a082960df09df7e4eda664b5e6c59d7 \
rmd160 cd52e0f41a67b1cba9792e2ac11c74cad5c6a1a9
depends_lib port:automake \
port:autoconf \
port:libtool \
port:help2man \
port:icu \
port:spidermonkey \
port:curl \
port:erlang
set dbgroup couchdb
set dbuser couchdb
set logdir ${prefix}/var/log/couchdb
set dbdir ${prefix}/var/lib/couchdb
set plistdir /Library/LaunchDaemons
startupitem.uniquename org.apache.couchdb
post-destroot {
addgroup ${dbgroup}
adduser ${dbuser} gid=[existsgroup ${dbgroup}]
xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
${destroot}${dbdir} \
${destroot}${logdir} \
${destroot}${plistdir}
destroot.keepdirs-append \
${destroot}${dbdir} \
${destroot}${logdir}
set plist org.apache.couchdb.plist
system "cd ${destroot}/Library/LaunchDaemons && ln -sf
${prefix}/Library/LaunchDaemons/${plist}"
# the following patches can be removed after next version
reinplace "s;`/opt/local/bin/icu-config --invoke`;;"
${destroot}/${prefix}/bin/couchdb
reinplace "s;^.*DYLD_LIBRARY_PATH.*$;;g"
${destroot}/${prefix}/Library/LaunchDaemons/org.apache.couchdb.plist
}
patchfiles patch-src-couchdb-couch_app.erl.diff
post-activate {
ui_msg "########################################################################"
ui_msg "# Changes in CouchDB 0.10.0 make 0.9.1 database files incompatible."
ui_msg "# See http://wiki.apache.org/couchdb/BreakingChanges for details"
ui_msg "#"
ui_msg "# Run the following command to install the CouchDB launchd"
ui_msg "# startup item in order to start and re-start service
automatically:"
ui_msg "#"
ui_msg "# sudo launchctl load -w
/Library/LaunchDaemons/org.apache.couchdb.plist"
ui_msg "########################################################################"
}
livecheck.type regex
livecheck.url http://couchdb.apache.org/downloads.html
livecheck.regex apache-${name}-(0.\[0-9\]+.\[0-9\])
On Fri, Jun 25, 2010 at 10:50 AM, Jeff Singleton <gvibe06 at gmail.com> wrote:
> I think the overwhelming response will be...stretch, crack yer knuckles,
> and dive right in. I'm not a dev, but have submitted my share of bugs to
> trac. Most end up hitting that dreaded duplicate issue, despite my
> searching. I rarely can contribute code fixes, but sometimes can suggest
> work arounds.
>
> Personally, I welcome anyone willing to take on the task of port
> maintaining. Picking those that are most interesting to you means that the
> quality will probably be enhanced...and if there are dependencies to that
> chosen port, maybe those will get some fixes too.
>
> Good luck ... and Thank-you!
>
> On Fri, Jun 25, 2010 at 1:34 PM, Daniel Terreros <
> daniel.terreros at gmail.com> wrote:
>
>> Yo,
>>
>> So I'm the dude that submitted ticket #25375 and it appears that it may be
>> a duplicate(not ready to admit to that just yet :). The prevailing thought
>> is that this patch needs to be applied and couchdb on macports will be back
>> up and running again.
>>
>> So I ask
>>
>>
>> How can I help? What should I do? I'd be happy to do it. I'm looking to
>> contribute back to the community that has made my venture into development
>> so easy, and couchdb is my favorite. How can I take the couchdb source .12
>> (or the patched version) and get it to macports ? I read the dev section of
>> the manual, so I just follow that step by step? I'm all for getting my hands
>> dirty to learn.
>>
>> Good times and thanks in advance
>>
>> Danny
>> _______________________________________________
>> macports-users mailing list
>> macports-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>>
>>
> Your HTML signature here
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100702/7b39216b/attachment.html>
More information about the macports-users
mailing list