Merge lp:~yolanda.robla/ubuntu/saucy/dovecot/update_dovecot_name into lp:ubuntu/saucy/dovecot

Proposed by Yolanda Robla
Status: Merged
Merge reported by: Martin Pitt
Merged at revision: not available
Proposed branch: lp:~yolanda.robla/ubuntu/saucy/dovecot/update_dovecot_name
Merge into: lp:ubuntu/saucy/dovecot
Diff against target: 130 lines (+87/-1)
5 files modified
debian/changelog (+9/-0)
debian/control (+3/-1)
debian/patches/dovecot_name.patch (+73/-0)
debian/patches/series (+1/-0)
debian/rules (+1/-0)
To merge this branch: bzr merge lp:~yolanda.robla/ubuntu/saucy/dovecot/update_dovecot_name
Reviewer Review Type Date Requested Status
Martin Pitt Approve
James Page Pending
Review via email: mp+170071@code.launchpad.net

Description of the change

Updated dovecot name

To post a comment you must log in.
99. By Yolanda Robla

updated description

Revision history for this message
Martin Pitt (pitti) wrote :

dovecot_autoreconf.patch is going to be really hard to maintain. May I suggest dropping this and using dh_autoreconf instead?

++AC_DEFINE_UNQUOTED(DOVECOT_NAME, "$PACKAGE_NAME$DOVECOT_DISTRIBUTION", Dovecot name)

Shouldn't there be a space between the package name and the distro name?

review: Needs Fixing
100. By Yolanda Robla

debian/rules: added autoconf in config-stamp

101. By Yolanda Robla

updated dependencies

Revision history for this message
Yolanda Robla (yolanda.robla) wrote :

Removed dovecot_autoreconf.patch, and calling autoconf in debian/rules
Space not needed between $PACKAGE_NAME and $DOVECOT_DISTRIBUTION, because that space is added when setting the $DOVECOT-DISTRIBUTION var. By this way, no extra space is added if $DOVECOT_DISTRIBUTION is empty.

Revision history for this message
Martin Pitt (pitti) wrote :

Looks much better, thanks!

review: Approve
Revision history for this message
Martin Pitt (pitti) wrote :

As you didn't bzr add the changed source and quilt files, and I always mess this up as well, I just uploaded this and let the package importer sort it out. Closing MP manually. Thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-02-11 12:41:24 +0000
3+++ debian/changelog 2013-06-25 14:16:35 +0000
4@@ -1,3 +1,12 @@
5+dovecot (1:2.1.7-7ubuntu2) UNRELEASED; urgency=low
6+
7+ * debian/patches/dovecot_name.patch: updated Dovecot name to reflect
8+ distribution in login greeting
9+ * debian/control: added lsb-release as build-dependency
10+ * debian/rules: added autoconf in config-stamp
11+
12+ -- Yolanda Robla <yolanda.robla@canonical.com> Mon, 17 Jun 2013 15:38:22 +0200
13+
14 dovecot (1:2.1.7-7ubuntu1) raring; urgency=low
15
16 [ James Page ]
17
18=== modified file 'debian/control'
19--- debian/control 2013-02-11 12:41:24 +0000
20+++ debian/control 2013-06-25 14:16:35 +0000
21@@ -4,7 +4,9 @@
22 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
23 XSBC-Original-Maintainer: Dovecot Maintainers <jaldhar-dovecot@debian.org>
24 Uploaders: Jaldhar H. Vyas <jaldhar@debian.org>, Fabio Tranchitella <kobold@debian.org>, Joel Johnson <mrjoel@lixil.net>, Marco Nenciarini <mnencia@debian.org>
25-Build-Depends: debhelper (>= 7.2.3~), dpkg-dev (>= 1.16.1), pkg-config, libssl-dev, libpam0g-dev, libldap2-dev, libpq-dev, libmysqlclient-dev, libsqlite3-dev, libsasl2-dev, zlib1g-dev, libkrb5-dev, drac-dev (>= 1.12-5), libbz2-dev, libdb-dev, libcurl4-gnutls-dev, libexpat-dev, hardening-wrapper
26+Build-Depends: debhelper (>= 7.2.3~), dpkg-dev (>= 1.16.1), pkg-config, libssl-dev, libpam0g-dev, libldap2-dev, libpq-dev,
27+ libmysqlclient-dev, libsqlite3-dev, libsasl2-dev, zlib1g-dev, libkrb5-dev, drac-dev (>= 1.12-5), libbz2-dev, libdb-dev,
28+ libcurl4-gnutls-dev, libexpat-dev, hardening-wrapper, lsb-release, dh-autoreconf
29 Standards-Version: 3.9.3
30 Homepage: http://dovecot.org/
31 Vcs-Git: git://git.debian.org/git/collab-maint/dovecot.git
32
33=== added file 'debian/patches/dovecot_name.patch'
34--- debian/patches/dovecot_name.patch 1970-01-01 00:00:00 +0000
35+++ debian/patches/dovecot_name.patch 2013-06-25 14:16:35 +0000
36@@ -0,0 +1,73 @@
37+Description: Update Dovecot name to include Distribution in
38+ login greeting message
39+Origin: https://blueprints.launchpad.net/ubuntu/+spec/servercloud-s-server-app-banner-updates
40+Author: Yolanda Robla <yolanda.robla@canonical.com>
41+Last-Update: 2013-06-18
42+
43+diff --git a/configure.in b/configure.in
44+index 35f7e07..47c7cef 100644
45+--- a/configure.in
46++++ b/configure.in
47+@@ -283,7 +283,12 @@ AC_C_INLINE
48+ AC_PROG_LIBTOOL
49+ AM_ICONV
50+
51+-AC_DEFINE_UNQUOTED(DOVECOT_NAME, "$PACKAGE_NAME", Dovecot name)
52++if test -x /usr/bin/lsb_release && lsb_release -si; then
53++ DOVECOT_DISTRIBUTION=" ($(lsb_release -si))"
54++else
55++ DOVECOT_DISTRIBUTION=""
56++fi
57++AC_DEFINE_UNQUOTED(DOVECOT_NAME, "$PACKAGE_NAME$DOVECOT_DISTRIBUTION", Dovecot name)
58+ AC_DEFINE_UNQUOTED(DOVECOT_STRING, "$PACKAGE_STRING", Dovecot string)
59+ AC_DEFINE_UNQUOTED(DOVECOT_VERSION, "$PACKAGE_VERSION", Dovecot version)
60+
61+diff --git a/src/config/all-settings.c b/src/config/all-settings.c
62+index ca6df6e..34abf2d 100644
63+--- a/src/config/all-settings.c
64++++ b/src/config/all-settings.c
65+@@ -2539,7 +2539,7 @@ static const struct setting_define login_setting_defines[] = {
66+ };
67+ static const struct login_settings login_default_settings = {
68+ .login_trusted_networks = "",
69+- .login_greeting = PACKAGE_NAME" ready.",
70++ .login_greeting = DOVECOT_NAME" ready.",
71+ .login_log_format_elements = "user=<%u> method=%m rip=%r lip=%l mpid=%e %c session=<%{session}>",
72+ .login_log_format = "%$: %s",
73+ .login_access_sockets = "",
74+@@ -2671,7 +2671,7 @@ static const struct setting_define lmtp_setting_defines[] = {
75+ static const struct lmtp_settings lmtp_default_settings = {
76+ .lmtp_proxy = FALSE,
77+ .lmtp_save_to_detail_mailbox = FALSE,
78+- .login_greeting = PACKAGE_NAME" ready."
79++ .login_greeting = DOVECOT_NAME" ready."
80+ };
81+ static const struct setting_parser_info *lmtp_setting_dependencies[] = {
82+ &lda_setting_parser_info,
83+diff --git a/src/lmtp/lmtp-settings.c b/src/lmtp/lmtp-settings.c
84+index aa803a2..8baedbb 100644
85+--- a/src/lmtp/lmtp-settings.c
86++++ b/src/lmtp/lmtp-settings.c
87+@@ -67,7 +67,7 @@ static const struct setting_define lmtp_setting_defines[] = {
88+ static const struct lmtp_settings lmtp_default_settings = {
89+ .lmtp_proxy = FALSE,
90+ .lmtp_save_to_detail_mailbox = FALSE,
91+- .login_greeting = PACKAGE_NAME" ready."
92++ .login_greeting = DOVECOT_NAME" ready."
93+ };
94+
95+ static const struct setting_parser_info *lmtp_setting_dependencies[] = {
96+ &lda_setting_parser_info,
97+diff --git a/src/login-common/login-settings.c b/src/login-common/login-settings.c
98+index df34108..d00e20d 100644
99+--- a/src/login-common/login-settings.c
100++++ b/src/login-common/login-settings.c
101+@@ -55,7 +55,7 @@ static const struct setting_define login_setting_defines[] = {
102+
103+ static const struct login_settings login_default_settings = {
104+ .login_trusted_networks = "",
105+- .login_greeting = PACKAGE_NAME" ready.",
106++ .login_greeting = DOVECOT_NAME" ready.",
107+ .login_log_format_elements = "user=<%u> method=%m rip=%r lip=%l mpid=%e %c session=<%{session}>",
108+ .login_log_format = "%$: %s",
109+ .login_access_sockets = "",
110
111=== modified file 'debian/patches/series'
112--- debian/patches/series 2013-02-11 12:41:24 +0000
113+++ debian/patches/series 2013-06-25 14:16:35 +0000
114@@ -11,3 +11,4 @@
115 default-mail_location.patch
116 chgrp-error.patch
117 exampledir.patch
118+dovecot_name.patch
119
120=== modified file 'debian/rules'
121--- debian/rules 2013-02-11 12:41:24 +0000
122+++ debian/rules 2013-06-25 14:16:35 +0000
123@@ -25,6 +25,7 @@
124
125 config-stamp: configure
126 dh_testdir
127+ autoconf
128 # Dovecot
129 $(shell $(dpkg_buildflags) --export=configure) sh configure \
130 --with-ldap=plugin \

Subscribers

People subscribed via source and target branches

to all changes: