--- couchdb-0.8.1.orig/debian/postrm +++ couchdb-0.8.1/debian/postrm @@ -0,0 +1,53 @@ +#!/bin/sh -e + +# This file is part of the couchdb package. + +# Copyright 2008, Noah Slater + +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice and this +# notice are preserved. + +# Post-removal procedure for the package. + +PACKAGE_VERSION=0.7.3 + +remove_file_collection () { + rm -f /var/run/couchdb.pid +} + +remove_directory_collection () { + rm -fr /var/log/couchdb/$PACKAGE_VERSION + if test -d /etc/couchdb; then + rmdir --ignore-fail-on-non-empty /etc/couchdb || true + fi + if test -d /var/lib/couchdb/$PACKAGE_VERSION; then + rmdir --ignore-fail-on-non-empty /var/lib/couchdb/$PACKAGE_VERSION || true + fi + if test -d /var/lib/couchdb; then + rmdir --ignore-fail-on-non-empty /var/lib/couchdb || true + fi +} + +delete_administrative_user_group () { + if getent passwd couchdb > /dev/null && which deluser > /dev/null; then + deluser couchdb + fi + if getent group couchdb > /dev/null && which delgroup > /dev/null; then + delgroup couchdb + fi +} + +parse_script_option_list () { + case $1 in + purge) + remove_file_collection + remove_directory_collection + delete_administrative_user_group + ;; + esac +} + +parse_script_option_list $@ + +#DEBHELPER# --- couchdb-0.8.1.orig/debian/postinst +++ couchdb-0.8.1/debian/postinst @@ -0,0 +1,59 @@ +#!/bin/sh -e + +# This file is part of the couchdb package. + +# Copyright 2008, Noah Slater + +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice and this +# notice are preserved. + +# Post-installation procedure for the package. + +create_administrative_user () { + if ! getent passwd couchdb > /dev/null; then + adduser --system --quiet \ + --home /var/lib/couchdb --no-create-home \ + --shell /bin/bash --group --gecos "CouchDB Administrator" couchdb + fi +} + +check_administrative_user () { + if test "`id -u couchdb`" -eq 0; then + echo "The couchdb administrative user must not be root." >&2 + false + fi +} + +check_administrative_group () { + if test "`id -g couchdb`" -eq 0; then + echo "The couchdb administrative group must not be root." >&2 + false + fi +} + +fix_directory_ownership () { + chown -R couchdb:couchdb /var/lib/couchdb + chown -R root:couchdb /var/log/couchdb +} + +fix_directory_permissions () { + chmod -R 0770 /var/lib/couchdb + chmod -R 0770 /var/log/couchdb +} + +parse_script_option_list () { + case $1 in + configure) + create_administrative_user + check_administrative_user + check_administrative_group + fix_directory_ownership + fix_directory_permissions + ;; + esac +} + +parse_script_option_list $@ + +#DEBHELPER# --- couchdb-0.8.1.orig/debian/rules +++ couchdb-0.8.1/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f + +# This file is part of the couchdb package. + +# Copyright 2008, Noah Slater + +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice and this +# notice are preserved. + +include /usr/share/cdbs/1/rules/buildcore.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_INSTALL_DOCS_ALL = +DEB_DH_INSTALLINIT_ARGS = --onlyscripts + +common-binary-post-install-arch:: + rm -f debian/couchdb/etc/couchdb/conf/mime.types + rm -f debian/couchdb/usr/lib/couchdb/erlang/lib/couch-*/priv/lib/couch_erl_driver.la + dh_link etc/mime.types etc/couchdb/conf/mime.types + +common-binary-predeb-arch:: + erlang-depends + +get-orig-source: + uscan --force-download + +.PHONY: get-orig-source --- couchdb-0.8.1.orig/debian/compat +++ couchdb-0.8.1/debian/compat @@ -0,0 +1 @@ +5 --- couchdb-0.8.1.orig/debian/patches/directory-version.patch +++ couchdb-0.8.1/debian/patches/directory-version.patch @@ -0,0 +1,14 @@ +diff -Nur -x '*.orig' -x '*~' apache-couchdb-0.8.0-incubating/configure.ac apache-couchdb-0.8.0-incubating.new/configure.ac +--- apache-couchdb-0.8.0-incubating/configure.ac 2008-06-16 23:48:21.000000000 +0100 ++++ apache-couchdb-0.8.0-incubating.new/configure.ac 2008-06-25 18:59:52.000000000 +0100 +@@ -215,8 +215,8 @@ + AC_SUBST([localdatadir], [${datadir}/${package_identifier}]) + AC_SUBST([localdocdir], [${datadir}/doc/${package_identifier}]) + AC_SUBST([locallibdir], [${libdir}/${package_identifier}]) +-AC_SUBST([localstatelibdir], [${localstatedir}/lib/${package_identifier}]) +-AC_SUBST([localstatelogdir], [${localstatedir}/log/${package_identifier}]) ++AC_SUBST([localstatelibdir], [${localstatedir}/lib/${package_identifier}/0.8.0]) ++AC_SUBST([localstatelogdir], [${localstatedir}/log/${package_identifier}/0.8.0]) + AC_SUBST([locallibbindir], [${locallibdir}/bin]) + AC_SUBST([localerlangbindir], [${locallibdir}/erlang/bin]) + AC_SUBST([localerlanglibdir], [${locallibdir}/erlang/lib]) --- couchdb-0.8.1.orig/debian/patches/icu-config.patch +++ couchdb-0.8.1/debian/patches/icu-config.patch @@ -0,0 +1,12 @@ +diff -Nur -x '*.orig' -x '*~' apache-couchdb-0.8.0-incubating/bin/couchdb.tpl.in apache-couchdb-0.8.0-incubating.new/bin/couchdb.tpl.in +--- apache-couchdb-0.8.0-incubating/bin/couchdb.tpl.in 2008-06-16 23:48:21.000000000 +0100 ++++ apache-couchdb-0.8.0-incubating.new/bin/couchdb.tpl.in 2008-06-25 19:03:23.000000000 +0100 +@@ -203,7 +203,7 @@ + touch $PID_FILE + interactive_option="+Bd -noinput" + fi +- command="`%ICU_CONFIG% --invoke` \ ++ command="env \"LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH}\" \ + %ERL% $interactive_option -smp auto -sasl errlog_type error \ + -pa %localerlanglibdir%/couch-%version%/ebin \ + %localerlanglibdir%/mochiweb-r76/ebin \ --- couchdb-0.8.1.orig/debian/copyright +++ couchdb-0.8.1/debian/copyright @@ -0,0 +1,66 @@ +X-Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +X-Debianized-By: Noah Slater +X-Debianized-Date: Sat, 6 Oct 2007 19:44:36 +0100 +X-Source-Downloaded-From: http://svn.apache.org/repos/asf/incubator/couchdb/trunk +X-Source-Get-Original: ./debian/rules get-orig-source +X-Source-Original-Depends: autoconf, automake, libtool, subversion-tools +X-Upstream-Author: The Apache Software Foundation + +Files: * +Copyright: Copyright 2008, Damien Katz + Copyright 2008, Jan Lehnardt + Copyright 2008, Christopher Lenz + Copyright 2008, Noah Slater +License: Apache-2.0 + On Debian systems the full text of the Apache Licence (Version 2) can be found + in the `/usr/share/common-licenses/Apache-2.0' file. + +Files: debian/* +Copyright: Copyright 2008, Noah Slater +License: GAP + +Files: m4/ac_check_icu.m4 +Copyright: Copyright 2005, Akos Maroy +License: GAP + +Files: share/www/script/jquery.js +Copyright: Copyright 2007, John Resig +License: MIT | GPL-2 + On Debian systems the full text of the GNU General Public License (Version 2) + can be found in the `/usr/share/common-licenses/GPL-2' file. + +Files: share/www/script/json.js +License: PD + In the public domain. + +Files: src/mochiweb/* +Copyright: Copyright 2007, Mochi Media Coporation +License: MIT + +License: GAP + Copying and distribution of this package, with or without modification, are + permitted in any medium without royalty provided the copyright notice and this + notice are preserved. + +Licence: MIT + The MIT License + . + Copyright (c) + . + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. --- couchdb-0.8.1.orig/debian/watch +++ couchdb-0.8.1/debian/watch @@ -0,0 +1,3 @@ +version = 3 + +http://www.apache.org/dist/incubator/couchdb/([\d\.]+)-incubating/apache-couchdb-([\d\.]+)-incubating\.tar\.gz --- couchdb-0.8.1.orig/debian/changelog +++ couchdb-0.8.1/debian/changelog @@ -0,0 +1,60 @@ +couchdb (0.8.1-1) hardy; urgency=low + + * New upstream release. + + -- Thomas Hervé Sun, 23 Nov 2008 18:11:26 +0100 + +couchdb (0.8.0-1) unstable; urgency=low + + * New upstream release. + * Added a debian/watch file. + * Updated debian/copyright to use the Apache Licence from common-licenses. + * Removed Subversion get-orig-source rules from debian/rules file. + + -- Noah Slater Wed, 25 Jun 2008 20:19:40 +0100 + +couchdb (0.7.3~svn650270-2) unstable; urgency=low + + * Added release partitioning to database and log directories. + * Corrected postrm maintainer script to not remove logs. + + -- Noah Slater Sat, 24 May 2008 16:30:21 +0100 + +couchdb (0.7.3~svn650270-1) experimental; urgency=low + + * New upstream snapshot, database format change, no boot file, no + SpiderMonkey and all tests pass. Closes: #465592, #465722, #466424 + * Improved debian/copyright file per the proposed standard. + * Removed Debian revision from erlang-dev Build-Depends. + * Removed run-time dependency on libicu-dev. Closes: #466076 + + -- Noah Slater Thu, 01 May 2008 12:07:31 +0100 + +couchdb (0.7.3~svn684-1) unstable; urgency=low + + * New upstream snapshot. + * Bumped standards version to 3.7.3. + + -- Noah Slater Wed, 06 Feb 2008 17:03:38 +0000 + +couchdb (0.7.2-2) experimental; urgency=low + + * Added build dependency on libicu-dev as an alternative to libicu36-dev + which is removed from unstable. + + -- Sergei Golovan Wed, 19 Dec 2007 17:54:47 +0300 + +couchdb (0.7.2-1) experimental; urgency=low + + * New upstream release. + * Passed -fPIC to compiler. Closes: #451996 + * Forced removal of unwanted files. + * Added get-orig-source target to debian/rules. + + -- Noah Slater Sat, 08 Dec 2007 01:21:01 +0300 + +couchdb (0.7.0-1) experimental; urgency=low + + * Initial release. Closes: #445880 + + -- Noah Slater Sat, 6 Oct 2007 19:44:36 +0100 --- couchdb-0.8.1.orig/debian/README.Debian +++ couchdb-0.8.1/debian/README.Debian @@ -0,0 +1,29 @@ +Debian README +============= + +Apache CouchDB is alpha software and still under heavy development. Please be +aware that important areas such as the public API or internal database format +may see backwards incompatible changes between versions. + +Because the internal database format may change, rendering your database +unusable with a new version of the package, the database and log directories are +partitioned by the CouchDB release number of the database format in use. + +The database and log directories are named like this: + + /var/lib/couchdb/VERSION + /var/log/couchdb/VERSION + +Before you upgrade to a new version of this package with a changed database +format you should export any data that you want keep from the old database and +import the data into the new database after the upgrade. + +Migration tools are available: + + http://couchdb-python.googlecode.com/svn/trunk/couchdb/tools/ + +More detailed information can be found on the CouchDB wiki: + + http://wiki.apache.org/couchdb/BreakingChanges + + -- Noah Slater , Mon, 16 Jun 2008 20:08:29 +0100 --- couchdb-0.8.1.orig/debian/control +++ couchdb-0.8.1/debian/control @@ -0,0 +1,31 @@ +Source: couchdb +Section: misc +Priority: optional +Maintainer: Noah Slater +Uploaders: Sergei Golovan +Standards-Version: 3.7.3 +Build-Depends: cdbs (>= 0.4.42), debhelper (>= 5.0.37.2), + erlang-dev (>= 1:11.b.2), erlang-nox, help2man, libicu-dev, libmozjs-dev, + libreadline5-dev +Homepage: http://incubator.apache.org/couchdb/ +Vcs-Svn: svn://svn.berlios.de/erlang-pkg/couchdb/trunk/ +Vcs-Browser: https://svn.berlios.de/wsvn/erlang-pkg/couchdb/?op=log + +Package: couchdb +Architecture: any +Depends: ${shlibs:Depends}, ${erlang-abi:Depends}, ${erlang-nox:Depends}, + adduser, lsb-base, mime-support +Description: a RESTful document oriented database + Apache CouchDB is a distributed document database system with bi-directional + replication. It makes it simple to build collaborative applications that can + be replicated offline by users, with full interactivity (query, add, update, + delete), and later "synced up" with everyone else's changes when back online. + . + Main features: + . + * A document database server, accessible via a RESTful JSON API. + * Ad-hoc and schema-free with a flat address space. + * Distributed, featuring robust, incremental replication with bi-directional + conflict detection and management. + * Query-able and index-able, featuring a table oriented reporting engine + that uses JavaScript as a query language. --- couchdb-0.8.1.orig/aclocal.m4 +++ couchdb-0.8.1/aclocal.m4 @@ -21,7 +21,7 @@ # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL +# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)