~ubuntu-branches/ubuntu/lucid/couchdb/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Chad Miller, Ken VanDine
  • Date: 2009-09-25 19:18:26 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090925191826-km9018omfgxosvah
Tags: 0.10.0~svn818859-0ubuntu1
* Import code from pre-release branch.  (LP: #427860, #408909)
        + Build and System Integration:
          * Changed `couchdb` script configuration options.
          * Added default.d and local.d configuration directories to load
      sequence.
        + HTTP Interface:
          * Added optional cookie-based authentication handler.
          * Added optional two-legged OAuth authentication handler.
* Packaging of couchdb-bin must replace pre-split couchdb.
  (LP: #432219)
* Move all of /etc and /var out of the couchdb-bin package, to the
  couchdb package. 
* /etc/couchdb must be in couchdb-bin, as config files are needed
  by all servers.
  + So the couchdb user must be managed by couchdb-bin.
  + Split postinst/postrm files to manage different files.
  + Set Replaces of couchdb-bin by couchdb so that config files
    migrate.
* Update the version number in postrm.  (!)
* Use the new "Breaks" field in control file to help split pkg.

[Ken VanDine]
* debian/couchdb.install:
  - removed /var
* debian/rules:
  - removed bootstrap 
* debian/couchdb.postinst:
  - Added the debhelper tag

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
# @@ workaround for #486848
26
26
binary-arch binary-indep: build
27
27
 
28
 
post-patches::
 
28
post-patches:: configure
29
29
        sed -i s,$(LIB)$$,$(LIB)/$(DEB_UPSTREAM_VERSION), configure
30
30
        sed -i s,$(LOG)$$,$(LOG)/$(DEB_UPSTREAM_VERSION), configure
31
 
        sed -i s,VERSION=%VERSION%$$,VERSION=$(DEB_UPSTREAM_VERSION), debian/postrm
 
31
        sed -i s,VERSION=%VERSION%$$,VERSION=$(DEB_UPSTREAM_VERSION), debian/couchdb.postrm
32
32
 
33
 
cleanbuilddir::
 
33
cleanbuilddir:: configure
34
34
        sed -i s,$(LIB)/$(DEB_UPSTREAM_VERSION)$$,$(LIB), configure
35
35
        sed -i s,$(LOG)/$(DEB_UPSTREAM_VERSION)$$,$(LOG), configure
36
 
        sed -i s,VERSION=$(DEB_UPSTREAM_VERSION)$$,VERSION=%VERSION%, debian/postrm
 
36
        sed -i s,VERSION=$(DEB_UPSTREAM_VERSION)$$,VERSION=%VERSION%, debian/couchdb.postrm
37
37
 
38
38
common-binary-post-install-arch::
39
39
        rm -f debian/couchdb-bin/usr/lib/couchdb/erlang/lib/couch-*/priv/lib/couch_erl_driver.la
40
40
        rm -f debian/couchdb-bin/usr/share/couchdb/www/script/jquery.js
41
41
        dh_link /usr/share/javascript/jquery/jquery.js /usr/share/couchdb/www/script/jquery.js
42
 
        cp debian/binary.lintian-overrides debian/couchdb-bin/usr/share/lintian/overrides/couchdb
 
42
        cp debian/binary.lintian-overrides debian/couchdb-bin/usr/share/lintian/overrides/couchdb-bin
43
43
 
44
44
common-binary-predeb-arch::
45
45
        echo 'xulrunner:Depends=$(xulrunner_dep)' >> debian/couchdb.substvars