Gentoo Archives: gentoo-commits

From: Eray Aslan <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/postfix/
Date: Wed, 05 Aug 2020 05:33:59
Message-Id: 1596605624.4ab35d07d52f051c9f826df7f27bf51d9f856b7a.eras@gentoo
1 commit: 4ab35d07d52f051c9f826df7f27bf51d9f856b7a
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 5 05:33:44 2020 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 5 05:33:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ab35d07
7
8 mail-mta/postfix: remove old
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Eray Aslan <eras <AT> gentoo.org>
12
13 mail-mta/postfix/Manifest | 3 -
14 mail-mta/postfix/postfix-3.5.2.ebuild | 316 ----------------------------------
15 mail-mta/postfix/postfix-3.5.3.ebuild | 316 ----------------------------------
16 mail-mta/postfix/postfix-3.5.4.ebuild | 316 ----------------------------------
17 4 files changed, 951 deletions(-)
18
19 diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest
20 index 42ac9f7b0fe..4a217463db3 100644
21 --- a/mail-mta/postfix/Manifest
22 +++ b/mail-mta/postfix/Manifest
23 @@ -1,6 +1,3 @@
24 DIST postfix-3.5.1.tar.gz 4609587 BLAKE2B 94b06ed536417ca72729d93f03d4fa2dce602508e4c5816ad902740d4203ad3df66d7380ea41859ab75ab327c0f53bc2bbaf09ba45fe83490d02808426a6253d SHA512 9c091cda6c2d54fefc7093736f69dc60dc4d9d2d858260bde1430427bc49caa59f81aea7a992b9764998a4edaaa015ddd50392b8f0a1bccd15f52b563887a698
25 -DIST postfix-3.5.2.tar.gz 4611518 BLAKE2B 4bdf1876c6e210644541fb4fad6ecc4aad2f95afc1d3b7aa30c79e4ca8d2e1c24ad5541f235b8fea91b9831b9b967d6234aae3084938e334bc11a5777004134b SHA512 04e37c4542952dba0f3e44f10775c0bedf343e6382df14a9c43ebc80c005c3f6de68a4e7a7469f32ae74b8e50d10c089d4930eac0cd2e2a9ff1bd8d7481b3a76
26 -DIST postfix-3.5.3.tar.gz 4611925 BLAKE2B bba4b4b2e88753aff20462936bf053a6026e6e84e348887c318e10d6070374c28478f905c69168c018387dfd2d9ad25a8a0c0494d80360938ab9f16883137bfe SHA512 1d020292f244e770353efb634909afdc9ac29b81707547fda1089631febbb8ecdac7c43f6b6ec9bdc4084da2be320bc433064d293811424873062d71d3545235
27 -DIST postfix-3.5.4.tar.gz 4612431 BLAKE2B 482e9d2e3d82d0abbfe02c233608c5620238de34a3ff26a155c3bd9d39c020ab007b32ae549da12617c283b6a8882916bd84fb09a8f71613903acca7d4e7c0d6 SHA512 428c31bc9fea09f260333d6e3707f619424dd21f1f88c5935842b20b008f3a3a1555a962a7b98a0ae6b1c0367587f99064365403923ab1a8895023a10327a442
28 DIST postfix-3.5.6.tar.gz 4613310 BLAKE2B b7d236677cc698bb7028b39a25441c1163e65112573756da6c17b3ef64d0917f86fdcb96ab4a20f13ccee0381420301b57e1e41c3fad11d28c7ad70bd2e1f7e3 SHA512 9187981357a3861d735b8601c61851a5b9e53cde5668a0ebc62ca8b922a2629e53fe3369af6beb9df1a6fe6d4d87822d8882e27410a460ea8c98418b17287b9c
29 DIST postfix-3.6-20200725.tar.gz 4625218 BLAKE2B 4f2d6457e56ea1c49a28e27df13933dab5ebd2fcbc9fdd13ea5873e63b50effc8b0441ce7e21405430ff58169dad117e9045c2aa1735fffd325302ad2e936f43 SHA512 1077ea3f181fa7ea1b4389e1a92d80e2a1a224e7c5a03ef8ca1a550f8f020cff27b7018ed3986d85fd17c0f6989b8d869c547eae43da94bd943ae08795faa257
30
31 diff --git a/mail-mta/postfix/postfix-3.5.2.ebuild b/mail-mta/postfix/postfix-3.5.2.ebuild
32 deleted file mode 100644
33 index 15887b8c8b9..00000000000
34 --- a/mail-mta/postfix/postfix-3.5.2.ebuild
35 +++ /dev/null
36 @@ -1,316 +0,0 @@
37 -# Copyright 1999-2020 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=7
41 -
42 -inherit flag-o-matic pam systemd toolchain-funcs
43 -
44 -MY_PV="${PV/_rc/-RC}"
45 -MY_SRC="${PN}-${MY_PV}"
46 -MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
47 -RC_VER="2.7"
48 -
49 -DESCRIPTION="A fast and secure drop-in replacement for sendmail"
50 -HOMEPAGE="http://www.postfix.org/"
51 -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz"
52 -
53 -LICENSE="|| ( IBM EPL-2.0 )"
54 -SLOT="0"
55 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
56 -IUSE="+berkdb cdb dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl"
57 -
58 -DEPEND=">=dev-libs/libpcre-3.4
59 - dev-lang/perl
60 - berkdb? ( >=sys-libs/db-3.2:* )
61 - cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) )
62 - eai? ( dev-libs/icu:= )
63 - ldap? ( net-nds/openldap )
64 - ldap-bind? ( net-nds/openldap[sasl] )
65 - lmdb? ( >=dev-db/lmdb-0.9.11 )
66 - mysql? ( dev-db/mysql-connector-c:0= )
67 - nis? ( net-libs/libnsl )
68 - pam? ( sys-libs/pam )
69 - postgres? ( dev-db/postgresql:* )
70 - sasl? ( >=dev-libs/cyrus-sasl-2 )
71 - sqlite? ( dev-db/sqlite:3 )
72 - ssl? (
73 - !libressl? ( dev-libs/openssl:0= )
74 - libressl? ( >=dev-libs/libressl-2.9.1:0= )
75 - )"
76 -
77 -RDEPEND="${DEPEND}
78 - acct-group/postfix
79 - acct-group/postdrop
80 - acct-user/postfix
81 - memcached? ( net-misc/memcached )
82 - net-mail/mailbase
83 - !mail-mta/courier
84 - !mail-mta/esmtp
85 - !mail-mta/exim
86 - !mail-mta/mini-qmail
87 - !mail-mta/msmtp[mta]
88 - !mail-mta/netqmail
89 - !mail-mta/nullmailer
90 - !mail-mta/qmail-ldap
91 - !mail-mta/sendmail
92 - !mail-mta/opensmtpd
93 - !mail-mta/ssmtp[mta]
94 - !net-mail/fastforward
95 - selinux? ( sec-policy/selinux-postfix )"
96 -
97 -REQUIRED_USE="ldap-bind? ( ldap sasl )"
98 -
99 -S="${WORKDIR}/${MY_SRC}"
100 -
101 -PATCHES=(
102 - "${FILESDIR}/${PN}-libressl-certkey.patch"
103 - "${FILESDIR}/${PN}-libressl-server.patch"
104 -)
105 -
106 -src_prepare() {
107 - default
108 - sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
109 - src/util/sys_defs.h || die "sed failed"
110 - # change default paths to better comply with portage standard paths
111 - sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
112 -}
113 -
114 -src_configure() {
115 - for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE
116 - do
117 - local AUXLIBS_${name}=""
118 - done
119 -
120 - # Make sure LDFLAGS get passed down to the executables.
121 - local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl"
122 - AUXLIBS_PCRE="$(pcre-config --libs)"
123 -
124 - use pam && mylibs="${mylibs} -lpam"
125 -
126 - if use ldap; then
127 - mycc="${mycc} -DHAS_LDAP"
128 - AUXLIBS_LDAP="-lldap -llber"
129 - fi
130 -
131 - if use mysql; then
132 - mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)"
133 - AUXLIBS_MYSQL="$(mysql_config --libs)"
134 - fi
135 -
136 - if use postgres; then
137 - mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)"
138 - AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq"
139 - fi
140 -
141 - if use sqlite; then
142 - mycc="${mycc} -DHAS_SQLITE"
143 - AUXLIBS_SQLITE="-lsqlite3 -lpthread"
144 - fi
145 -
146 - if use ssl; then
147 - mycc="${mycc} -DUSE_TLS"
148 - mylibs="${mylibs} -lssl -lcrypto"
149 - fi
150 -
151 - if use lmdb; then
152 - mycc="${mycc} -DHAS_LMDB"
153 - AUXLIBS_LMDB="-llmdb -lpthread"
154 - fi
155 -
156 - if ! use eai; then
157 - mycc="${mycc} -DNO_EAI"
158 - fi
159 -
160 - # broken. and "in other words, not supported" by upstream.
161 - # Use inet_protocols setting in main.cf
162 - #if ! use ipv6; then
163 - # mycc="${mycc} -DNO_IPV6"
164 - #fi
165 -
166 - if use sasl; then
167 - if use dovecot-sasl; then
168 - # Set dovecot as default.
169 - mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
170 - fi
171 - if use ldap-bind; then
172 - mycc="${mycc} -DUSE_LDAP_SASL"
173 - fi
174 - mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
175 - mylibs="${mylibs} -lsasl2"
176 - elif use dovecot-sasl; then
177 - mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
178 - fi
179 -
180 - if ! use nis; then
181 - mycc="${mycc} -DNO_NIS"
182 - fi
183 -
184 - if ! use berkdb; then
185 - mycc="${mycc} -DNO_DB"
186 - if use cdb; then
187 - # change default hash format from Berkeley DB to cdb
188 - mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\""
189 - fi
190 - fi
191 -
192 - if use cdb; then
193 - mycc="${mycc} -DHAS_CDB -I/usr/include/cdb"
194 - # Tinycdb is preferred.
195 - if has_version dev-db/tinycdb ; then
196 - einfo "Building with dev-db/tinycdb"
197 - AUXLIBS_CDB="-lcdb"
198 - else
199 - einfo "Building with dev-db/cdb"
200 - CDB_PATH="/usr/$(get_libdir)"
201 - for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
202 - AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}"
203 - done
204 - fi
205 - fi
206 -
207 - # Robin H. Johnson <robbat2@g.o> 17/Nov/2006
208 - # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
209 - mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
210 - filter-lfs-flags
211 -
212 - # Workaround for bug #76512
213 - if use hardened; then
214 - [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os
215 - fi
216 -
217 - # Remove annoying C++ comment style warnings - bug #378099
218 - append-flags -Wno-comment
219 -
220 - sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs
221 - sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs
222 -
223 - emake makefiles shared=yes dynamicmaps=no pie=yes \
224 - shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \
225 - DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
226 - AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \
227 - AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \
228 - AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \
229 - AUXLIBS_SQLITE="${AUXLIBS_SQLITE}"
230 -}
231 -
232 -src_install() {
233 - LD_LIBRARY_PATH="${S}/lib" \
234 - /bin/sh postfix-install \
235 - -non-interactive \
236 - install_root="${D}" \
237 - config_directory="/etc/postfix" \
238 - manpage_directory="/usr/share/man" \
239 - command_directory="/usr/sbin" \
240 - mailq_path="/usr/bin/mailq" \
241 - newaliases_path="/usr/bin/newaliases" \
242 - sendmail_path="/usr/sbin/sendmail" \
243 - || die "postfix-install failed"
244 -
245 - # Fix spool removal on upgrade
246 - rm -Rf "${D}"/var
247 - keepdir /var/spool/postfix
248 -
249 - # Install rmail for UUCP, closes bug #19127
250 - dobin auxiliary/rmail/rmail
251 -
252 - # Provide another link for legacy FSH
253 - dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail
254 -
255 - # Install qshape, posttls-finger and collate
256 - dobin auxiliary/qshape/qshape.pl
257 - doman man/man1/qshape.1
258 - dobin bin/posttls-finger
259 - doman man/man1/posttls-finger.1
260 - dobin auxiliary/collate/collate.pl
261 - newdoc auxiliary/collate/README README.collate
262 -
263 - # Performance tuning tools and their manuals
264 - dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
265 - doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1
266 -
267 - # Set proper permissions on required files/directories
268 - keepdir /var/lib/postfix
269 - fowners -R postfix:postfix /var/lib/postfix
270 - fperms 0750 /var/lib/postfix
271 - fowners root:postdrop /usr/sbin/post{drop,queue}
272 - fperms 02755 /usr/sbin/post{drop,queue}
273 -
274 - keepdir /etc/postfix
275 - keepdir /etc/postfix/postfix-files.d
276 - if use mbox; then
277 - mypostconf="mail_spool_directory=/var/spool/mail"
278 - else
279 - mypostconf="home_mailbox=.maildir/"
280 - fi
281 - LD_LIBRARY_PATH="${S}/lib" \
282 - "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \
283 - -e ${mypostconf} || die "postconf failed"
284 -
285 - insinto /etc/postfix
286 - newins "${FILESDIR}"/smtp.pass saslpass
287 - fperms 600 /etc/postfix/saslpass
288 -
289 - newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix
290 - # do not start mysql/postgres unnecessarily - bug #359913
291 - use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix"
292 - use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix"
293 -
294 - dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES*
295 - mv "${S}"/examples "${D}"/usr/share/doc/${PF}/
296 - # postfix set-permissions expects uncompressed man files
297 - docompress -x /usr/share/man
298 -
299 - pamd_mimic_system smtp auth account
300 -
301 - if use sasl; then
302 - insinto /etc/sasl2
303 - newins "${FILESDIR}"/smtp.sasl smtpd.conf
304 - fi
305 -
306 - # header files
307 - insinto /usr/include/postfix
308 - doins include/*.h
309 -
310 - if has_version mail-mta/postfix; then
311 - # let the sysadmin decide when to change the compatibility_level
312 - sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die
313 - fi
314 -
315 - systemd_dounit "${FILESDIR}/${PN}.service"
316 -}
317 -
318 -pkg_preinst() {
319 - if has_version '<mail-mta/postfix-3.4'; then
320 - elog
321 - elog "Postfix-3.4 introduces a new master.cf service 'postlog'"
322 - elog "with type 'unix-dgram' that is used by the new postlogd(8) daemon."
323 - elog "Before backing out to an older Postfix version, edit the master.cf"
324 - elog "file and remove the postlog entry."
325 - elog
326 - fi
327 -}
328 -
329 -pkg_postinst() {
330 - if [[ ! -e /etc/mail/aliases.db ]] ; then
331 - ewarn
332 - ewarn "You must edit /etc/mail/aliases to suit your needs"
333 - ewarn "and then run /usr/bin/newaliases. Postfix will not"
334 - ewarn "work correctly without it."
335 - ewarn
336 - fi
337 -
338 - # check and fix file permissions
339 - "${EROOT}"/usr/sbin/postfix set-permissions
340 -
341 - # configure tls
342 - if use ssl ; then
343 - if "${EROOT}"/usr/sbin/postfix tls all-default-client; then
344 - elog "To configure client side TLS settings:"
345 - elog "${EROOT}"/usr/sbin/postfix tls enable-client
346 - fi
347 - if "${EROOT}"/usr/sbin/postfix tls all-default-server; then
348 - elog "To configure server side TLS settings:"
349 - elog "${EROOT}"/usr/sbin/postfix tls enable-server
350 - fi
351 - fi
352 -}
353
354 diff --git a/mail-mta/postfix/postfix-3.5.3.ebuild b/mail-mta/postfix/postfix-3.5.3.ebuild
355 deleted file mode 100644
356 index 15887b8c8b9..00000000000
357 --- a/mail-mta/postfix/postfix-3.5.3.ebuild
358 +++ /dev/null
359 @@ -1,316 +0,0 @@
360 -# Copyright 1999-2020 Gentoo Authors
361 -# Distributed under the terms of the GNU General Public License v2
362 -
363 -EAPI=7
364 -
365 -inherit flag-o-matic pam systemd toolchain-funcs
366 -
367 -MY_PV="${PV/_rc/-RC}"
368 -MY_SRC="${PN}-${MY_PV}"
369 -MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
370 -RC_VER="2.7"
371 -
372 -DESCRIPTION="A fast and secure drop-in replacement for sendmail"
373 -HOMEPAGE="http://www.postfix.org/"
374 -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz"
375 -
376 -LICENSE="|| ( IBM EPL-2.0 )"
377 -SLOT="0"
378 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
379 -IUSE="+berkdb cdb dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl"
380 -
381 -DEPEND=">=dev-libs/libpcre-3.4
382 - dev-lang/perl
383 - berkdb? ( >=sys-libs/db-3.2:* )
384 - cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) )
385 - eai? ( dev-libs/icu:= )
386 - ldap? ( net-nds/openldap )
387 - ldap-bind? ( net-nds/openldap[sasl] )
388 - lmdb? ( >=dev-db/lmdb-0.9.11 )
389 - mysql? ( dev-db/mysql-connector-c:0= )
390 - nis? ( net-libs/libnsl )
391 - pam? ( sys-libs/pam )
392 - postgres? ( dev-db/postgresql:* )
393 - sasl? ( >=dev-libs/cyrus-sasl-2 )
394 - sqlite? ( dev-db/sqlite:3 )
395 - ssl? (
396 - !libressl? ( dev-libs/openssl:0= )
397 - libressl? ( >=dev-libs/libressl-2.9.1:0= )
398 - )"
399 -
400 -RDEPEND="${DEPEND}
401 - acct-group/postfix
402 - acct-group/postdrop
403 - acct-user/postfix
404 - memcached? ( net-misc/memcached )
405 - net-mail/mailbase
406 - !mail-mta/courier
407 - !mail-mta/esmtp
408 - !mail-mta/exim
409 - !mail-mta/mini-qmail
410 - !mail-mta/msmtp[mta]
411 - !mail-mta/netqmail
412 - !mail-mta/nullmailer
413 - !mail-mta/qmail-ldap
414 - !mail-mta/sendmail
415 - !mail-mta/opensmtpd
416 - !mail-mta/ssmtp[mta]
417 - !net-mail/fastforward
418 - selinux? ( sec-policy/selinux-postfix )"
419 -
420 -REQUIRED_USE="ldap-bind? ( ldap sasl )"
421 -
422 -S="${WORKDIR}/${MY_SRC}"
423 -
424 -PATCHES=(
425 - "${FILESDIR}/${PN}-libressl-certkey.patch"
426 - "${FILESDIR}/${PN}-libressl-server.patch"
427 -)
428 -
429 -src_prepare() {
430 - default
431 - sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
432 - src/util/sys_defs.h || die "sed failed"
433 - # change default paths to better comply with portage standard paths
434 - sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
435 -}
436 -
437 -src_configure() {
438 - for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE
439 - do
440 - local AUXLIBS_${name}=""
441 - done
442 -
443 - # Make sure LDFLAGS get passed down to the executables.
444 - local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl"
445 - AUXLIBS_PCRE="$(pcre-config --libs)"
446 -
447 - use pam && mylibs="${mylibs} -lpam"
448 -
449 - if use ldap; then
450 - mycc="${mycc} -DHAS_LDAP"
451 - AUXLIBS_LDAP="-lldap -llber"
452 - fi
453 -
454 - if use mysql; then
455 - mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)"
456 - AUXLIBS_MYSQL="$(mysql_config --libs)"
457 - fi
458 -
459 - if use postgres; then
460 - mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)"
461 - AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq"
462 - fi
463 -
464 - if use sqlite; then
465 - mycc="${mycc} -DHAS_SQLITE"
466 - AUXLIBS_SQLITE="-lsqlite3 -lpthread"
467 - fi
468 -
469 - if use ssl; then
470 - mycc="${mycc} -DUSE_TLS"
471 - mylibs="${mylibs} -lssl -lcrypto"
472 - fi
473 -
474 - if use lmdb; then
475 - mycc="${mycc} -DHAS_LMDB"
476 - AUXLIBS_LMDB="-llmdb -lpthread"
477 - fi
478 -
479 - if ! use eai; then
480 - mycc="${mycc} -DNO_EAI"
481 - fi
482 -
483 - # broken. and "in other words, not supported" by upstream.
484 - # Use inet_protocols setting in main.cf
485 - #if ! use ipv6; then
486 - # mycc="${mycc} -DNO_IPV6"
487 - #fi
488 -
489 - if use sasl; then
490 - if use dovecot-sasl; then
491 - # Set dovecot as default.
492 - mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
493 - fi
494 - if use ldap-bind; then
495 - mycc="${mycc} -DUSE_LDAP_SASL"
496 - fi
497 - mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
498 - mylibs="${mylibs} -lsasl2"
499 - elif use dovecot-sasl; then
500 - mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
501 - fi
502 -
503 - if ! use nis; then
504 - mycc="${mycc} -DNO_NIS"
505 - fi
506 -
507 - if ! use berkdb; then
508 - mycc="${mycc} -DNO_DB"
509 - if use cdb; then
510 - # change default hash format from Berkeley DB to cdb
511 - mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\""
512 - fi
513 - fi
514 -
515 - if use cdb; then
516 - mycc="${mycc} -DHAS_CDB -I/usr/include/cdb"
517 - # Tinycdb is preferred.
518 - if has_version dev-db/tinycdb ; then
519 - einfo "Building with dev-db/tinycdb"
520 - AUXLIBS_CDB="-lcdb"
521 - else
522 - einfo "Building with dev-db/cdb"
523 - CDB_PATH="/usr/$(get_libdir)"
524 - for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
525 - AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}"
526 - done
527 - fi
528 - fi
529 -
530 - # Robin H. Johnson <robbat2@g.o> 17/Nov/2006
531 - # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
532 - mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
533 - filter-lfs-flags
534 -
535 - # Workaround for bug #76512
536 - if use hardened; then
537 - [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os
538 - fi
539 -
540 - # Remove annoying C++ comment style warnings - bug #378099
541 - append-flags -Wno-comment
542 -
543 - sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs
544 - sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs
545 -
546 - emake makefiles shared=yes dynamicmaps=no pie=yes \
547 - shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \
548 - DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
549 - AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \
550 - AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \
551 - AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \
552 - AUXLIBS_SQLITE="${AUXLIBS_SQLITE}"
553 -}
554 -
555 -src_install() {
556 - LD_LIBRARY_PATH="${S}/lib" \
557 - /bin/sh postfix-install \
558 - -non-interactive \
559 - install_root="${D}" \
560 - config_directory="/etc/postfix" \
561 - manpage_directory="/usr/share/man" \
562 - command_directory="/usr/sbin" \
563 - mailq_path="/usr/bin/mailq" \
564 - newaliases_path="/usr/bin/newaliases" \
565 - sendmail_path="/usr/sbin/sendmail" \
566 - || die "postfix-install failed"
567 -
568 - # Fix spool removal on upgrade
569 - rm -Rf "${D}"/var
570 - keepdir /var/spool/postfix
571 -
572 - # Install rmail for UUCP, closes bug #19127
573 - dobin auxiliary/rmail/rmail
574 -
575 - # Provide another link for legacy FSH
576 - dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail
577 -
578 - # Install qshape, posttls-finger and collate
579 - dobin auxiliary/qshape/qshape.pl
580 - doman man/man1/qshape.1
581 - dobin bin/posttls-finger
582 - doman man/man1/posttls-finger.1
583 - dobin auxiliary/collate/collate.pl
584 - newdoc auxiliary/collate/README README.collate
585 -
586 - # Performance tuning tools and their manuals
587 - dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
588 - doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1
589 -
590 - # Set proper permissions on required files/directories
591 - keepdir /var/lib/postfix
592 - fowners -R postfix:postfix /var/lib/postfix
593 - fperms 0750 /var/lib/postfix
594 - fowners root:postdrop /usr/sbin/post{drop,queue}
595 - fperms 02755 /usr/sbin/post{drop,queue}
596 -
597 - keepdir /etc/postfix
598 - keepdir /etc/postfix/postfix-files.d
599 - if use mbox; then
600 - mypostconf="mail_spool_directory=/var/spool/mail"
601 - else
602 - mypostconf="home_mailbox=.maildir/"
603 - fi
604 - LD_LIBRARY_PATH="${S}/lib" \
605 - "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \
606 - -e ${mypostconf} || die "postconf failed"
607 -
608 - insinto /etc/postfix
609 - newins "${FILESDIR}"/smtp.pass saslpass
610 - fperms 600 /etc/postfix/saslpass
611 -
612 - newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix
613 - # do not start mysql/postgres unnecessarily - bug #359913
614 - use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix"
615 - use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix"
616 -
617 - dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES*
618 - mv "${S}"/examples "${D}"/usr/share/doc/${PF}/
619 - # postfix set-permissions expects uncompressed man files
620 - docompress -x /usr/share/man
621 -
622 - pamd_mimic_system smtp auth account
623 -
624 - if use sasl; then
625 - insinto /etc/sasl2
626 - newins "${FILESDIR}"/smtp.sasl smtpd.conf
627 - fi
628 -
629 - # header files
630 - insinto /usr/include/postfix
631 - doins include/*.h
632 -
633 - if has_version mail-mta/postfix; then
634 - # let the sysadmin decide when to change the compatibility_level
635 - sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die
636 - fi
637 -
638 - systemd_dounit "${FILESDIR}/${PN}.service"
639 -}
640 -
641 -pkg_preinst() {
642 - if has_version '<mail-mta/postfix-3.4'; then
643 - elog
644 - elog "Postfix-3.4 introduces a new master.cf service 'postlog'"
645 - elog "with type 'unix-dgram' that is used by the new postlogd(8) daemon."
646 - elog "Before backing out to an older Postfix version, edit the master.cf"
647 - elog "file and remove the postlog entry."
648 - elog
649 - fi
650 -}
651 -
652 -pkg_postinst() {
653 - if [[ ! -e /etc/mail/aliases.db ]] ; then
654 - ewarn
655 - ewarn "You must edit /etc/mail/aliases to suit your needs"
656 - ewarn "and then run /usr/bin/newaliases. Postfix will not"
657 - ewarn "work correctly without it."
658 - ewarn
659 - fi
660 -
661 - # check and fix file permissions
662 - "${EROOT}"/usr/sbin/postfix set-permissions
663 -
664 - # configure tls
665 - if use ssl ; then
666 - if "${EROOT}"/usr/sbin/postfix tls all-default-client; then
667 - elog "To configure client side TLS settings:"
668 - elog "${EROOT}"/usr/sbin/postfix tls enable-client
669 - fi
670 - if "${EROOT}"/usr/sbin/postfix tls all-default-server; then
671 - elog "To configure server side TLS settings:"
672 - elog "${EROOT}"/usr/sbin/postfix tls enable-server
673 - fi
674 - fi
675 -}
676
677 diff --git a/mail-mta/postfix/postfix-3.5.4.ebuild b/mail-mta/postfix/postfix-3.5.4.ebuild
678 deleted file mode 100644
679 index 15887b8c8b9..00000000000
680 --- a/mail-mta/postfix/postfix-3.5.4.ebuild
681 +++ /dev/null
682 @@ -1,316 +0,0 @@
683 -# Copyright 1999-2020 Gentoo Authors
684 -# Distributed under the terms of the GNU General Public License v2
685 -
686 -EAPI=7
687 -
688 -inherit flag-o-matic pam systemd toolchain-funcs
689 -
690 -MY_PV="${PV/_rc/-RC}"
691 -MY_SRC="${PN}-${MY_PV}"
692 -MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
693 -RC_VER="2.7"
694 -
695 -DESCRIPTION="A fast and secure drop-in replacement for sendmail"
696 -HOMEPAGE="http://www.postfix.org/"
697 -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz"
698 -
699 -LICENSE="|| ( IBM EPL-2.0 )"
700 -SLOT="0"
701 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
702 -IUSE="+berkdb cdb dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl"
703 -
704 -DEPEND=">=dev-libs/libpcre-3.4
705 - dev-lang/perl
706 - berkdb? ( >=sys-libs/db-3.2:* )
707 - cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) )
708 - eai? ( dev-libs/icu:= )
709 - ldap? ( net-nds/openldap )
710 - ldap-bind? ( net-nds/openldap[sasl] )
711 - lmdb? ( >=dev-db/lmdb-0.9.11 )
712 - mysql? ( dev-db/mysql-connector-c:0= )
713 - nis? ( net-libs/libnsl )
714 - pam? ( sys-libs/pam )
715 - postgres? ( dev-db/postgresql:* )
716 - sasl? ( >=dev-libs/cyrus-sasl-2 )
717 - sqlite? ( dev-db/sqlite:3 )
718 - ssl? (
719 - !libressl? ( dev-libs/openssl:0= )
720 - libressl? ( >=dev-libs/libressl-2.9.1:0= )
721 - )"
722 -
723 -RDEPEND="${DEPEND}
724 - acct-group/postfix
725 - acct-group/postdrop
726 - acct-user/postfix
727 - memcached? ( net-misc/memcached )
728 - net-mail/mailbase
729 - !mail-mta/courier
730 - !mail-mta/esmtp
731 - !mail-mta/exim
732 - !mail-mta/mini-qmail
733 - !mail-mta/msmtp[mta]
734 - !mail-mta/netqmail
735 - !mail-mta/nullmailer
736 - !mail-mta/qmail-ldap
737 - !mail-mta/sendmail
738 - !mail-mta/opensmtpd
739 - !mail-mta/ssmtp[mta]
740 - !net-mail/fastforward
741 - selinux? ( sec-policy/selinux-postfix )"
742 -
743 -REQUIRED_USE="ldap-bind? ( ldap sasl )"
744 -
745 -S="${WORKDIR}/${MY_SRC}"
746 -
747 -PATCHES=(
748 - "${FILESDIR}/${PN}-libressl-certkey.patch"
749 - "${FILESDIR}/${PN}-libressl-server.patch"
750 -)
751 -
752 -src_prepare() {
753 - default
754 - sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
755 - src/util/sys_defs.h || die "sed failed"
756 - # change default paths to better comply with portage standard paths
757 - sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
758 -}
759 -
760 -src_configure() {
761 - for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE
762 - do
763 - local AUXLIBS_${name}=""
764 - done
765 -
766 - # Make sure LDFLAGS get passed down to the executables.
767 - local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl"
768 - AUXLIBS_PCRE="$(pcre-config --libs)"
769 -
770 - use pam && mylibs="${mylibs} -lpam"
771 -
772 - if use ldap; then
773 - mycc="${mycc} -DHAS_LDAP"
774 - AUXLIBS_LDAP="-lldap -llber"
775 - fi
776 -
777 - if use mysql; then
778 - mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)"
779 - AUXLIBS_MYSQL="$(mysql_config --libs)"
780 - fi
781 -
782 - if use postgres; then
783 - mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)"
784 - AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq"
785 - fi
786 -
787 - if use sqlite; then
788 - mycc="${mycc} -DHAS_SQLITE"
789 - AUXLIBS_SQLITE="-lsqlite3 -lpthread"
790 - fi
791 -
792 - if use ssl; then
793 - mycc="${mycc} -DUSE_TLS"
794 - mylibs="${mylibs} -lssl -lcrypto"
795 - fi
796 -
797 - if use lmdb; then
798 - mycc="${mycc} -DHAS_LMDB"
799 - AUXLIBS_LMDB="-llmdb -lpthread"
800 - fi
801 -
802 - if ! use eai; then
803 - mycc="${mycc} -DNO_EAI"
804 - fi
805 -
806 - # broken. and "in other words, not supported" by upstream.
807 - # Use inet_protocols setting in main.cf
808 - #if ! use ipv6; then
809 - # mycc="${mycc} -DNO_IPV6"
810 - #fi
811 -
812 - if use sasl; then
813 - if use dovecot-sasl; then
814 - # Set dovecot as default.
815 - mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
816 - fi
817 - if use ldap-bind; then
818 - mycc="${mycc} -DUSE_LDAP_SASL"
819 - fi
820 - mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
821 - mylibs="${mylibs} -lsasl2"
822 - elif use dovecot-sasl; then
823 - mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
824 - fi
825 -
826 - if ! use nis; then
827 - mycc="${mycc} -DNO_NIS"
828 - fi
829 -
830 - if ! use berkdb; then
831 - mycc="${mycc} -DNO_DB"
832 - if use cdb; then
833 - # change default hash format from Berkeley DB to cdb
834 - mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\""
835 - fi
836 - fi
837 -
838 - if use cdb; then
839 - mycc="${mycc} -DHAS_CDB -I/usr/include/cdb"
840 - # Tinycdb is preferred.
841 - if has_version dev-db/tinycdb ; then
842 - einfo "Building with dev-db/tinycdb"
843 - AUXLIBS_CDB="-lcdb"
844 - else
845 - einfo "Building with dev-db/cdb"
846 - CDB_PATH="/usr/$(get_libdir)"
847 - for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
848 - AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}"
849 - done
850 - fi
851 - fi
852 -
853 - # Robin H. Johnson <robbat2@g.o> 17/Nov/2006
854 - # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
855 - mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
856 - filter-lfs-flags
857 -
858 - # Workaround for bug #76512
859 - if use hardened; then
860 - [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os
861 - fi
862 -
863 - # Remove annoying C++ comment style warnings - bug #378099
864 - append-flags -Wno-comment
865 -
866 - sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs
867 - sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs
868 -
869 - emake makefiles shared=yes dynamicmaps=no pie=yes \
870 - shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \
871 - DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
872 - AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \
873 - AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \
874 - AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \
875 - AUXLIBS_SQLITE="${AUXLIBS_SQLITE}"
876 -}
877 -
878 -src_install() {
879 - LD_LIBRARY_PATH="${S}/lib" \
880 - /bin/sh postfix-install \
881 - -non-interactive \
882 - install_root="${D}" \
883 - config_directory="/etc/postfix" \
884 - manpage_directory="/usr/share/man" \
885 - command_directory="/usr/sbin" \
886 - mailq_path="/usr/bin/mailq" \
887 - newaliases_path="/usr/bin/newaliases" \
888 - sendmail_path="/usr/sbin/sendmail" \
889 - || die "postfix-install failed"
890 -
891 - # Fix spool removal on upgrade
892 - rm -Rf "${D}"/var
893 - keepdir /var/spool/postfix
894 -
895 - # Install rmail for UUCP, closes bug #19127
896 - dobin auxiliary/rmail/rmail
897 -
898 - # Provide another link for legacy FSH
899 - dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail
900 -
901 - # Install qshape, posttls-finger and collate
902 - dobin auxiliary/qshape/qshape.pl
903 - doman man/man1/qshape.1
904 - dobin bin/posttls-finger
905 - doman man/man1/posttls-finger.1
906 - dobin auxiliary/collate/collate.pl
907 - newdoc auxiliary/collate/README README.collate
908 -
909 - # Performance tuning tools and their manuals
910 - dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
911 - doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1
912 -
913 - # Set proper permissions on required files/directories
914 - keepdir /var/lib/postfix
915 - fowners -R postfix:postfix /var/lib/postfix
916 - fperms 0750 /var/lib/postfix
917 - fowners root:postdrop /usr/sbin/post{drop,queue}
918 - fperms 02755 /usr/sbin/post{drop,queue}
919 -
920 - keepdir /etc/postfix
921 - keepdir /etc/postfix/postfix-files.d
922 - if use mbox; then
923 - mypostconf="mail_spool_directory=/var/spool/mail"
924 - else
925 - mypostconf="home_mailbox=.maildir/"
926 - fi
927 - LD_LIBRARY_PATH="${S}/lib" \
928 - "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \
929 - -e ${mypostconf} || die "postconf failed"
930 -
931 - insinto /etc/postfix
932 - newins "${FILESDIR}"/smtp.pass saslpass
933 - fperms 600 /etc/postfix/saslpass
934 -
935 - newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix
936 - # do not start mysql/postgres unnecessarily - bug #359913
937 - use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix"
938 - use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix"
939 -
940 - dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES*
941 - mv "${S}"/examples "${D}"/usr/share/doc/${PF}/
942 - # postfix set-permissions expects uncompressed man files
943 - docompress -x /usr/share/man
944 -
945 - pamd_mimic_system smtp auth account
946 -
947 - if use sasl; then
948 - insinto /etc/sasl2
949 - newins "${FILESDIR}"/smtp.sasl smtpd.conf
950 - fi
951 -
952 - # header files
953 - insinto /usr/include/postfix
954 - doins include/*.h
955 -
956 - if has_version mail-mta/postfix; then
957 - # let the sysadmin decide when to change the compatibility_level
958 - sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die
959 - fi
960 -
961 - systemd_dounit "${FILESDIR}/${PN}.service"
962 -}
963 -
964 -pkg_preinst() {
965 - if has_version '<mail-mta/postfix-3.4'; then
966 - elog
967 - elog "Postfix-3.4 introduces a new master.cf service 'postlog'"
968 - elog "with type 'unix-dgram' that is used by the new postlogd(8) daemon."
969 - elog "Before backing out to an older Postfix version, edit the master.cf"
970 - elog "file and remove the postlog entry."
971 - elog
972 - fi
973 -}
974 -
975 -pkg_postinst() {
976 - if [[ ! -e /etc/mail/aliases.db ]] ; then
977 - ewarn
978 - ewarn "You must edit /etc/mail/aliases to suit your needs"
979 - ewarn "and then run /usr/bin/newaliases. Postfix will not"
980 - ewarn "work correctly without it."
981 - ewarn
982 - fi
983 -
984 - # check and fix file permissions
985 - "${EROOT}"/usr/sbin/postfix set-permissions
986 -
987 - # configure tls
988 - if use ssl ; then
989 - if "${EROOT}"/usr/sbin/postfix tls all-default-client; then
990 - elog "To configure client side TLS settings:"
991 - elog "${EROOT}"/usr/sbin/postfix tls enable-client
992 - fi
993 - if "${EROOT}"/usr/sbin/postfix tls all-default-server; then
994 - elog "To configure server side TLS settings:"
995 - elog "${EROOT}"/usr/sbin/postfix tls enable-server
996 - fi
997 - fi
998 -}