summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2010-09-21 12:11:39 +0000
committerfhajny <fhajny@pkgsrc.org>2010-09-21 12:11:39 +0000
commit9adbbc12fe9be58b97a86e0f1946e0e5180f59ce (patch)
tree8a3718f6e6b332e3b3321bec41bcbc61ee7c91a2 /databases
parentaa511e4ab0be7426d4cdb3d697099e28f4ab8800 (diff)
downloadpkgsrc-9adbbc12fe9be58b97a86e0f1946e0e5180f59ce.tar.gz
Import couchdb-1.0.1 as databases/couchdb.
Apache CouchDB is a distributed, fault-tolerant and schema-free document- oriented database accessible via a RESTful HTTP/JSON API. Among other features, it provides robust, incremental replication with bi-directional conflict detection and resolution, and is queryable and indexable using a table-oriented view engine with JavaScript acting as the default view definition language. CouchDB is written in Erlang, but can be easily accessed from any environment that provides means to make HTTP requests. There are a multitude of third-party client libraries that make this even easier for a variety of programming languages and environments. (Based on wip/couchdb.)
Diffstat (limited to 'databases')
-rw-r--r--databases/couchdb/DESCR11
-rw-r--r--databases/couchdb/Makefile87
-rw-r--r--databases/couchdb/PLIST284
-rw-r--r--databases/couchdb/distinfo8
-rw-r--r--databases/couchdb/patches/patch-aa48
-rw-r--r--databases/couchdb/patches/patch-ab91
-rw-r--r--databases/couchdb/patches/patch-ac34
7 files changed, 563 insertions, 0 deletions
diff --git a/databases/couchdb/DESCR b/databases/couchdb/DESCR
new file mode 100644
index 00000000000..21820e12cc7
--- /dev/null
+++ b/databases/couchdb/DESCR
@@ -0,0 +1,11 @@
+Apache CouchDB is a distributed, fault-tolerant and schema-free document-
+oriented database accessible via a RESTful HTTP/JSON API. Among other
+features, it provides robust, incremental replication with bi-directional
+conflict detection and resolution, and is queryable and indexable using
+a table-oriented view engine with JavaScript acting as the default view
+definition language.
+
+CouchDB is written in Erlang, but can be easily accessed from any
+environment that provides means to make HTTP requests. There are
+a multitude of third-party client libraries that make this even easier
+for a variety of programming languages and environments.
diff --git a/databases/couchdb/Makefile b/databases/couchdb/Makefile
new file mode 100644
index 00000000000..541a4eb1bd5
--- /dev/null
+++ b/databases/couchdb/Makefile
@@ -0,0 +1,87 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/09/21 12:11:39 fhajny Exp $
+#
+
+DISTNAME= apache-couchdb-1.0.1
+PKGNAME= ${DISTNAME:S/apache-//}
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_APACHE:=couchdb/1.0.1/}
+
+MAINTAINER= filip@joyent.com
+HOMEPAGE= http://couchdb.apache.org/
+COMMENT= Document database server, accessible via a RESTful JSON API
+LICENSE= apache-2.0
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+VERSION.ibrowse= 1.5.2
+VERSION.mochiweb= r113
+
+GNU_CONFIGURE= yes
+USE_LANGUAGES+= c c++
+USE_TOOLS+= gmake
+USE_LIBTOOL= yes
+BUILD_DEFS+= VARBASE
+
+BUILD_DEPENDS+= help2man-[0-9]*:../../converters/help2man
+
+.include "../../mk/bsd.prefs.mk"
+
+COUCH_DBDIR?= ${VARBASE}/db/couchdb
+COUCH_EGDIR= ${PREFIX}/share/examples/couchdb
+COUCH_LOGDIR?= ${VARBASE}/log/couchdb
+COUCH_USER?= couchdb
+COUCH_GROUP?= ${COUCH_USER}
+
+PKG_GROUPS+= ${COUCH_GROUP}
+PKG_USERS+= ${COUCH_USER}:${COUCH_GROUP}
+PKG_GECOS.${COUCH_USER}=CouchDB Server User
+PKG_HOME.${COUCH_USER}= ${COUCH_DBDIR}
+PKG_SHELL.${COUCH_USER}=${COMMAND_SHELL}
+
+# Solaris /var/run is root only
+.if ${OPSYS} == "SunOS"
+COUCH_RUNDIR?= ${VARBASE}/spool/couchdb
+.else
+COUCH_RUNDIR?= ${VARBASE}/run/couchdb
+.endif
+
+OWN_DIRS= ${COUCH_LOGDIR} ${COUCH_DBDIR} ${COUCH_RUNDIR} ${PKG_SYSCONFDIR}
+OWN_DIRS_PERMS+= ${COUCH_DBDIR} ${COUCH_USER} ${COUCH_GROUP} 0770
+OWN_DIRS_PERMS+= ${COUCH_LOGDIR} ${COUCH_USER} ${COUCH_GROUP} 0770
+OWN_DIRS_PERMS+= ${COUCH_RUNDIR} ${COUCH_USER} ${COUCH_GROUP} 0770
+
+PKG_SYSCONFSUBDIR= couchdb
+PKG_SYSCONFDIR_PERMS= ${COUCH_USER} ${COUCH_GROUP} 0775
+CONF_FILES_PERMS+= ${COUCH_EGDIR}/default.ini ${PKG_SYSCONFDIR}/default.ini ${COUCH_USER} ${COUCH_GROUP} 0660
+CONF_FILES_PERMS+= ${COUCH_EGDIR}/local.ini ${PKG_SYSCONFDIR}/local.ini ${COUCH_USER} ${COUCH_GROUP} 0660
+
+CONFIGURE_ARGS+= --disable-init
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+CONFIGURE_ARGS+= --with-erlang=${BUILDLINK_PREFIX.erlang}/lib/erlang/usr/include
+CONFIGURE_ARGS+= --with-js-include=${BUILDLINK_PREFIX.spidermonkey}
+CONFIGURE_ARGS+= --with-js-lib=${BUILDLINK_PREFIX.spidermonkey}
+
+.if ${OPSYS} == "SunOS"
+REPLACE_INTERPRETER+= sh
+REPLACE.sh.old= /bin/sh
+REPLACE.sh.new= /bin/ksh
+REPLACE_FILES.sh= bin/couchdb.tpl.in bin/couchjs.tpl.in
+.endif
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= Setting standard paths
+SUBST_STAGE.paths= post-patch
+SUBST_FILES.paths+= configure
+SUBST_SED.paths= -e 's,@EGDIR@,${COUCH_EGDIR},g'
+SUBST_SED.paths+= -e 's,@RUNDIR@,${COUCH_RUNDIR},g'
+SUBST_SED.paths+= -e 's,@ERLANG_PREFIX@,${BUILDLINK_PREFIX.erlang},g'
+
+PLIST_SUBST+= VERSION.ibrowse=${VERSION.ibrowse}
+PLIST_SUBST+= VERSION.mochiweb=${VERSION.mochiweb}
+
+.include "../../lang/erlang/buildlink3.mk"
+.include "../../lang/spidermonkey/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/couchdb/PLIST b/databases/couchdb/PLIST
new file mode 100644
index 00000000000..1a1c7d627cc
--- /dev/null
+++ b/databases/couchdb/PLIST
@@ -0,0 +1,284 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/21 12:11:39 fhajny Exp $
+bin/couchdb
+bin/couchjs
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch.app
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_app.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_auth_cache.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_btree.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_changes.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_config.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_config_writer.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_db.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_db_update_notifier.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_db_update_notifier_sup.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_db_updater.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_doc.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_event_sup.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_external_manager.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_external_server.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_file.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_httpd.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_httpd_auth.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_httpd_db.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_httpd_external.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_httpd_misc_handlers.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_httpd_oauth.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_httpd_rewrite.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_httpd_show.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_httpd_stats_handlers.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_httpd_view.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_key_tree.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_log.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_native_process.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_os_process.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_query_servers.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_ref_counter.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_rep.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_rep_att.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_rep_changes_feed.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_rep_httpc.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_rep_missing_revs.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_rep_reader.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_rep_sup.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_rep_writer.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_server.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_server_sup.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_stats_aggregator.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_stats_collector.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_stream.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_task_status.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_util.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_uuids.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_view.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_view_compactor.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_view_group.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_view_updater.beam
+lib/erlang/lib/couch-${PKGVERSION}/ebin/couch_work_queue.beam
+lib/erlang/lib/couch-${PKGVERSION}/include/couch_db.hrl
+lib/erlang/lib/couch-${PKGVERSION}/include/couch_js_functions.hrl
+lib/erlang/lib/couch-${PKGVERSION}/priv/couchspawnkillable
+lib/erlang/lib/couch-${PKGVERSION}/priv/lib/couch_icu_driver.la
+lib/erlang/lib/couch-${PKGVERSION}/priv/stat_descriptions.cfg
+lib/erlang/lib/erlang-oauth/ebin/oauth.app
+lib/erlang/lib/erlang-oauth/ebin/oauth.beam
+lib/erlang/lib/erlang-oauth/ebin/oauth_hmac_sha1.beam
+lib/erlang/lib/erlang-oauth/ebin/oauth_http.beam
+lib/erlang/lib/erlang-oauth/ebin/oauth_plaintext.beam
+lib/erlang/lib/erlang-oauth/ebin/oauth_unix.beam
+lib/erlang/lib/erlang-oauth/ebin/oauth_uri.beam
+lib/erlang/lib/etap/ebin/etap.beam
+lib/erlang/lib/etap/ebin/etap_application.beam
+lib/erlang/lib/etap/ebin/etap_can.beam
+lib/erlang/lib/etap/ebin/etap_exception.beam
+lib/erlang/lib/etap/ebin/etap_process.beam
+lib/erlang/lib/etap/ebin/etap_report.beam
+lib/erlang/lib/etap/ebin/etap_request.beam
+lib/erlang/lib/etap/ebin/etap_string.beam
+lib/erlang/lib/etap/ebin/etap_web.beam
+lib/erlang/lib/ibrowse-${VERSION.ibrowse}/ebin/ibrowse.app
+lib/erlang/lib/ibrowse-${VERSION.ibrowse}/ebin/ibrowse.beam
+lib/erlang/lib/ibrowse-${VERSION.ibrowse}/ebin/ibrowse_app.beam
+lib/erlang/lib/ibrowse-${VERSION.ibrowse}/ebin/ibrowse_http_client.beam
+lib/erlang/lib/ibrowse-${VERSION.ibrowse}/ebin/ibrowse_lb.beam
+lib/erlang/lib/ibrowse-${VERSION.ibrowse}/ebin/ibrowse_lib.beam
+lib/erlang/lib/ibrowse-${VERSION.ibrowse}/ebin/ibrowse_sup.beam
+lib/erlang/lib/ibrowse-${VERSION.ibrowse}/ebin/ibrowse_test.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochifmt.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochifmt_records.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochifmt_std.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochihex.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochijson.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochijson2.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochinum.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb.app
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_app.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_charref.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_cookies.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_echo.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_headers.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_html.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_http.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_multipart.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_request.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_response.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_skel.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_socket_server.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_sup.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/mochiweb_util.beam
+lib/erlang/lib/mochiweb-${VERSION.mochiweb}/ebin/reloader.beam
+libexec/couchdb/couchjs
+man/man1/couchdb.1
+man/man1/couchjs.1
+share/couchdb/server/main.js
+share/couchdb/www/_sidebar.html
+share/couchdb/www/config.html
+share/couchdb/www/couch_tests.html
+share/couchdb/www/custom_test.html
+share/couchdb/www/database.html
+share/couchdb/www/dialog/_admin_party.html
+share/couchdb/www/dialog/_compact_cleanup.html
+share/couchdb/www/dialog/_create_admin.html
+share/couchdb/www/dialog/_create_config.html
+share/couchdb/www/dialog/_create_database.html
+share/couchdb/www/dialog/_database_security.html
+share/couchdb/www/dialog/_delete_database.html
+share/couchdb/www/dialog/_delete_document.html
+share/couchdb/www/dialog/_login.html
+share/couchdb/www/dialog/_save_view_as.html
+share/couchdb/www/dialog/_share_test_reports.html
+share/couchdb/www/dialog/_signup.html
+share/couchdb/www/dialog/_upload_attachment.html
+share/couchdb/www/document.html
+share/couchdb/www/favicon.ico
+share/couchdb/www/image/add.png
+share/couchdb/www/image/apply.gif
+share/couchdb/www/image/bg.png
+share/couchdb/www/image/cancel.gif
+share/couchdb/www/image/compact.png
+share/couchdb/www/image/delete-mini.png
+share/couchdb/www/image/delete.png
+share/couchdb/www/image/grippie.gif
+share/couchdb/www/image/hgrad.gif
+share/couchdb/www/image/key.png
+share/couchdb/www/image/load.png
+share/couchdb/www/image/logo.png
+share/couchdb/www/image/order-asc.gif
+share/couchdb/www/image/order-desc.gif
+share/couchdb/www/image/path.gif
+share/couchdb/www/image/progress.gif
+share/couchdb/www/image/rarrow.png
+share/couchdb/www/image/run-mini.png
+share/couchdb/www/image/run.png
+share/couchdb/www/image/running.png
+share/couchdb/www/image/save.png
+share/couchdb/www/image/sidebar-toggle.png
+share/couchdb/www/image/spinner.gif
+share/couchdb/www/image/test_failure.gif
+share/couchdb/www/image/test_success.gif
+share/couchdb/www/image/thead-key.gif
+share/couchdb/www/image/thead.gif
+share/couchdb/www/image/toggle-collapse.gif
+share/couchdb/www/image/toggle-expand.gif
+share/couchdb/www/image/twisty.gif
+share/couchdb/www/index.html
+share/couchdb/www/replicator.html
+share/couchdb/www/script/base64.js
+share/couchdb/www/script/couch.js
+share/couchdb/www/script/couch_test_runner.js
+share/couchdb/www/script/couch_tests.js
+share/couchdb/www/script/futon.browse.js
+share/couchdb/www/script/futon.format.js
+share/couchdb/www/script/futon.js
+share/couchdb/www/script/jquery.couch.js
+share/couchdb/www/script/jquery.dialog.js
+share/couchdb/www/script/jquery.editinline.js
+share/couchdb/www/script/jquery.form.js
+share/couchdb/www/script/jquery.js
+share/couchdb/www/script/jquery.resizer.js
+share/couchdb/www/script/jquery.suggest.js
+share/couchdb/www/script/json2.js
+share/couchdb/www/script/jspec/jspec.css
+share/couchdb/www/script/jspec/jspec.jquery.js
+share/couchdb/www/script/jspec/jspec.js
+share/couchdb/www/script/jspec/jspec.xhr.js
+share/couchdb/www/script/oauth.js
+share/couchdb/www/script/sha1.js
+share/couchdb/www/script/test/all_docs.js
+share/couchdb/www/script/test/attachment_names.js
+share/couchdb/www/script/test/attachment_paths.js
+share/couchdb/www/script/test/attachment_views.js
+share/couchdb/www/script/test/attachments.js
+share/couchdb/www/script/test/attachments_multipart.js
+share/couchdb/www/script/test/auth_cache.js
+share/couchdb/www/script/test/basics.js
+share/couchdb/www/script/test/batch_save.js
+share/couchdb/www/script/test/bulk_docs.js
+share/couchdb/www/script/test/changes.js
+share/couchdb/www/script/test/compact.js
+share/couchdb/www/script/test/config.js
+share/couchdb/www/script/test/conflicts.js
+share/couchdb/www/script/test/content_negotiation.js
+share/couchdb/www/script/test/cookie_auth.js
+share/couchdb/www/script/test/copy_doc.js
+share/couchdb/www/script/test/delayed_commits.js
+share/couchdb/www/script/test/design_docs.js
+share/couchdb/www/script/test/design_options.js
+share/couchdb/www/script/test/design_paths.js
+share/couchdb/www/script/test/erlang_views.js
+share/couchdb/www/script/test/etags_head.js
+share/couchdb/www/script/test/etags_views.js
+share/couchdb/www/script/test/form_submit.js
+share/couchdb/www/script/test/http.js
+share/couchdb/www/script/test/invalid_docids.js
+share/couchdb/www/script/test/jsonp.js
+share/couchdb/www/script/test/large_docs.js
+share/couchdb/www/script/test/list_views.js
+share/couchdb/www/script/test/lorem.txt
+share/couchdb/www/script/test/lorem_b64.txt
+share/couchdb/www/script/test/lots_of_docs.js
+share/couchdb/www/script/test/method_override.js
+share/couchdb/www/script/test/multiple_rows.js
+share/couchdb/www/script/test/oauth.js
+share/couchdb/www/script/test/proxyauth.js
+share/couchdb/www/script/test/purge.js
+share/couchdb/www/script/test/reader_acl.js
+share/couchdb/www/script/test/recreate_doc.js
+share/couchdb/www/script/test/reduce.js
+share/couchdb/www/script/test/reduce_builtin.js
+share/couchdb/www/script/test/reduce_false.js
+share/couchdb/www/script/test/reduce_false_temp.js
+share/couchdb/www/script/test/replication.js
+share/couchdb/www/script/test/rev_stemming.js
+share/couchdb/www/script/test/rewrite.js
+share/couchdb/www/script/test/security_validation.js
+share/couchdb/www/script/test/show_documents.js
+share/couchdb/www/script/test/stats.js
+share/couchdb/www/script/test/update_documents.js
+share/couchdb/www/script/test/users_db.js
+share/couchdb/www/script/test/utf8.js
+share/couchdb/www/script/test/uuids.js
+share/couchdb/www/script/test/view_collation.js
+share/couchdb/www/script/test/view_collation_raw.js
+share/couchdb/www/script/test/view_compaction.js
+share/couchdb/www/script/test/view_conflicts.js
+share/couchdb/www/script/test/view_errors.js
+share/couchdb/www/script/test/view_include_docs.js
+share/couchdb/www/script/test/view_multi_key_all_docs.js
+share/couchdb/www/script/test/view_multi_key_design.js
+share/couchdb/www/script/test/view_multi_key_temp.js
+share/couchdb/www/script/test/view_offsets.js
+share/couchdb/www/script/test/view_pagination.js
+share/couchdb/www/script/test/view_sandboxing.js
+share/couchdb/www/script/test/view_update_seq.js
+share/couchdb/www/script/test/view_xml.js
+share/couchdb/www/session.html
+share/couchdb/www/spec/couch_js_class_methods_spec.js
+share/couchdb/www/spec/couch_js_instance_methods_1_spec.js
+share/couchdb/www/spec/couch_js_instance_methods_2_spec.js
+share/couchdb/www/spec/couch_js_instance_methods_3_spec.js
+share/couchdb/www/spec/custom_helpers.js
+share/couchdb/www/spec/jquery_couch_js_class_methods_spec.js
+share/couchdb/www/spec/jquery_couch_js_instance_methods_1_spec.js
+share/couchdb/www/spec/jquery_couch_js_instance_methods_2_spec.js
+share/couchdb/www/spec/jquery_couch_js_instance_methods_3_spec.js
+share/couchdb/www/spec/run.html
+share/couchdb/www/status.html
+share/couchdb/www/style/layout.css
+share/doc/couchdb/AUTHORS.gz
+share/doc/couchdb/BUGS.gz
+share/doc/couchdb/CHANGES.gz
+share/doc/couchdb/DEVELOPERS.gz
+share/doc/couchdb/INSTALL.Unix.gz
+share/doc/couchdb/INSTALL.Windows.gz
+share/doc/couchdb/INSTALL.gz
+share/doc/couchdb/LICENSE.gz
+share/doc/couchdb/NEWS.gz
+share/doc/couchdb/NOTICE.gz
+share/doc/couchdb/README.gz
+share/doc/couchdb/THANKS.gz
+share/examples/couchdb/default.ini
+share/examples/couchdb/local.ini
+@pkgdir share/examples/couchdb/local.d
+@pkgdir share/examples/couchdb/default.d
diff --git a/databases/couchdb/distinfo b/databases/couchdb/distinfo
new file mode 100644
index 00000000000..1a26817d484
--- /dev/null
+++ b/databases/couchdb/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/09/21 12:11:39 fhajny Exp $
+
+SHA1 (apache-couchdb-1.0.1.tar.gz) = 470c88bca6a157e8a40b0713192a7a169bb0395e
+RMD160 (apache-couchdb-1.0.1.tar.gz) = d5e6616c71472a7f6769774dc13fc07ccbf33350
+Size (apache-couchdb-1.0.1.tar.gz) = 986352 bytes
+SHA1 (patch-aa) = 533449b95db713f3a47b3ff861a6cf4f5443eeee
+SHA1 (patch-ab) = cb3ce6abef55535a9729c9881107f69238036516
+SHA1 (patch-ac) = ad77cac068fe07046275271f0d745b3a1c8a4baa
diff --git a/databases/couchdb/patches/patch-aa b/databases/couchdb/patches/patch-aa
new file mode 100644
index 00000000000..8d54579b58d
--- /dev/null
+++ b/databases/couchdb/patches/patch-aa
@@ -0,0 +1,48 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/09/21 12:11:39 fhajny Exp $
+
+Set pkgsrc standard paths.
+
+--- configure.orig 2009-11-24 23:54:09.000000000 +0000
++++ configure
+@@ -753,6 +753,7 @@ locallibdir
+ localdocdir
+ localdatadir
+ localconfdir
++localegdir
+ bug_uri
+ version_release
+ version_stage
+@@ -12081,17 +12082,19 @@ bug_uri="https://issues.apache.org/jira/
+
+ localconfdir=${sysconfdir}/${package_identifier}
+
++localegdir=@EGDIR@
++
+ localdatadir=${datadir}/${package_identifier}
+
+ localdocdir=${datadir}/doc/${package_identifier}
+
+ locallibdir=${libdir}/${package_identifier}
+
+-localstatelibdir=${localstatedir}/lib/${package_identifier}
++localstatelibdir=${localstatedir}/db/${package_identifier}
+
+ localstatelogdir=${localstatedir}/log/${package_identifier}
+
+-localstaterundir=${localstatedir}/run/${package_identifier}
++localstaterundir=@RUNDIR@
+
+
+ # On Windows we install directly into our erlang distribution.
+@@ -12101,9 +12104,9 @@ if test x${IS_WINDOWS} = xTRUE; then
+ localerlanglibdir=${libdir}
+
+ else
+- locallibbindir=${locallibdir}/bin
++ locallibbindir=${libexecdir}/${package_identifier}
+
+- localerlanglibdir=${locallibdir}/erlang/lib
++ localerlanglibdir=@ERLANG_PREFIX@/lib/erlang/lib
+
+ fi
+
diff --git a/databases/couchdb/patches/patch-ab b/databases/couchdb/patches/patch-ab
new file mode 100644
index 00000000000..27a7337b6ba
--- /dev/null
+++ b/databases/couchdb/patches/patch-ab
@@ -0,0 +1,91 @@
+$NetBSD: patch-ab,v 1.1.1.1 2010/09/21 12:11:39 fhajny Exp $
+
+Install into examples, not sysconfdir.
+
+--- etc/couchdb/Makefile.in.orig 2009-11-24 23:54:07.000000000 +0000
++++ etc/couchdb/Makefile.in
+@@ -69,7 +69,7 @@ am__nobase_list = $(am__nobase_strip_set
+ am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+-am__installdirs = "$(DESTDIR)$(localconfdir)"
++am__installdirs = "$(DESTDIR)$(localegdir)"
+ DATA = $(localconf_DATA) $(noinst_DATA)
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ transform = @program_transform_name@
+@@ -187,6 +187,7 @@ launchddir = @launchddir@
+ libdir = @libdir@
+ libexecdir = @libexecdir@
+ localconfdir = @localconfdir@
++localegdir = @localegdir@
+ localdatadir = @localdatadir@
+ localdocdir = @localdocdir@
+ localedir = @localedir@
+@@ -275,24 +276,24 @@ clean-libtool:
+ -rm -rf .libs _libs
+ install-localconfDATA: $(localconf_DATA)
+ @$(NORMAL_INSTALL)
+- test -z "$(localconfdir)" || $(MKDIR_P) "$(DESTDIR)$(localconfdir)"
++ test -z "$(localegdir)" || $(MKDIR_P) "$(DESTDIR)$(localegdir)"
+ @list='$(localconf_DATA)'; test -n "$(localconfdir)" || list=; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(localconfdir)'"; \
+- $(INSTALL_DATA) $$files "$(DESTDIR)$(localconfdir)" || exit $$?; \
++ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(localegdir)'"; \
++ $(INSTALL_DATA) $$files "$(DESTDIR)$(localegdir)" || exit $$?; \
+ done
+
+ uninstall-localconfDATA:
+ @$(NORMAL_UNINSTALL)
+- @list='$(localconf_DATA)'; test -n "$(localconfdir)" || list=; \
++ @list='$(localconf_DATA)'; test -n "$(localegdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ test -n "$$files" || exit 0; \
+- echo " ( cd '$(DESTDIR)$(localconfdir)' && rm -f" $$files ")"; \
+- cd "$(DESTDIR)$(localconfdir)" && rm -f $$files
++ echo " ( cd '$(DESTDIR)$(localegdir)' && rm -f" $$files ")"; \
++ cd "$(DESTDIR)$(localegdir)" && rm -f $$files
+ tags: TAGS
+ TAGS:
+
+@@ -334,7 +335,7 @@ check-am: all-am
+ check: check-am
+ all-am: Makefile $(DATA)
+ installdirs:
+- for dir in "$(DESTDIR)$(localconfdir)"; do \
++ for dir in "$(DESTDIR)$(localegdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+ install: install-am
+@@ -486,20 +487,20 @@ local_dev.ini: local.ini
+ fi
+
+ install-data-hook:
+- if test ! -f "$(DESTDIR)$(localconfdir)/local.ini"; then \
+- cp $(srcdir)/local.ini "$(DESTDIR)$(localconfdir)/local.ini"; \
++ if test ! -f "$(DESTDIR)$(localegdir)/local.ini"; then \
++ cp $(srcdir)/local.ini "$(DESTDIR)$(localegdir)/local.ini"; \
+ fi
+ if test ! "$(mkdir_p)" = ""; then \
+- $(mkdir_p) "$(DESTDIR)$(localconfdir)/default.d"; \
+- $(mkdir_p) "$(DESTDIR)$(localconfdir)/local.d"; \
++ $(mkdir_p) "$(DESTDIR)$(localegdir)/default.d"; \
++ $(mkdir_p) "$(DESTDIR)$(localegdir)/local.d"; \
+ else \
+ echo "WARNING: You may have to create these directories by hand."; \
+- mkdir -p "$(DESTDIR)$(localconfdir)/default.d"; \
+- mkdir -p "$(DESTDIR)$(localconfdir)/local.d"; \
++ mkdir -p "$(DESTDIR)$(localegdir)/default.d"; \
++ mkdir -p "$(DESTDIR)$(localegdir)/local.d"; \
+ fi
+
+ uninstall-local:
+- rm -f "$(DESTDIR)/$(localconfdir)/local.ini"
++ rm -f "$(DESTDIR)/$(localegdir)/local.ini"
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/databases/couchdb/patches/patch-ac b/databases/couchdb/patches/patch-ac
new file mode 100644
index 00000000000..2abb3edc839
--- /dev/null
+++ b/databases/couchdb/patches/patch-ac
@@ -0,0 +1,34 @@
+$NetBSD: patch-ac,v 1.1.1.1 2010/09/21 12:11:39 fhajny Exp $
+
+Remove logrotate files.
+--- etc/Makefile.in.orig 2010-08-11 18:18:52.000000000 +0000
++++ etc/Makefile.in
+@@ -277,15 +277,15 @@ version_minor = @version_minor@
+ version_release = @version_release@
+ version_revision = @version_revision@
+ version_stage = @version_stage@
+-SUBDIRS = couchdb default init launchd logrotate.d windows
++SUBDIRS = couchdb default init launchd windows
+ default_sysconf_data = logrotate.d/couchdb
+ @INIT_TRUE@init_sysconf_data = default/couchdb
+ @INIT_TRUE@init_DATA = init/couchdb
+ @LAUNCHD_TRUE@launchd_DATA = launchd/org.apache.couchdb.plist
+-nobase_sysconf_DATA = $(default_sysconf_data) $(init_sysconf_data)
++nobase_sysconf_DATA = $(init_sysconf_data)
+ EXTRA_DIST = default/couchdb windows/couchdb.iss.tpl \
+ windows/README.txt.tpl $(am__append_1)
+-CLEANFILES = $(init_DATA) $(default_sysconf_data) $(launchd_DATA)
++CLEANFILES = $(init_DATA) $(launchd_DATA)
+ couchdb_command_name = `echo couchdb | sed '$(transform)'`
+ all: all-recursive
+
+@@ -721,9 +721,6 @@ init/couchdb: init/couchdb.tpl
+ -e "s|%couchdb_command_name%|$(couchdb_command_name)|" \
+ < $< > $@
+
+-logrotate.d/couchdb: logrotate.d/couchdb.tpl
+- sed -e "s|%localstatelogdir%|@localstatelogdir@|g" < $< > $@
+-
+ launchd/org.apache.couchdb.plist: launchd/org.apache.couchdb.plist.tpl
+ if test "$(mkdir_p)"; then \
+ $(mkdir_p) launchd; \