1 |
radhermit 10/11/27 22:47:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postfix-2.7.2.ebuild |
5 |
Removed: postfix-2.7.1-r1.ebuild |
6 |
Log: |
7 |
Version bump (bug #346875 by Michael Orlitzky) and remove old. Remove unnecessary version restriction on net-mail/mailbase dependency, remove old warnings, use emake instead of make, and add warning for a potential compatibility problem on systems using certificate verification. |
8 |
|
9 |
(Portage version: 2.2.0_alpha5/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.221 mail-mta/postfix/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?rev=1.221&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?rev=1.221&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?r1=1.220&r2=1.221 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v |
21 |
retrieving revision 1.220 |
22 |
retrieving revision 1.221 |
23 |
diff -u -r1.220 -r1.221 |
24 |
--- ChangeLog 7 Nov 2010 23:23:27 -0000 1.220 |
25 |
+++ ChangeLog 27 Nov 2010 22:47:41 -0000 1.221 |
26 |
@@ -1,6 +1,15 @@ |
27 |
# ChangeLog for mail-mta/postfix |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.220 2010/11/07 23:23:27 radhermit Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.221 2010/11/27 22:47:41 radhermit Exp $ |
31 |
+ |
32 |
+*postfix-2.7.2 (27 Nov 2010) |
33 |
+ |
34 |
+ 27 Nov 2010; Tim Harder <radhermit@g.o> -postfix-2.7.1-r1.ebuild, |
35 |
+ +postfix-2.7.2.ebuild: |
36 |
+ Version bump (bug #346875 by Michael Orlitzky) and remove old. Remove |
37 |
+ unnecessary version restriction on net-mail/mailbase dependency, remove old |
38 |
+ warnings, use emake instead of make, and add warning for a potential |
39 |
+ compatibility problem on systems using certificate verification. |
40 |
|
41 |
*postfix-2.7.1-r1 (07 Nov 2010) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 mail-mta/postfix/postfix-2.7.2.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/postfix-2.7.2.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/postfix-2.7.2.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: postfix-2.7.2.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2010 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.7.2.ebuild,v 1.1 2010/11/27 22:47:41 radhermit Exp $ |
56 |
|
57 |
EAPI=3 |
58 |
|
59 |
inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam |
60 |
|
61 |
MY_PV="${PV/_rc/-RC}" |
62 |
MY_SRC="${PN}-${MY_PV}" |
63 |
MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
64 |
VDA_PV="2.7.1" |
65 |
VDA_P="${PN}-vda-${VDA_PV}" |
66 |
RC_VER="2.5" |
67 |
|
68 |
DESCRIPTION="A fast and secure drop-in replacement for sendmail." |
69 |
HOMEPAGE="http://www.postfix.org/" |
70 |
SRC_URI="${MY_URI}/${MY_SRC}.tar.gz |
71 |
vda? ( http://vda.sourceforge.net/VDA/${VDA_P}.patch ) " |
72 |
|
73 |
LICENSE="IBM" |
74 |
SLOT="0" |
75 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
76 |
IUSE="cdb dovecot-sasl hardened ipv6 ldap mbox mysql nis pam postgres sasl selinux ssl vda" |
77 |
|
78 |
PROVIDE="virtual/mta virtual/mda" |
79 |
|
80 |
DEPEND=">=sys-libs/db-3.2 |
81 |
>=dev-libs/libpcre-3.4 |
82 |
cdb? ( || ( >=dev-db/cdb-0.75-r1 >=dev-db/tinycdb-0.76 ) ) |
83 |
ldap? ( >=net-nds/openldap-1.2 ) |
84 |
mysql? ( virtual/mysql ) |
85 |
pam? ( virtual/pam ) |
86 |
postgres? ( dev-db/postgresql-base ) |
87 |
sasl? ( >=dev-libs/cyrus-sasl-2 ) |
88 |
ssl? ( >=dev-libs/openssl-0.9.6g )" |
89 |
|
90 |
RDEPEND="${DEPEND} |
91 |
net-mail/mailbase |
92 |
!virtual/mta |
93 |
!net-mail/mailwrapper |
94 |
selinux? ( sec-policy/selinux-postfix )" |
95 |
|
96 |
S="${WORKDIR}/${MY_SRC}" |
97 |
|
98 |
group_user_check() { |
99 |
einfo "Checking for postfix group ..." |
100 |
enewgroup postfix 207 |
101 |
einfo "Checking for postdrop group ..." |
102 |
enewgroup postdrop 208 |
103 |
einfo "Checking for postfix user ..." |
104 |
enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
105 |
} |
106 |
|
107 |
pkg_setup() { |
108 |
# Add postfix, postdrop user/group (bug #77565) |
109 |
group_user_check || die "Failed to check/add needed user/group" |
110 |
} |
111 |
|
112 |
src_prepare() { |
113 |
if use vda ; then |
114 |
epatch "${DISTDIR}/${VDA_P}.patch" |
115 |
fi |
116 |
|
117 |
sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
118 |
src/util/sys_defs.h || die "sed failed" |
119 |
|
120 |
# change default paths to better comply with portage standard paths |
121 |
sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
122 |
} |
123 |
|
124 |
src_configure() { |
125 |
# Make sure LDFLAGS get passed down to the executables. |
126 |
local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -lpcre -lcrypt -lpthread" |
127 |
|
128 |
use pam && mylibs="${mylibs} -lpam" |
129 |
|
130 |
if use ldap ; then |
131 |
mycc="${mycc} -DHAS_LDAP" |
132 |
mylibs="${mylibs} -lldap -llber" |
133 |
fi |
134 |
|
135 |
if use mysql ; then |
136 |
mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
137 |
mylibs="${mylibs} -lmysqlclient -lm -lz" |
138 |
fi |
139 |
|
140 |
if use postgres ; then |
141 |
mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
142 |
mylibs="${mylibs} -lpq -L$(pg_config --libdir)" |
143 |
fi |
144 |
|
145 |
if use ssl ; then |
146 |
mycc="${mycc} -DUSE_TLS" |
147 |
mylibs="${mylibs} -lssl -lcrypto" |
148 |
fi |
149 |
|
150 |
if use sasl ; then |
151 |
if use dovecot-sasl ; then |
152 |
# Set dovecot as default. |
153 |
mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
154 |
fi |
155 |
mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
156 |
mylibs="${mylibs} -lsasl2" |
157 |
elif use dovecot-sasl ; then |
158 |
mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
159 |
fi |
160 |
|
161 |
if ! use nis ; then |
162 |
sed -i -e "s|#define HAS_NIS|//#define HAS_NIS|g" \ |
163 |
src/util/sys_defs.h || die "sed failed" |
164 |
fi |
165 |
|
166 |
if use cdb ; then |
167 |
mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
168 |
CDB_LIBS="" |
169 |
|
170 |
# Tinycdb is preferred. |
171 |
if has_version dev-db/tinycdb ; then |
172 |
einfo "Building with dev-db/tinycdb" |
173 |
CDB_LIBS="-lcdb" |
174 |
else |
175 |
einfo "Building with dev-db/cdb" |
176 |
CDB_PATH="/usr/$(get_libdir)" |
177 |
for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
178 |
CDB_LIBS="${CDB_LIBS} ${CDB_PATH}/${i}" |
179 |
done |
180 |
fi |
181 |
|
182 |
mylibs="${mylibs} ${CDB_LIBS}" |
183 |
fi |
184 |
|
185 |
mycc="${mycc} -DDEF_DAEMON_DIR=\\\"/usr/$(get_libdir)/postfix\\\"" |
186 |
mycc="${mycc} -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\"" |
187 |
mycc="${mycc} -DDEF_README_DIR=\\\"/usr/share/doc/${PF}/readme\\\"" |
188 |
mycc="${mycc} -DDEF_HTML_DIR=\\\"/usr/share/doc/${PF}/html\\\"" |
189 |
|
190 |
# Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
191 |
# Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
192 |
mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
193 |
filter-lfs-flags |
194 |
|
195 |
local my_cc=$(tc-getCC) |
196 |
einfo "CC=${my_cc:=gcc}" |
197 |
|
198 |
# Workaround for bug #76512 |
199 |
if use hardened ; then |
200 |
[[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
201 |
fi |
202 |
|
203 |
emake DEBUG="" CC="${my_cc:=gcc}" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
204 |
makefiles || die "configure problem" |
205 |
} |
206 |
|
207 |
src_install () { |
208 |
/bin/sh postfix-install \ |
209 |
-non-interactive \ |
210 |
install_root="${D}" \ |
211 |
config_directory="/usr/share/doc/${PF}/defaults" \ |
212 |
readme_directory="/usr/share/doc/${PF}/readme" \ |
213 |
|| die "postfix-install failed" |
214 |
|
215 |
# Fix spool removal on upgrade |
216 |
rm -Rf "${D}/var" |
217 |
keepdir /var/spool/postfix |
218 |
|
219 |
# Install rmail for UUCP, closes bug #19127 |
220 |
dobin auxiliary/rmail/rmail |
221 |
|
222 |
# Provide another link for legacy FSH |
223 |
dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
224 |
|
225 |
# Install qshape tool |
226 |
dobin auxiliary/qshape/qshape.pl |
227 |
doman man/man1/qshape.1 |
228 |
|
229 |
# Performance tuning tools and their manuals |
230 |
dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
231 |
doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
232 |
|
233 |
# Set proper permissions on required files/directories |
234 |
dodir /var/lib/postfix |
235 |
keepdir /var/lib/postfix |
236 |
fowners postfix:postfix /var/lib/postfix |
237 |
fowners postfix:postfix /var/lib/postfix/.keep_${CATEGORY}_${PN}-${SLOT} |
238 |
fperms 0750 /var/lib/postfix |
239 |
fowners root:postdrop /usr/sbin/post{drop,queue} |
240 |
fperms 02711 /usr/sbin/post{drop,queue} |
241 |
|
242 |
keepdir /etc/postfix |
243 |
mv "${D}"/usr/share/doc/${PF}/defaults/*.cf "${D}"/etc/postfix |
244 |
if use mbox ; then |
245 |
mypostconf="mail_spool_directory=/var/spool/mail" |
246 |
else |
247 |
mypostconf="home_mailbox=.maildir/" |
248 |
fi |
249 |
"${D}/usr/sbin/postconf" -c "${D}/etc/postfix" \ |
250 |
-e ${mypostconf} || die "postconf failed" |
251 |
|
252 |
insinto /etc/postfix |
253 |
newins "${FILESDIR}/smtp.pass" saslpass |
254 |
fperms 600 /etc/postfix/saslpass |
255 |
|
256 |
newinitd "${FILESDIR}/postfix.rc6.${RC_VER}" postfix || die "newinitd failed" |
257 |
|
258 |
mv "${S}/examples" "${D}/usr/share/doc/${PF}/" |
259 |
dodoc *README COMPATIBILITY HISTORY INSTALL PORTING RELEASE_NOTES* |
260 |
dohtml html/* |
261 |
|
262 |
pamd_mimic_system smtp auth account |
263 |
|
264 |
if use sasl ; then |
265 |
insinto /etc/sasl2 |
266 |
newins "${FILESDIR}/smtp.sasl" smtpd.conf |
267 |
fi |
268 |
} |
269 |
|
270 |
pkg_postinst() { |
271 |
# Add postfix, postdrop user/group (bug #77565) |
272 |
group_user_check || die "Failed to check/add needed user/group" |
273 |
|
274 |
# Do not install server.{key,pem) SSL certificates if they already exist |
275 |
if use ssl && [[ ! -f "${ROOT}"/etc/ssl/postfix/server.key \ |
276 |
&& ! -f "${ROOT}"/etc/ssl/postfix/server.pem ]] ; then |
277 |
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Postfix SMTP Server}" |
278 |
install_cert /etc/ssl/postfix/server |
279 |
chown postfix:mail "${ROOT}"/etc/ssl/postfix/server.{key,pem} |
280 |
fi |
281 |
|
282 |
ebegin "Fixing queue directories and permissions" |
283 |
"${ROOT}/usr/$(get_libdir)/postfix/post-install" upgrade-permissions \ |
284 |
daemon_directory=${ROOT}/usr/$(get_libdir)/postfix |
285 |
echo |
286 |
|
287 |
if [[ ! -e /etc/mail/aliases.db ]] ; then |
288 |
echo |
289 |
ewarn "You must edit /etc/mail/aliases to suit your needs" |
290 |
ewarn "and then run /usr/bin/newaliases. Postfix will not" |
291 |
ewarn "work correctly without it." |
292 |
fi |
293 |
|
294 |
if [[ -e /etc/mailer.conf ]] ; then |
295 |
einfo |
296 |
einfo "mailwrapper support is discontinued." |
297 |
einfo "You may want to 'emerge -C mailwrapper' now." |
298 |
einfo |
299 |
fi |
300 |
|
301 |
if use ssl ; then |
302 |
elog |
303 |
elog "Postfix no longer appends the system-supplied default CA certificates to" |
304 |
elog "the lists specified with *_tls_CAfile or with *_tls_CApath. This" |
305 |
elog "prevents third-party certificates from getting mail relay permission" |
306 |
elog "with the permit_tls_all_clientcerts feature." |
307 |
elog |
308 |
elog "Unfortunately this change may cause compatibility problems when" |
309 |
elog "configurations rely on certificate verification for other purposes." |
310 |
elog "Specify \"tls_append_default_CA = yes\" for backwards compatibility." |
311 |
elog |
312 |
fi |
313 |
} |