Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/netqmail: netqmail-1.06-r2.ebuild netqmail-1.06-r1.ebuild ChangeLog
Date: Mon, 27 May 2013 00:45:58
Message-Id: 20130527004552.CB97D2171E@flycatcher.gentoo.org
1 robbat2 13/05/27 00:45:52
2
3 Modified: netqmail-1.06-r1.ebuild ChangeLog
4 Added: netqmail-1.06-r2.ebuild
5 Log:
6 Fix security bug #372967. Also fixes bugs #335077, #331901, #370611, #403893, #404225.
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.2 mail-mta/netqmail/netqmail-1.06-r1.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/netqmail/netqmail-1.06-r1.ebuild?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/netqmail/netqmail-1.06-r1.ebuild?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/netqmail/netqmail-1.06-r1.ebuild?r1=1.1&r2=1.2
16
17 Index: netqmail-1.06-r1.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-mta/netqmail/netqmail-1.06-r1.ebuild,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -p -w -b -B -u -u -r1.1 -r1.2
23 --- netqmail-1.06-r1.ebuild 15 Apr 2013 22:55:10 -0000 1.1
24 +++ netqmail-1.06-r1.ebuild 27 May 2013 00:45:52 -0000 1.2
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2013 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/netqmail/netqmail-1.06-r1.ebuild,v 1.1 2013/04/15 22:55:10 robbat2 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/netqmail/netqmail-1.06-r1.ebuild,v 1.2 2013/05/27 00:45:52 robbat2 Exp $
30
31 EAPI=5
32
33 @@ -94,7 +94,11 @@ src_prepare() {
34 ht_fix_file Makefile*
35
36 if ! use vanilla; then
37 - use ssl && epatch "${DISTDIR}"/${QMAIL_TLS_F}
38 + # This patch contains relative paths and needs to be cleaned up.
39 + sed 's~^--- ../../~--- ~g' \
40 + <"${DISTDIR}"/${QMAIL_TLS_F} \
41 + >"${T}"/${QMAIL_TLS_F}
42 + use ssl && epatch "${T}"/${QMAIL_TLS_F}
43 use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F}
44
45 if use qmail-spp; then
46
47
48
49 1.63 mail-mta/netqmail/ChangeLog
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/netqmail/ChangeLog?rev=1.63&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/netqmail/ChangeLog?rev=1.63&content-type=text/plain
53 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/netqmail/ChangeLog?r1=1.62&r2=1.63
54
55 Index: ChangeLog
56 ===================================================================
57 RCS file: /var/cvsroot/gentoo-x86/mail-mta/netqmail/ChangeLog,v
58 retrieving revision 1.62
59 retrieving revision 1.63
60 diff -p -w -b -B -u -u -r1.62 -r1.63
61 --- ChangeLog 15 Apr 2013 22:55:10 -0000 1.62
62 +++ ChangeLog 27 May 2013 00:45:52 -0000 1.63
63 @@ -1,6 +1,15 @@
64 # ChangeLog for mail-mta/netqmail
65 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
66 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/netqmail/ChangeLog,v 1.62 2013/04/15 22:55:10 robbat2 Exp $
67 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/netqmail/ChangeLog,v 1.63 2013/05/27 00:45:52 robbat2 Exp $
68 +
69 +*netqmail-1.06-r2 (27 May 2013)
70 +
71 + 27 May 2013; Robin H. Johnson <robbat2@g.o>
72 + +files/genqmail-20080406-ldflags.patch, +netqmail-1.06-r2.ebuild,
73 + files/conf-common, files/conf-qmqpd, files/conf-qmtpd, files/conf-smtpd,
74 + files/servercert.cnf, netqmail-1.06-r1.ebuild:
75 + Fix security bug #372967. Also fixes bugs #335077, #331901, #370611, #403893,
76 + #404225.
77
78 *netqmail-1.06-r1 (15 Apr 2013)
79
80
81
82
83 1.1 mail-mta/netqmail/netqmail-1.06-r2.ebuild
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/netqmail/netqmail-1.06-r2.ebuild?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/netqmail/netqmail-1.06-r2.ebuild?rev=1.1&content-type=text/plain
87
88 Index: netqmail-1.06-r2.ebuild
89 ===================================================================
90 # Copyright 1999-2013 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Header: /var/cvsroot/gentoo-x86/mail-mta/netqmail/netqmail-1.06-r2.ebuild,v 1.1 2013/05/27 00:45:52 robbat2 Exp $
93
94 EAPI=5
95
96 GENQMAIL_PV=20080406
97 QMAIL_SPP_PV=0.42
98
99 QMAIL_TLS_PV=20070417
100 QMAIL_TLS_F=${PN}-1.05-tls-smtpauth-${QMAIL_TLS_PV}.patch
101 QMAIL_TLS_CVE=vu555316.patch
102
103 QMAIL_BIGTODO_PV=103
104 QMAIL_BIGTODO_F=big-todo.${QMAIL_BIGTODO_PV}.patch
105
106 QMAIL_LARGE_DNS='qmail-103.patch'
107
108 inherit eutils qmail
109
110 DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent"
111 HOMEPAGE="
112 http://netqmail.org
113 http://cr.yp.to/qmail.html
114 http://qmail.org
115 "
116 SRC_URI="mirror://qmail/${P}.tar.gz
117 http://dev.gentoo.org/~hollow/distfiles/${GENQMAIL_F}
118 http://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS}
119 http://inoa.net/qmail-tls/${QMAIL_TLS_CVE}
120 !vanilla? (
121 highvolume? ( mirror://qmail/${QMAIL_BIGTODO_F} )
122 qmail-spp? ( mirror://sourceforge/qmail-spp/${QMAIL_SPP_F} )
123 ssl? ( http://shupp.org/patches/${QMAIL_TLS_F} )
124 )
125 "
126
127 LICENSE="public-domain"
128 SLOT="0"
129 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
130 IUSE="authcram gencertdaily highvolume qmail-spp ssl vanilla"
131 REQUIRED_USE='vanilla? ( !ssl !qmail-spp !highvolume )'
132 RESTRICT="test"
133
134 DEPEND="
135 !mail-mta/qmail
136 net-mail/queue-repair
137 ssl? ( dev-libs/openssl )
138 sys-apps/groff
139 "
140 RDEPEND="
141 !mail-mta/courier
142 !mail-mta/esmtp
143 !mail-mta/exim
144 !mail-mta/mini-qmail
145 !mail-mta/msmtp[mta]
146 !mail-mta/nullmailer
147 !mail-mta/postfix
148 !mail-mta/qmail-ldap
149 !mail-mta/sendmail
150 !<mail-mta/ssmtp-2.64-r2
151 !>=mail-mta/ssmtp-2.64-r2[mta]
152 >=sys-apps/ucspi-tcp-0.88-r17
153 ssl? ( >=sys-apps/ucspi-ssl-0.70-r1 )
154 virtual/daemontools
155 >=net-mail/dot-forward-0.71-r3
156 virtual/checkpassword
157 authcram? ( >=net-mail/cmd5checkpw-0.30 )
158 ${DEPEND}
159 "
160
161 pkg_setup() {
162 if [[ -n "${QMAIL_PATCH_DIR}" ]]; then
163 eerror
164 eerror "The QMAIL_PATCH_DIR variable for custom patches"
165 eerror "has been removed from ${PN}. If you need custom patches"
166 eerror "you should create a copy of this ebuild in an overlay."
167 eerror
168 die "QMAIL_PATCH_DIR is not supported anymore"
169 fi
170
171 qmail_create_users
172 }
173
174 src_unpack() {
175 genqmail_src_unpack
176 use qmail-spp && qmail_spp_src_unpack
177
178 unpack ${P}.tar.gz
179 }
180
181 src_prepare() {
182 epatch "${FILESDIR}"/${PV}-exit.patch
183 epatch "${FILESDIR}"/${PV}-readwrite.patch
184 epatch "${DISTDIR}"/${QMAIL_LARGE_DNS}
185
186 ht_fix_file Makefile*
187
188 if ! use vanilla; then
189 # This patch contains relative paths and needs to be cleaned up.
190 sed 's~^--- ../../~--- ~g' \
191 <"${DISTDIR}"/${QMAIL_TLS_F} \
192 >"${T}"/${QMAIL_TLS_F}
193 use ssl && epatch "${T}"/${QMAIL_TLS_F}
194 use ssl && epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
195 use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F}
196
197 if use qmail-spp; then
198 if use ssl; then
199 epatch "${QMAIL_SPP_S}"/qmail-spp-smtpauth-tls-20060105.diff
200 else
201 epatch "${QMAIL_SPP_S}"/netqmail-spp.diff
202 fi
203 cd "${WORKDIR}"
204 epatch "${FILESDIR}"/genqmail-20080406-ldflags.patch
205 cd -
206 fi
207 fi
208
209 qmail_src_postunpack
210
211 # Fix bug #33818 but for netqmail (Bug 137015)
212 if ! use authcram; then
213 einfo "Disabled CRAM_MD5 support"
214 sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c
215 else
216 einfo "Enabled CRAM_MD5 support"
217 fi
218 }
219
220 src_compile() {
221 qmail_src_compile
222 use qmail-spp && qmail_spp_src_compile
223 }
224
225 src_install() {
226 qmail_src_install
227 }
228
229 pkg_postinst() {
230 qmail_queue_setup
231 qmail_rootmail_fixup
232 qmail_tcprules_build
233
234 qmail_config_notice
235 qmail_supervise_config_notice
236 elog
237 elog "If you are looking for documentation, check those links:"
238 elog "http://www.gentoo.org/doc/en/qmail-howto.xml"
239 elog " -- qmail/vpopmail Virtual Mail Hosting System Guide"
240 elog "http://www.lifewithqmail.com/"
241 elog " -- Life with qmail"
242 elog
243 }
244
245 pkg_preinst() {
246 qmail_tcprules_fixup
247 }
248
249 pkg_config() {
250 # avoid some weird locale problems
251 export LC_ALL=C
252
253 qmail_config_fast
254 qmail_tcprules_config
255 qmail_tcprules_build
256
257 use ssl && qmail_ssl_generate
258 }