Comment 10 for bug 427036

Revision history for this message
Steve Langasek (vorlon) wrote :

A few tweaks needed to the package:

- couchdb-bin needs to replace the previous couchdb package, for smooth upgrades
- /etc/default/couchdb is a config file for use by the init script, so should be in the couchdb package
- ${couchdb-bin:Depends} is not declared anywhere - and there's no reason to use a substitution, anyway. This should be a hard-coded dependency ( Depends: couchdb-bin (= ${binary:Version}) ), no reason to invent a new substitution.

I've made these three adjustments to the package and am uploading now; thanks for preparing this.

Going forward, I think all the other contents in /var and /etc should also be moved to the couchdb package, since they're only relevant to the system couchdb instance - other users making use of the binaries aren't going to be able to write to these directories, so what's the point of including them without the init script? In particular, having users' individual couchdb instances reading their configuration from /etc/couchdb/, a directory *writable* by the system couchdb user, seems like it would be a potential security problem, so I can't see any reason to want these files without having the full couchdb package installed.