Merge lp:~yolanda.robla/ubuntu/trusty/couchdb/add_distribution into lp:ubuntu/trusty/couchdb
Proposed by
Yolanda Robla
Status: | Rejected |
---|---|
Rejected by: | Iain Lane |
Proposed branch: | lp:~yolanda.robla/ubuntu/trusty/couchdb/add_distribution |
Merge into: | lp:ubuntu/trusty/couchdb |
Diff against target: |
134 lines (+58/-3) 8 files modified
.pc/applied-patches (+1/-0) debian/changelog (+8/-0) debian/control (+3/-0) debian/patches/fix-distribution.patch (+38/-0) debian/patches/series (+1/-0) debian/rules (+1/-1) etc/couchdb/Makefile.am (+4/-0) etc/couchdb/default.ini.tpl.in (+2/-2) |
To merge this branch: | bzr merge lp:~yolanda.robla/ubuntu/trusty/couchdb/add_distribution |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dave Cottlehuber (community) | Needs Fixing | ||
James Page | Pending | ||
Ubuntu branches | Pending | ||
Review via email: mp+195788@code.launchpad.net |
Description of the change
Show distribution in welcome message
To post a comment you must log in.
Unmerged revisions
- 75. By Yolanda Robla
-
updated vendor to show Ubuntu distribution and release
- 74. By Yolanda Robla
-
* debian/rules: added autoreconf
* debian/control: added lsb-release, dh-autoreconf, autoconf-archive as dep
* debian/patches/ fix-distributio n.patch: update to show Ubuntu as distribution
Hi Yolanda,
Great idea -- luckily CouchDB already provides functionality to do this without needing an erlang patch;
You should use the dict `vendor` option and store this in the default.ini file. There are name and version files specifically for that.
# $SOURCE/ etc/couchdb/ default. ini.tpl. in
[vendor]
name = Ubuntu
version = Trusty 14.04
Obviously you have a better idea of what these fields should be than me.
You should get something like this back after installing CouchDB:
GET / HTTP/1.1
Accept: application/json
Accept-Encoding: gzip, deflate, compress
Content-Type: application/json; charset=utf-8
Host: localhost:5984
User-Agent: HTTPie/0.8.0-dev
HTTP/1.1 200 OK
Cache-Control: must-revalidate
Content-Length: 145
Content-Type: application/json
Date: Sat, 30 Nov 2013 21:14:03 GMT
Server: CouchDB/1.5.0 (Erlang OTP/R16B02)
{ 0356e498dcfb057 5b1",
"couchdb": "Welcome",
"version": "1.5.0"
"uuid": "24ca0e5e74a4e4
"vendor": {
"name": "Ubuntu",
"version": "Trusty-14.04"
},
}
The UUID entry is unique per couchdb installation, its shown here for completeness but shouldn't be part of the ubuntu package.
A gentle reminder to all reviewers, Apache CouchDB would love to hear more from downstream / packaging teams. We're here to help you help us!