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/, mail-mta/postfix/files/
Date: Thu, 08 Aug 2019 05:43:43
Message-Id: 1565242997.41c3137131f3c139d46630694a8e96474c24e6c8.eras@gentoo
1 commit: 41c3137131f3c139d46630694a8e96474c24e6c8
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 8 05:43:17 2019 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 8 05:43:17 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41c31371
7
8 mail-mta/postfix: remove old
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Eray Aslan <eras <AT> gentoo.org>
12
13 mail-mta/postfix/Manifest | 3 -
14 .../postfix/files/postfix-libressl-eccurve.patch | 16 -
15 .../postfix/files/postfix-libressl-runtime.patch | 102 -------
16 .../files/postfix-libressl-session-tickets.patch | 11 -
17 mail-mta/postfix/files/postfix-libressl.patch | 17 --
18 mail-mta/postfix/files/postfix-linux-5.patch | 23 --
19 mail-mta/postfix/postfix-3.2.4.ebuild | 308 --------------------
20 mail-mta/postfix/postfix-3.3.1-r1.ebuild | 300 -------------------
21 mail-mta/postfix/postfix-3.3.4.ebuild | 309 --------------------
22 mail-mta/postfix/postfix-3.4.5.ebuild | 324 ---------------------
23 10 files changed, 1413 deletions(-)
24
25 diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest
26 index b94bafd3271..23ba1de0693 100644
27 --- a/mail-mta/postfix/Manifest
28 +++ b/mail-mta/postfix/Manifest
29 @@ -1,7 +1,4 @@
30 DIST postfix-2.10.9.tar.gz 3820525 BLAKE2B ed1fc10f016cdc63fe2b86c68cca270c98348417babf6d8e05f76fa2550f5cbca95825f14cf54897e66323cdbe6132a1046402b853b6f000ade630277278c748 SHA512 c77df7ccc051bd72271dc5298da0ca4e45397b1ba96fc8be31e095f5b15cd30ebc0b29cf638e76efc65503cb241efd937f2d64aaa97243402c35e2927b7a7b91
31 -DIST postfix-3.2.4.tar.gz 4390376 BLAKE2B 132a6b467f9156d716a92cc7beae0f9a7c47e6a2045e83726a5e7305e6f9bf666ebcfb93a9ab1a96ec988431661059d62e926287bd13089eeb4bab3e8f4b9fc7 SHA512 6dc583d3b1c98f5c8d6486351bee9f92a98b5379cd0d76d26a382379c112317e7a2a58c3a200477a6d0f831c73395257d1a63170df17ea8a65a4048a7df391f8
32 -DIST postfix-3.3.1.tar.gz 4420912 BLAKE2B 065fd04cdfa343a6c50a629e8da47fad71465df790ca88adcad4efc7ab273330c39998c6bf503587b8bcba3d87bb98b1be6413e49449e2241258a99217473c11 SHA512 2307f50f8b7dab1db46ebe4ae30bc5682a25b9c49ae5ae65aa95b4620bb5450dd5929977c0f34b9e73a92ca6af36fd8e24167732420a1a2d89167c7a3b197276
33 -DIST postfix-3.3.4.tar.gz 4429964 BLAKE2B 58812a75e7f8e2e89dce3dd8cb8b779c4b90995ce9d1885cec0fc475c8dc267741ea6c7af6e82fc80e3f71244964df9a5fe776c3b09e5e0cad1f59424dfab6b3 SHA512 fccc524167ea3b85f4fe0fc4ad8312f6d684c1900e7c5c355d4522513f74b588bbfcfd28074a8b69ce038982fcaa359abf585a296df4046184c7da6d0405d0ee
34 DIST postfix-3.4.5.tar.gz 4581301 BLAKE2B 9de66cab6eea610fc83e4629980b3e201b4e3f9185729cb84933aa940b64b7818d0439c5145ea0b635666db92c970e1974f4f439cd3b733c58e1fe5794c046fa SHA512 af59d960b40799f7667935bef8fafb93ae6dcb70abaa77a15cf498571f37fa0429f411f9f08b1b6bfa588d3f572260d14d6d5409f0cd1e82b1c59928b2124c94
35 DIST postfix-3.4.6.tar.gz 4571771 BLAKE2B e08b2e6c01fe54fcc7439182783190f4adb81758a1bbcc1bfec71e02dca91a779308f624e081837f7e2deec8666f10bc51238e90cc952de6c8371fb18790604f SHA512 96430d60cf58b9876e52a742dbfe3ca1da4ec82eeea5cd35c6ee4e69714ddd5601561a6663aac51a34b2d64db4f7678d7c5d720ec9ead807b5d7e87e37434961
36 DIST postfix-3.5-20190724.tar.gz 4606145 BLAKE2B e197542d71d953ca1b86e8bd4bc433a50b52d0ad2aa0874680d1c611be1cf9fdbf309b29884fb7bb7707a5d3380de5131fb5361fceb359048ca0106e5576f7b6 SHA512 eb08681c8660073681ab5c8b6c36acebddaf4f8780b69583117293ba275d03a1bd94f7c08cbcd0dd65f010a480867e419cd008eb9c29a9b95a2101b5ad3b34a0
37
38 diff --git a/mail-mta/postfix/files/postfix-libressl-eccurve.patch b/mail-mta/postfix/files/postfix-libressl-eccurve.patch
39 deleted file mode 100644
40 index 7ce14fd17ad..00000000000
41 --- a/mail-mta/postfix/files/postfix-libressl-eccurve.patch
42 +++ /dev/null
43 @@ -1,16 +0,0 @@
44 -Bug: https://bugs.gentoo.org/659224
45 -$OpenBSD: patch-src_tls_tls_dh_c,v 1.2 2017/02/04 22:09:44 sthen Exp $
46 -
47 -Fix building with LibreSSL
48 -
49 ---- src/tls/tls_dh.c.orig Mon Dec 26 18:47:24 2016
50 -+++ src/tls/tls_dh.c Sat Feb 4 01:45:39 2017
51 -@@ -314,7 +314,7 @@ void tls_auto_eecdh_curves(SSL_CTX *ctx)
52 - * This is a NOP in OpenSSL 1.1.0 and later, where curves are always
53 - * auto-negotiated.
54 - */
55 --#if OPENSSL_VERSION_NUMBER < 0x10100000UL
56 -+#if OPENSSL_VERSION_NUMBER < 0x10100000UL || defined(LIBRESSL_VERSION_NUMBER)
57 - if (SSL_CTX_set_ecdh_auto(ctx, 1) <= 0) {
58 - msg_warn("failed to enable automatic ECDHE curve selection");
59 - tls_print_errors();
60
61 diff --git a/mail-mta/postfix/files/postfix-libressl-runtime.patch b/mail-mta/postfix/files/postfix-libressl-runtime.patch
62 deleted file mode 100644
63 index 814088610a8..00000000000
64 --- a/mail-mta/postfix/files/postfix-libressl-runtime.patch
65 +++ /dev/null
66 @@ -1,102 +0,0 @@
67 ---- src/posttls-finger/posttls-finger.c.orig 2016-08-27 20:27:50 UTC
68 -+++ src/posttls-finger/posttls-finger.c
69 -@@ -1511,7 +1511,8 @@ static int finger(STATE *state)
70 - return (0);
71 - }
72 -
73 --#if defined(USE_TLS) && OPENSSL_VERSION_NUMBER < 0x10100000L
74 -+#if defined(USE_TLS) && \
75 -+ ( OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) )
76 -
77 - /* ssl_cleanup - free memory allocated in the OpenSSL library */
78 -
79 -@@ -1958,7 +1959,8 @@ int main(int argc, char *argv[])
80 - cleanup(&state);
81 -
82 - /* OpenSSL 1.1.0 and later (de)initialization is implicit */
83 --#if defined(USE_TLS) && OPENSSL_VERSION_NUMBER < 0x10100000L
84 -+#if defined(USE_TLS) && \
85 -+ ( OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) )
86 - ssl_cleanup();
87 - #endif
88 -
89 ---- src/tls/tls_client.c.orig 2016-08-27 20:27:50 UTC
90 -+++ src/tls/tls_client.c
91 -@@ -299,7 +299,7 @@ TLS_APPL_STATE *tls_client_init(const TL
92 - */
93 - tls_check_version();
94 -
95 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
96 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
97 -
98 - /*
99 - * Initialize the OpenSSL library by the book! To start with, we must
100 -@@ -441,7 +441,7 @@ TLS_APPL_STATE *tls_client_init(const TL
101 - /*
102 - * 2015-12-05: Ephemeral RSA removed from OpenSSL 1.1.0-dev
103 - */
104 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
105 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
106 -
107 - /*
108 - * According to the OpenSSL documentation, temporary RSA key is needed
109 ---- src/tls/tls_dane.c.orig 2016-08-27 20:27:50 UTC
110 -+++ src/tls/tls_dane.c
111 -@@ -2163,7 +2163,7 @@ static SSL_CTX *ctx_init(const char *CAf
112 - tls_param_init();
113 - tls_check_version();
114 -
115 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
116 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
117 - SSL_load_error_strings();
118 - SSL_library_init();
119 - #endif
120 ---- src/tls/tls_rsa.c.orig 2016-01-03 14:49:51 UTC
121 -+++ src/tls/tls_rsa.c
122 -@@ -57,7 +57,7 @@
123 - /*
124 - * 2015-12-05: Ephemeral RSA removed from OpenSSL 1.1.0-dev
125 - */
126 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
127 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
128 -
129 - /* tls_tmp_rsa_cb - call-back to generate ephemeral RSA key */
130 -
131 -@@ -109,7 +109,7 @@ int main(int unused_argc, char *cons
132 - /*
133 - * 2015-12-05: Ephemeral RSA removed from OpenSSL 1.1.0-dev
134 - */
135 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
136 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
137 - RSA *rsa;
138 -
139 - msg_vstream_init(argv[0], VSTREAM_ERR);
140 ---- src/tls/tls_server.c.orig 2016-08-27 20:27:50 UTC
141 -+++ src/tls/tls_server.c
142 -@@ -174,7 +174,7 @@ static const char server_session_id_cont
143 - #endif /* OPENSSL_VERSION_NUMBER */
144 -
145 - /* OpenSSL 1.1.0 bitrot */
146 --#if OPENSSL_VERSION_NUMBER >= 0x10100000L
147 -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
148 - typedef const unsigned char *session_id_t;
149 -
150 - #else
151 -@@ -377,7 +377,7 @@ TLS_APPL_STATE *tls_server_init(const TL
152 - */
153 - tls_check_version();
154 -
155 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
156 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
157 -
158 - /*
159 - * Initialize the OpenSSL library by the book! To start with, we must
160 -@@ -588,7 +588,7 @@ TLS_APPL_STATE *tls_server_init(const TL
161 - /*
162 - * 2015-12-05: Ephemeral RSA removed from OpenSSL 1.1.0-dev
163 - */
164 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
165 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
166 -
167 - /*
168 - * According to OpenSSL documentation, a temporary RSA key is needed when
169
170 diff --git a/mail-mta/postfix/files/postfix-libressl-session-tickets.patch b/mail-mta/postfix/files/postfix-libressl-session-tickets.patch
171 deleted file mode 100644
172 index fcbc9df63ac..00000000000
173 --- a/mail-mta/postfix/files/postfix-libressl-session-tickets.patch
174 +++ /dev/null
175 @@ -1,11 +0,0 @@
176 ---- src/tls/tls_server.c 2018-11-18 20:11:20.120000000 +1100
177 -+++ src/tls/tls_server.c 2018-11-18 20:11:58.430000000 +1100
178 -@@ -486,7 +486,7 @@
179 - * OpenSSL 0.9.8h, while SSL_NO_TICKET was added in 0.9.8f.
180 - */
181 - #ifdef SSL_OP_NO_TICKET
182 --#if !defined(OPENSSL_NO_TLSEXT) && OPENSSL_VERSION_NUMBER >= 0x0090808fL
183 -+#if !defined(OPENSSL_NO_TLSEXT) && OPENSSL_VERSION_NUMBER >= 0x0090808fL && !defined(LIBRESSL_VERSION_NUMBER)
184 - ticketable = (*var_tls_tkt_cipher && scache_timeout > 0
185 - && !(off & SSL_OP_NO_TICKET));
186 - if (ticketable) {
187
188 diff --git a/mail-mta/postfix/files/postfix-libressl.patch b/mail-mta/postfix/files/postfix-libressl.patch
189 deleted file mode 100644
190 index ce047b76039..00000000000
191 --- a/mail-mta/postfix/files/postfix-libressl.patch
192 +++ /dev/null
193 @@ -1,17 +0,0 @@
194 -OpenBSD patch at:
195 -http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/mail/postfix/snapshot/patches/patch-src_tls_tls_h
196 -$OpenBSD: patch-src_tls_tls_h,v 1.2 2016/02/25 09:39:49 sthen Exp $
197 -
198 -Fix building with LibreSSL
199 -
200 ---- src/tls/tls.h.orig Sat Feb 6 15:09:41 2016
201 -+++ src/tls/tls.h Sun Feb 14 19:54:38 2016
202 -@@ -89,7 +89,7 @@ extern const char *str_tls_level(int);
203 - #endif
204 -
205 - /* Backwards compatibility with OpenSSL < 1.1.0 */
206 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
207 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
208 - #define OpenSSL_version_num SSLeay
209 - #define OpenSSL_version SSLeay_version
210 - #define OPENSSL_VERSION SSLEAY_VERSION
211
212 diff --git a/mail-mta/postfix/files/postfix-linux-5.patch b/mail-mta/postfix/files/postfix-linux-5.patch
213 deleted file mode 100644
214 index a806ab0dbb9..00000000000
215 --- a/mail-mta/postfix/files/postfix-linux-5.patch
216 +++ /dev/null
217 @@ -1,23 +0,0 @@
218 -See http://postfix.1071664.n5.nabble.com/Support-for-quot-Linux-5-quot-td99786.html
219 ---- a/makedefs 2018-02-03 12:20:46.000000000 -0500
220 -+++ b/makedefs 2019-02-18 15:39:17.711376206 -0500
221 -@@ -546,7 +546,7 @@
222 - : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
223 - : ${PLUGIN_LD="${CC-gcc} -shared"}
224 - ;;
225 -- Linux.[34].*) SYSTYPE=LINUX$RELEASE_MAJOR
226 -+ Linux.[345].*) SYSTYPE=LINUX$RELEASE_MAJOR
227 - case "$CCARGS" in
228 - *-DNO_DB*) ;;
229 - *-DHAS_DB*) ;;
230 ---- a/src/util/sys_defs.h 2019-02-18 15:40:19.008167828 -0500
231 -+++ b/src/util/sys_defs.h 2019-02-18 15:42:17.241742169 -0500
232 -@@ -748,7 +748,7 @@
233 - /*
234 - * LINUX.
235 - */
236 --#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4)
237 -+#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5)
238 - #define SUPPORTED
239 - #define UINT32_TYPE unsigned int
240 - #define UINT16_TYPE unsigned short
241
242 diff --git a/mail-mta/postfix/postfix-3.2.4.ebuild b/mail-mta/postfix/postfix-3.2.4.ebuild
243 deleted file mode 100644
244 index 26ce14a75ba..00000000000
245 --- a/mail-mta/postfix/postfix-3.2.4.ebuild
246 +++ /dev/null
247 @@ -1,308 +0,0 @@
248 -# Copyright 1999-2018 Gentoo Authors
249 -# Distributed under the terms of the GNU General Public License v2
250 -
251 -EAPI=6
252 -inherit flag-o-matic pam systemd toolchain-funcs user
253 -
254 -MY_PV="${PV/_pre/-}"
255 -MY_SRC="${PN}-${MY_PV}"
256 -MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
257 -RC_VER="2.7"
258 -
259 -DESCRIPTION="A fast and secure drop-in replacement for sendmail"
260 -HOMEPAGE="http://www.postfix.org/"
261 -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz"
262 -
263 -LICENSE="IBM"
264 -SLOT="0"
265 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sh sparc x86 ~x86-fbsd"
266 -IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl"
267 -
268 -DEPEND=">=dev-libs/libpcre-3.4
269 - dev-lang/perl
270 - berkdb? ( >=sys-libs/db-3.2:* )
271 - cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) )
272 - eai? ( dev-libs/icu:= )
273 - ldap? ( net-nds/openldap )
274 - ldap-bind? ( net-nds/openldap[sasl] )
275 - lmdb? ( >=dev-db/lmdb-0.9.11 )
276 - mysql? ( virtual/mysql )
277 - pam? ( virtual/pam )
278 - postgres? ( dev-db/postgresql:* )
279 - sasl? ( >=dev-libs/cyrus-sasl-2 )
280 - sqlite? ( dev-db/sqlite:3 )
281 - ssl? (
282 - !libressl? ( dev-libs/openssl:0= )
283 - libressl? ( dev-libs/libressl )
284 - )"
285 -
286 -RDEPEND="${DEPEND}
287 - dovecot-sasl? ( net-mail/dovecot )
288 - memcached? ( net-misc/memcached )
289 - net-mail/mailbase
290 - !mail-mta/courier
291 - !mail-mta/esmtp
292 - !mail-mta/exim
293 - !mail-mta/mini-qmail
294 - !mail-mta/msmtp[mta]
295 - !mail-mta/netqmail
296 - !mail-mta/nullmailer
297 - !mail-mta/qmail-ldap
298 - !mail-mta/sendmail
299 - !mail-mta/opensmtpd
300 - !<mail-mta/ssmtp-2.64-r2
301 - !>=mail-mta/ssmtp-2.64-r2[mta]
302 - !net-mail/fastforward
303 - selinux? ( sec-policy/selinux-postfix )"
304 -
305 -REQUIRED_USE="ldap-bind? ( ldap sasl )"
306 -
307 -S="${WORKDIR}/${MY_SRC}"
308 -
309 -pkg_setup() {
310 - # Add postfix, postdrop user/group (bug #77565)
311 - enewgroup postfix 207
312 - enewgroup postdrop 208
313 - enewuser postfix 207 -1 /var/spool/postfix postfix,mail
314 -}
315 -
316 -src_prepare() {
317 - default
318 - sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
319 - src/util/sys_defs.h || die "sed failed"
320 - # change default paths to better comply with portage standard paths
321 - sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
322 - eapply -p0 "${FILESDIR}/${PN}-libressl.patch"
323 - eapply -p0 "${FILESDIR}/${PN}-libressl-runtime.patch"
324 -}
325 -
326 -src_configure() {
327 - for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE
328 - do
329 - local AUXLIBS_${name}=""
330 - done
331 -
332 - # Make sure LDFLAGS get passed down to the executables.
333 - local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl"
334 - AUXLIBS_PCRE="$(pcre-config --libs)"
335 -
336 - use pam && mylibs="${mylibs} -lpam"
337 -
338 - if use ldap; then
339 - mycc="${mycc} -DHAS_LDAP"
340 - AUXLIBS_LDAP="-lldap -llber"
341 - fi
342 -
343 - if use mysql; then
344 - mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)"
345 - AUXLIBS_MYSQL="$(mysql_config --libs)"
346 - fi
347 -
348 - if use postgres; then
349 - mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)"
350 - AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq"
351 - fi
352 -
353 - if use sqlite; then
354 - mycc="${mycc} -DHAS_SQLITE"
355 - AUXLIBS_SQLITE="-lsqlite3 -lpthread"
356 - fi
357 -
358 - if use ssl; then
359 - mycc="${mycc} -DUSE_TLS"
360 - mylibs="${mylibs} -lssl -lcrypto"
361 - fi
362 -
363 - if use lmdb; then
364 - mycc="${mycc} -DHAS_LMDB"
365 - AUXLIBS_LMDB="-llmdb -lpthread"
366 - fi
367 -
368 - if ! use eai; then
369 - mycc="${mycc} -DNO_EAI"
370 - fi
371 -
372 - # broken. and "in other words, not supported" by upstream.
373 - # Use inet_protocols setting in main.cf
374 - #if ! use ipv6; then
375 - # mycc="${mycc} -DNO_IPV6"
376 - #fi
377 -
378 - if use sasl; then
379 - if use dovecot-sasl; then
380 - # Set dovecot as default.
381 - mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
382 - fi
383 - if use ldap-bind; then
384 - mycc="${mycc} -DUSE_LDAP_SASL"
385 - fi
386 - mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
387 - mylibs="${mylibs} -lsasl2"
388 - elif use dovecot-sasl; then
389 - mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
390 - fi
391 -
392 - if ! use nis; then
393 - mycc="${mycc} -DNO_NIS"
394 - fi
395 -
396 - if ! use berkdb; then
397 - mycc="${mycc} -DNO_DB"
398 - if use cdb; then
399 - # change default hash format from Berkeley DB to cdb
400 - mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\""
401 - fi
402 - fi
403 -
404 - if use cdb; then
405 - mycc="${mycc} -DHAS_CDB -I/usr/include/cdb"
406 - # Tinycdb is preferred.
407 - if has_version dev-db/tinycdb ; then
408 - einfo "Building with dev-db/tinycdb"
409 - AUXLIBS_CDB="-lcdb"
410 - else
411 - einfo "Building with dev-db/cdb"
412 - CDB_PATH="/usr/$(get_libdir)"
413 - for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
414 - AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}"
415 - done
416 - fi
417 - fi
418 -
419 - # Robin H. Johnson <robbat2@g.o> 17/Nov/2006
420 - # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
421 - mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
422 - filter-lfs-flags
423 -
424 - # Workaround for bug #76512
425 - if use hardened; then
426 - [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os
427 - fi
428 -
429 - # Remove annoying C++ comment style warnings - bug #378099
430 - append-flags -Wno-comment
431 -
432 - sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs
433 - sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs
434 -
435 - emake makefiles shared=yes dynamicmaps=no pie=yes \
436 - shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \
437 - DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
438 - AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \
439 - AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \
440 - AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \
441 - AUXLIBS_SQLITE="${AUXLIBS_SQLITE}"
442 -}
443 -
444 -src_install () {
445 - local myconf
446 - use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \
447 - html_directory=\"/usr/share/doc/${PF}/html\""
448 -
449 - LD_LIBRARY_PATH="${S}/lib" \
450 - /bin/sh postfix-install \
451 - -non-interactive \
452 - install_root="${D}" \
453 - config_directory="/etc/postfix" \
454 - manpage_directory="/usr/share/man" \
455 - command_directory="/usr/sbin" \
456 - mailq_path="/usr/bin/mailq" \
457 - newaliases_path="/usr/bin/newaliases" \
458 - sendmail_path="/usr/sbin/sendmail" \
459 - ${myconf} \
460 - || die "postfix-install failed"
461 -
462 - # Fix spool removal on upgrade
463 - rm -Rf "${D}"/var
464 - keepdir /var/spool/postfix
465 -
466 - # Install rmail for UUCP, closes bug #19127
467 - dobin auxiliary/rmail/rmail
468 -
469 - # Provide another link for legacy FSH
470 - dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail
471 -
472 - # Install qshape and posttls-finger
473 - dobin auxiliary/qshape/qshape.pl
474 - doman man/man1/qshape.1
475 - dobin bin/posttls-finger
476 - doman man/man1/posttls-finger.1
477 -
478 - # Performance tuning tools and their manuals
479 - dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
480 - doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1
481 -
482 - # Set proper permissions on required files/directories
483 - dodir /var/lib/postfix
484 - keepdir /var/lib/postfix
485 - fowners -R postfix:postfix /var/lib/postfix
486 - fperms 0750 /var/lib/postfix
487 - fowners root:postdrop /usr/sbin/post{drop,queue}
488 - fperms 02711 /usr/sbin/post{drop,queue}
489 -
490 - keepdir /etc/postfix
491 - if use mbox; then
492 - mypostconf="mail_spool_directory=/var/spool/mail"
493 - else
494 - mypostconf="home_mailbox=.maildir/"
495 - fi
496 - LD_LIBRARY_PATH="${S}/lib" \
497 - "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \
498 - -e ${mypostconf} || die "postconf failed"
499 -
500 - insinto /etc/postfix
501 - newins "${FILESDIR}"/smtp.pass saslpass
502 - fperms 600 /etc/postfix/saslpass
503 -
504 - newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix
505 - # do not start mysql/postgres unnecessarily - bug #359913
506 - use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix"
507 - use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix"
508 -
509 - dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES*
510 - use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/
511 -
512 - pamd_mimic_system smtp auth account
513 -
514 - if use sasl; then
515 - insinto /etc/sasl2
516 - newins "${FILESDIR}"/smtp.sasl smtpd.conf
517 - fi
518 -
519 - # header files
520 - insinto /usr/include/postfix
521 - doins include/*.h
522 -
523 - # Keep config_dir clean
524 - rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic}
525 - rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual}
526 -
527 - if has_version mail-mta/postfix; then
528 - # let the sysadmin decide when to change the compatibility_level
529 - sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die
530 - fi
531 -
532 - systemd_dounit "${FILESDIR}/${PN}.service"
533 -}
534 -
535 -pkg_postinst() {
536 - if [[ ! -e /etc/mail/aliases.db ]] ; then
537 - ewarn
538 - ewarn "You must edit /etc/mail/aliases to suit your needs"
539 - ewarn "and then run /usr/bin/newaliases. Postfix will not"
540 - ewarn "work correctly without it."
541 - ewarn
542 - fi
543 -
544 - # configure tls
545 - if use ssl ; then
546 - if "${EROOT}"/usr/sbin/postfix tls all-default-client; then
547 - elog "To configure client side TLS settings:"
548 - elog "${EROOT}"usr/sbin/postfix tls enable-client
549 - fi
550 - if "${EROOT}"/usr/sbin/postfix tls all-default-server; then
551 - elog "To configure server side TLS settings:"
552 - elog "${EROOT}"usr/sbin/postfix tls enable-server
553 - fi
554 - fi
555 -}
556
557 diff --git a/mail-mta/postfix/postfix-3.3.1-r1.ebuild b/mail-mta/postfix/postfix-3.3.1-r1.ebuild
558 deleted file mode 100644
559 index a171b99951a..00000000000
560 --- a/mail-mta/postfix/postfix-3.3.1-r1.ebuild
561 +++ /dev/null
562 @@ -1,300 +0,0 @@
563 -# Copyright 1999-2018 Gentoo Authors
564 -# Distributed under the terms of the GNU General Public License v2
565 -
566 -EAPI=6
567 -inherit flag-o-matic pam systemd toolchain-funcs user
568 -
569 -MY_PV="${PV/_rc/-RC}"
570 -MY_SRC="${PN}-${MY_PV}"
571 -MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
572 -RC_VER="2.7"
573 -
574 -DESCRIPTION="A fast and secure drop-in replacement for sendmail"
575 -HOMEPAGE="http://www.postfix.org/"
576 -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz"
577 -
578 -LICENSE="|| ( IBM EPL-2.0 )"
579 -SLOT="0"
580 -KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~x86-fbsd"
581 -IUSE="+berkdb cdb dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl"
582 -
583 -DEPEND=">=dev-libs/libpcre-3.4
584 - dev-lang/perl
585 - berkdb? ( >=sys-libs/db-3.2:* )
586 - cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) )
587 - eai? ( dev-libs/icu:= )
588 - ldap? ( net-nds/openldap )
589 - ldap-bind? ( net-nds/openldap[sasl] )
590 - lmdb? ( >=dev-db/lmdb-0.9.11 )
591 - mysql? ( virtual/mysql )
592 - nis? ( net-libs/libnsl )
593 - pam? ( virtual/pam )
594 - postgres? ( dev-db/postgresql:* )
595 - sasl? ( >=dev-libs/cyrus-sasl-2 )
596 - sqlite? ( dev-db/sqlite:3 )
597 - ssl? (
598 - !libressl? ( dev-libs/openssl:0= )
599 - libressl? ( dev-libs/libressl )
600 - )"
601 -
602 -RDEPEND="${DEPEND}
603 - memcached? ( net-misc/memcached )
604 - net-mail/mailbase
605 - !mail-mta/courier
606 - !mail-mta/esmtp
607 - !mail-mta/exim
608 - !mail-mta/mini-qmail
609 - !mail-mta/msmtp[mta]
610 - !mail-mta/netqmail
611 - !mail-mta/nullmailer
612 - !mail-mta/qmail-ldap
613 - !mail-mta/sendmail
614 - !mail-mta/opensmtpd
615 - !<mail-mta/ssmtp-2.64-r2
616 - !>=mail-mta/ssmtp-2.64-r2[mta]
617 - !net-mail/fastforward
618 - selinux? ( sec-policy/selinux-postfix )"
619 -
620 -REQUIRED_USE="ldap-bind? ( ldap sasl )"
621 -
622 -S="${WORKDIR}/${MY_SRC}"
623 -
624 -pkg_setup() {
625 - # Add postfix, postdrop user/group (bug #77565)
626 - enewgroup postfix 207
627 - enewgroup postdrop 208
628 - enewuser postfix 207 -1 /var/spool/postfix postfix,mail
629 -}
630 -
631 -src_prepare() {
632 - default
633 - sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
634 - src/util/sys_defs.h || die "sed failed"
635 - # change default paths to better comply with portage standard paths
636 - sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
637 - eapply -p0 "${FILESDIR}/${PN}-libressl.patch" \
638 - "${FILESDIR}/${PN}-libressl-runtime.patch" \
639 - "${FILESDIR}/${PN}-libressl-eccurve.patch"
640 -}
641 -
642 -src_configure() {
643 - for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE
644 - do
645 - local AUXLIBS_${name}=""
646 - done
647 -
648 - # Make sure LDFLAGS get passed down to the executables.
649 - local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl"
650 - AUXLIBS_PCRE="$(pcre-config --libs)"
651 -
652 - use pam && mylibs="${mylibs} -lpam"
653 -
654 - if use ldap; then
655 - mycc="${mycc} -DHAS_LDAP"
656 - AUXLIBS_LDAP="-lldap -llber"
657 - fi
658 -
659 - if use mysql; then
660 - mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)"
661 - AUXLIBS_MYSQL="$(mysql_config --libs)"
662 - fi
663 -
664 - if use postgres; then
665 - mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)"
666 - AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq"
667 - fi
668 -
669 - if use sqlite; then
670 - mycc="${mycc} -DHAS_SQLITE"
671 - AUXLIBS_SQLITE="-lsqlite3 -lpthread"
672 - fi
673 -
674 - if use ssl; then
675 - mycc="${mycc} -DUSE_TLS"
676 - mylibs="${mylibs} -lssl -lcrypto"
677 - fi
678 -
679 - if use lmdb; then
680 - mycc="${mycc} -DHAS_LMDB"
681 - AUXLIBS_LMDB="-llmdb -lpthread"
682 - fi
683 -
684 - if ! use eai; then
685 - mycc="${mycc} -DNO_EAI"
686 - fi
687 -
688 - # broken. and "in other words, not supported" by upstream.
689 - # Use inet_protocols setting in main.cf
690 - #if ! use ipv6; then
691 - # mycc="${mycc} -DNO_IPV6"
692 - #fi
693 -
694 - if use sasl; then
695 - if use dovecot-sasl; then
696 - # Set dovecot as default.
697 - mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
698 - fi
699 - if use ldap-bind; then
700 - mycc="${mycc} -DUSE_LDAP_SASL"
701 - fi
702 - mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
703 - mylibs="${mylibs} -lsasl2"
704 - elif use dovecot-sasl; then
705 - mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
706 - fi
707 -
708 - if ! use nis; then
709 - mycc="${mycc} -DNO_NIS"
710 - fi
711 -
712 - if ! use berkdb; then
713 - mycc="${mycc} -DNO_DB"
714 - if use cdb; then
715 - # change default hash format from Berkeley DB to cdb
716 - mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\""
717 - fi
718 - fi
719 -
720 - if use cdb; then
721 - mycc="${mycc} -DHAS_CDB -I/usr/include/cdb"
722 - # Tinycdb is preferred.
723 - if has_version dev-db/tinycdb ; then
724 - einfo "Building with dev-db/tinycdb"
725 - AUXLIBS_CDB="-lcdb"
726 - else
727 - einfo "Building with dev-db/cdb"
728 - CDB_PATH="/usr/$(get_libdir)"
729 - for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
730 - AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}"
731 - done
732 - fi
733 - fi
734 -
735 - # Robin H. Johnson <robbat2@g.o> 17/Nov/2006
736 - # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
737 - mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
738 - filter-lfs-flags
739 -
740 - # Workaround for bug #76512
741 - if use hardened; then
742 - [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os
743 - fi
744 -
745 - # Remove annoying C++ comment style warnings - bug #378099
746 - append-flags -Wno-comment
747 -
748 - sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs
749 - sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs
750 -
751 - emake makefiles shared=yes dynamicmaps=no pie=yes \
752 - shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \
753 - DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
754 - AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \
755 - AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \
756 - AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \
757 - AUXLIBS_SQLITE="${AUXLIBS_SQLITE}"
758 -}
759 -
760 -src_install () {
761 - LD_LIBRARY_PATH="${S}/lib" \
762 - /bin/sh postfix-install \
763 - -non-interactive \
764 - install_root="${D}" \
765 - config_directory="/etc/postfix" \
766 - manpage_directory="/usr/share/man" \
767 - command_directory="/usr/sbin" \
768 - mailq_path="/usr/bin/mailq" \
769 - newaliases_path="/usr/bin/newaliases" \
770 - sendmail_path="/usr/sbin/sendmail" \
771 - || die "postfix-install failed"
772 -
773 - # Fix spool removal on upgrade
774 - rm -Rf "${D}"/var
775 - keepdir /var/spool/postfix
776 -
777 - # Install rmail for UUCP, closes bug #19127
778 - dobin auxiliary/rmail/rmail
779 -
780 - # Provide another link for legacy FSH
781 - dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail
782 -
783 - # Install qshape, posttls-finger and collate
784 - dobin auxiliary/qshape/qshape.pl
785 - doman man/man1/qshape.1
786 - dobin bin/posttls-finger
787 - doman man/man1/posttls-finger.1
788 - dobin auxiliary/collate/collate.pl
789 - newdoc auxiliary/collate/README README.collate
790 -
791 - # Performance tuning tools and their manuals
792 - dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
793 - doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1
794 -
795 - keepdir /etc/postfix
796 - keepdir /etc/postfix/postfix-files.d
797 - if use mbox; then
798 - mypostconf="mail_spool_directory=/var/spool/mail"
799 - else
800 - mypostconf="home_mailbox=.maildir/"
801 - fi
802 - LD_LIBRARY_PATH="${S}/lib" \
803 - "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \
804 - -e ${mypostconf} || die "postconf failed"
805 -
806 - insinto /etc/postfix
807 - newins "${FILESDIR}"/smtp.pass saslpass
808 - fperms 600 /etc/postfix/saslpass
809 -
810 - newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix
811 - # do not start mysql/postgres unnecessarily - bug #359913
812 - use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix"
813 - use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix"
814 -
815 - dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES*
816 - mv "${S}"/examples "${D}"/usr/share/doc/${PF}/
817 - # postfix set-permissions expects uncompressed man files
818 - docompress -x /usr/share/man
819 -
820 - pamd_mimic_system smtp auth account
821 -
822 - if use sasl; then
823 - insinto /etc/sasl2
824 - newins "${FILESDIR}"/smtp.sasl smtpd.conf
825 - fi
826 -
827 - # header files
828 - insinto /usr/include/postfix
829 - doins include/*.h
830 -
831 - if has_version mail-mta/postfix; then
832 - # let the sysadmin decide when to change the compatibility_level
833 - sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die
834 - fi
835 -
836 - systemd_dounit "${FILESDIR}/${PN}.service"
837 -}
838 -
839 -pkg_postinst() {
840 - if [[ ! -e /etc/mail/aliases.db ]] ; then
841 - ewarn
842 - ewarn "You must edit /etc/mail/aliases to suit your needs"
843 - ewarn "and then run /usr/bin/newaliases. Postfix will not"
844 - ewarn "work correctly without it."
845 - ewarn
846 - fi
847 -
848 - # check and fix file permissions
849 - "${EROOT}"/usr/sbin/postfix set-permissions
850 -
851 - # configure tls
852 - if use ssl ; then
853 - if "${EROOT}"/usr/sbin/postfix tls all-default-client; then
854 - elog "To configure client side TLS settings:"
855 - elog "${EROOT}"usr/sbin/postfix tls enable-client
856 - fi
857 - if "${EROOT}"/usr/sbin/postfix tls all-default-server; then
858 - elog "To configure server side TLS settings:"
859 - elog "${EROOT}"usr/sbin/postfix tls enable-server
860 - fi
861 - fi
862 -}
863
864 diff --git a/mail-mta/postfix/postfix-3.3.4.ebuild b/mail-mta/postfix/postfix-3.3.4.ebuild
865 deleted file mode 100644
866 index 0cd7f819f75..00000000000
867 --- a/mail-mta/postfix/postfix-3.3.4.ebuild
868 +++ /dev/null
869 @@ -1,309 +0,0 @@
870 -# Copyright 1999-2019 Gentoo Authors
871 -# Distributed under the terms of the GNU General Public License v2
872 -
873 -EAPI=6
874 -inherit flag-o-matic pam systemd toolchain-funcs user
875 -
876 -MY_PV="${PV/_rc/-RC}"
877 -MY_SRC="${PN}-${MY_PV}"
878 -MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
879 -RC_VER="2.7"
880 -
881 -DESCRIPTION="A fast and secure drop-in replacement for sendmail"
882 -HOMEPAGE="http://www.postfix.org/"
883 -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz"
884 -
885 -LICENSE="|| ( IBM EPL-2.0 )"
886 -SLOT="0"
887 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd"
888 -IUSE="+berkdb cdb dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl"
889 -
890 -DEPEND=">=dev-libs/libpcre-3.4
891 - dev-lang/perl
892 - berkdb? ( >=sys-libs/db-3.2:* )
893 - cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) )
894 - eai? ( dev-libs/icu:= )
895 - ldap? ( net-nds/openldap )
896 - ldap-bind? ( net-nds/openldap[sasl] )
897 - lmdb? ( >=dev-db/lmdb-0.9.11 )
898 - mysql? ( dev-db/mysql-connector-c:0= )
899 - nis? ( net-libs/libnsl )
900 - pam? ( virtual/pam )
901 - postgres? ( dev-db/postgresql:* )
902 - sasl? ( >=dev-libs/cyrus-sasl-2 )
903 - sqlite? ( dev-db/sqlite:3 )
904 - ssl? (
905 - !libressl? ( dev-libs/openssl:0= )
906 - libressl? ( dev-libs/libressl )
907 - )"
908 -
909 -RDEPEND="${DEPEND}
910 - memcached? ( net-misc/memcached )
911 - net-mail/mailbase
912 - !mail-mta/courier
913 - !mail-mta/esmtp
914 - !mail-mta/exim
915 - !mail-mta/mini-qmail
916 - !mail-mta/msmtp[mta]
917 - !mail-mta/netqmail
918 - !mail-mta/nullmailer
919 - !mail-mta/qmail-ldap
920 - !mail-mta/sendmail
921 - !mail-mta/opensmtpd
922 - !<mail-mta/ssmtp-2.64-r2
923 - !>=mail-mta/ssmtp-2.64-r2[mta]
924 - !net-mail/fastforward
925 - selinux? ( sec-policy/selinux-postfix )"
926 -
927 -REQUIRED_USE="ldap-bind? ( ldap sasl )"
928 -
929 -S="${WORKDIR}/${MY_SRC}"
930 -
931 -pkg_setup() {
932 - # Add postfix, postdrop user/group (bug #77565)
933 - enewgroup postfix 207
934 - enewgroup postdrop 208
935 - enewuser postfix 207 -1 /var/spool/postfix postfix,mail
936 -}
937 -
938 -src_prepare() {
939 - default
940 - sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
941 - src/util/sys_defs.h || die "sed failed"
942 - # change default paths to better comply with portage standard paths
943 - sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
944 - eapply "${FILESDIR}/${PN}-linux-5.patch"
945 - eapply -p0 "${FILESDIR}/${PN}-libressl.patch" \
946 - "${FILESDIR}/${PN}-libressl-runtime.patch" \
947 - "${FILESDIR}/${PN}-libressl-eccurve.patch" \
948 - "${FILESDIR}/${PN}-libressl-session-tickets.patch"
949 -}
950 -
951 -src_configure() {
952 - for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE
953 - do
954 - local AUXLIBS_${name}=""
955 - done
956 -
957 - # Make sure LDFLAGS get passed down to the executables.
958 - local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl"
959 - AUXLIBS_PCRE="$(pcre-config --libs)"
960 -
961 - use pam && mylibs="${mylibs} -lpam"
962 -
963 - if use ldap; then
964 - mycc="${mycc} -DHAS_LDAP"
965 - AUXLIBS_LDAP="-lldap -llber"
966 - fi
967 -
968 - if use mysql; then
969 - mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)"
970 - AUXLIBS_MYSQL="$(mysql_config --libs)"
971 - fi
972 -
973 - if use postgres; then
974 - mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)"
975 - AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq"
976 - fi
977 -
978 - if use sqlite; then
979 - mycc="${mycc} -DHAS_SQLITE"
980 - AUXLIBS_SQLITE="-lsqlite3 -lpthread"
981 - fi
982 -
983 - if use ssl; then
984 - mycc="${mycc} -DUSE_TLS"
985 - mylibs="${mylibs} -lssl -lcrypto"
986 - fi
987 -
988 - if use lmdb; then
989 - mycc="${mycc} -DHAS_LMDB"
990 - AUXLIBS_LMDB="-llmdb -lpthread"
991 - fi
992 -
993 - if ! use eai; then
994 - mycc="${mycc} -DNO_EAI"
995 - fi
996 -
997 - # broken. and "in other words, not supported" by upstream.
998 - # Use inet_protocols setting in main.cf
999 - #if ! use ipv6; then
1000 - # mycc="${mycc} -DNO_IPV6"
1001 - #fi
1002 -
1003 - if use sasl; then
1004 - if use dovecot-sasl; then
1005 - # Set dovecot as default.
1006 - mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
1007 - fi
1008 - if use ldap-bind; then
1009 - mycc="${mycc} -DUSE_LDAP_SASL"
1010 - fi
1011 - mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
1012 - mylibs="${mylibs} -lsasl2"
1013 - elif use dovecot-sasl; then
1014 - mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
1015 - fi
1016 -
1017 - if ! use nis; then
1018 - mycc="${mycc} -DNO_NIS"
1019 - fi
1020 -
1021 - if ! use berkdb; then
1022 - mycc="${mycc} -DNO_DB"
1023 - if use cdb; then
1024 - # change default hash format from Berkeley DB to cdb
1025 - mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\""
1026 - fi
1027 - fi
1028 -
1029 - if use cdb; then
1030 - mycc="${mycc} -DHAS_CDB -I/usr/include/cdb"
1031 - # Tinycdb is preferred.
1032 - if has_version dev-db/tinycdb ; then
1033 - einfo "Building with dev-db/tinycdb"
1034 - AUXLIBS_CDB="-lcdb"
1035 - else
1036 - einfo "Building with dev-db/cdb"
1037 - CDB_PATH="/usr/$(get_libdir)"
1038 - for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
1039 - AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}"
1040 - done
1041 - fi
1042 - fi
1043 -
1044 - # Robin H. Johnson <robbat2@g.o> 17/Nov/2006
1045 - # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
1046 - mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
1047 - filter-lfs-flags
1048 -
1049 - # Workaround for bug #76512
1050 - if use hardened; then
1051 - [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os
1052 - fi
1053 -
1054 - # Remove annoying C++ comment style warnings - bug #378099
1055 - append-flags -Wno-comment
1056 -
1057 - sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs
1058 - sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs
1059 -
1060 - emake makefiles shared=yes dynamicmaps=no pie=yes \
1061 - shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \
1062 - DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
1063 - AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \
1064 - AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \
1065 - AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \
1066 - AUXLIBS_SQLITE="${AUXLIBS_SQLITE}"
1067 -}
1068 -
1069 -src_install () {
1070 - LD_LIBRARY_PATH="${S}/lib" \
1071 - /bin/sh postfix-install \
1072 - -non-interactive \
1073 - install_root="${D}" \
1074 - config_directory="/etc/postfix" \
1075 - manpage_directory="/usr/share/man" \
1076 - command_directory="/usr/sbin" \
1077 - mailq_path="/usr/bin/mailq" \
1078 - newaliases_path="/usr/bin/newaliases" \
1079 - sendmail_path="/usr/sbin/sendmail" \
1080 - || die "postfix-install failed"
1081 -
1082 - # Fix spool removal on upgrade
1083 - rm -Rf "${D}"/var
1084 - keepdir /var/spool/postfix
1085 -
1086 - # Install rmail for UUCP, closes bug #19127
1087 - dobin auxiliary/rmail/rmail
1088 -
1089 - # Provide another link for legacy FSH
1090 - dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail
1091 -
1092 - # Install qshape, posttls-finger and collate
1093 - dobin auxiliary/qshape/qshape.pl
1094 - doman man/man1/qshape.1
1095 - dobin bin/posttls-finger
1096 - doman man/man1/posttls-finger.1
1097 - dobin auxiliary/collate/collate.pl
1098 - newdoc auxiliary/collate/README README.collate
1099 -
1100 - # Performance tuning tools and their manuals
1101 - dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
1102 - doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1
1103 -
1104 - # Set proper permissions on required files/directories
1105 - keepdir /var/lib/postfix
1106 - fowners -R postfix:postfix /var/lib/postfix
1107 - fperms 0750 /var/lib/postfix
1108 - fowners root:postdrop /usr/sbin/post{drop,queue}
1109 - fperms 02755 /usr/sbin/post{drop,queue}
1110 -
1111 - keepdir /etc/postfix
1112 - keepdir /etc/postfix/postfix-files.d
1113 - if use mbox; then
1114 - mypostconf="mail_spool_directory=/var/spool/mail"
1115 - else
1116 - mypostconf="home_mailbox=.maildir/"
1117 - fi
1118 - LD_LIBRARY_PATH="${S}/lib" \
1119 - "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \
1120 - -e ${mypostconf} || die "postconf failed"
1121 -
1122 - insinto /etc/postfix
1123 - newins "${FILESDIR}"/smtp.pass saslpass
1124 - fperms 600 /etc/postfix/saslpass
1125 -
1126 - newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix
1127 - # do not start mysql/postgres unnecessarily - bug #359913
1128 - use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix"
1129 - use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix"
1130 -
1131 - dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES*
1132 - mv "${S}"/examples "${D}"/usr/share/doc/${PF}/
1133 - # postfix set-permissions expects uncompressed man files
1134 - docompress -x /usr/share/man
1135 -
1136 - pamd_mimic_system smtp auth account
1137 -
1138 - if use sasl; then
1139 - insinto /etc/sasl2
1140 - newins "${FILESDIR}"/smtp.sasl smtpd.conf
1141 - fi
1142 -
1143 - # header files
1144 - insinto /usr/include/postfix
1145 - doins include/*.h
1146 -
1147 - if has_version mail-mta/postfix; then
1148 - # let the sysadmin decide when to change the compatibility_level
1149 - sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die
1150 - fi
1151 -
1152 - systemd_dounit "${FILESDIR}/${PN}.service"
1153 -}
1154 -
1155 -pkg_postinst() {
1156 - if [[ ! -e /etc/mail/aliases.db ]] ; then
1157 - ewarn
1158 - ewarn "You must edit /etc/mail/aliases to suit your needs"
1159 - ewarn "and then run /usr/bin/newaliases. Postfix will not"
1160 - ewarn "work correctly without it."
1161 - ewarn
1162 - fi
1163 -
1164 - # check and fix file permissions
1165 - "${EROOT}"/usr/sbin/postfix set-permissions
1166 -
1167 - # configure tls
1168 - if use ssl ; then
1169 - if "${EROOT}"/usr/sbin/postfix tls all-default-client; then
1170 - elog "To configure client side TLS settings:"
1171 - elog "${EROOT}"usr/sbin/postfix tls enable-client
1172 - fi
1173 - if "${EROOT}"/usr/sbin/postfix tls all-default-server; then
1174 - elog "To configure server side TLS settings:"
1175 - elog "${EROOT}"usr/sbin/postfix tls enable-server
1176 - fi
1177 - fi
1178 -}
1179
1180 diff --git a/mail-mta/postfix/postfix-3.4.5.ebuild b/mail-mta/postfix/postfix-3.4.5.ebuild
1181 deleted file mode 100644
1182 index 6b1a50eca24..00000000000
1183 --- a/mail-mta/postfix/postfix-3.4.5.ebuild
1184 +++ /dev/null
1185 @@ -1,324 +0,0 @@
1186 -# Copyright 1999-2019 Gentoo Authors
1187 -# Distributed under the terms of the GNU General Public License v2
1188 -
1189 -EAPI=7
1190 -
1191 -inherit flag-o-matic pam systemd toolchain-funcs user
1192 -
1193 -MY_PV="${PV/_rc/-RC}"
1194 -MY_SRC="${PN}-${MY_PV}"
1195 -MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
1196 -RC_VER="2.7"
1197 -
1198 -DESCRIPTION="A fast and secure drop-in replacement for sendmail"
1199 -HOMEPAGE="http://www.postfix.org/"
1200 -SRC_URI="${MY_URI}/${MY_SRC}.tar.gz"
1201 -
1202 -LICENSE="|| ( IBM EPL-2.0 )"
1203 -SLOT="0"
1204 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
1205 -IUSE="+berkdb cdb dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl"
1206 -
1207 -DEPEND=">=dev-libs/libpcre-3.4
1208 - dev-lang/perl
1209 - berkdb? ( >=sys-libs/db-3.2:* )
1210 - cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) )
1211 - eai? ( dev-libs/icu:= )
1212 - ldap? ( net-nds/openldap )
1213 - ldap-bind? ( net-nds/openldap[sasl] )
1214 - lmdb? ( >=dev-db/lmdb-0.9.11 )
1215 - mysql? ( dev-db/mysql-connector-c:0= )
1216 - nis? ( net-libs/libnsl )
1217 - pam? ( virtual/pam )
1218 - postgres? ( dev-db/postgresql:* )
1219 - sasl? ( >=dev-libs/cyrus-sasl-2 )
1220 - sqlite? ( dev-db/sqlite:3 )
1221 - ssl? (
1222 - !libressl? ( dev-libs/openssl:0= )
1223 - libressl? ( dev-libs/libressl )
1224 - )"
1225 -
1226 -RDEPEND="${DEPEND}
1227 - memcached? ( net-misc/memcached )
1228 - net-mail/mailbase
1229 - !mail-mta/courier
1230 - !mail-mta/esmtp
1231 - !mail-mta/exim
1232 - !mail-mta/mini-qmail
1233 - !mail-mta/msmtp[mta]
1234 - !mail-mta/netqmail
1235 - !mail-mta/nullmailer
1236 - !mail-mta/qmail-ldap
1237 - !mail-mta/sendmail
1238 - !mail-mta/opensmtpd
1239 - !<mail-mta/ssmtp-2.64-r2
1240 - !>=mail-mta/ssmtp-2.64-r2[mta]
1241 - !net-mail/fastforward
1242 - selinux? ( sec-policy/selinux-postfix )"
1243 -
1244 -REQUIRED_USE="ldap-bind? ( ldap sasl )"
1245 -
1246 -S="${WORKDIR}/${MY_SRC}"
1247 -
1248 -pkg_setup() {
1249 - if use libressl; then
1250 - die "LibreSSL patches are not yet available for postfix-3.4 releases."
1251 - fi
1252 - # Add postfix, postdrop user/group (bug #77565)
1253 - enewgroup postfix 207
1254 - enewgroup postdrop 208
1255 - enewuser postfix 207 -1 /var/spool/postfix postfix,mail
1256 -}
1257 -
1258 -src_prepare() {
1259 - default
1260 - sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
1261 - src/util/sys_defs.h || die "sed failed"
1262 - # change default paths to better comply with portage standard paths
1263 - sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
1264 - # libressl support needs work for postfix-3.4
1265 - #eapply -p0 "${FILESDIR}/${PN}-libressl.patch" \
1266 - # "${FILESDIR}/${PN}-libressl-runtime.patch" \
1267 - # "${FILESDIR}/${PN}-libressl-eccurve.patch"
1268 - # "${FILESDIR}/${PN}-libressl-session-tickets.patch"
1269 -}
1270 -
1271 -src_configure() {
1272 - for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE
1273 - do
1274 - local AUXLIBS_${name}=""
1275 - done
1276 -
1277 - # Make sure LDFLAGS get passed down to the executables.
1278 - local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl"
1279 - AUXLIBS_PCRE="$(pcre-config --libs)"
1280 -
1281 - use pam && mylibs="${mylibs} -lpam"
1282 -
1283 - if use ldap; then
1284 - mycc="${mycc} -DHAS_LDAP"
1285 - AUXLIBS_LDAP="-lldap -llber"
1286 - fi
1287 -
1288 - if use mysql; then
1289 - mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)"
1290 - AUXLIBS_MYSQL="$(mysql_config --libs)"
1291 - fi
1292 -
1293 - if use postgres; then
1294 - mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)"
1295 - AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq"
1296 - fi
1297 -
1298 - if use sqlite; then
1299 - mycc="${mycc} -DHAS_SQLITE"
1300 - AUXLIBS_SQLITE="-lsqlite3 -lpthread"
1301 - fi
1302 -
1303 - if use ssl; then
1304 - mycc="${mycc} -DUSE_TLS"
1305 - mylibs="${mylibs} -lssl -lcrypto"
1306 - fi
1307 -
1308 - if use lmdb; then
1309 - mycc="${mycc} -DHAS_LMDB"
1310 - AUXLIBS_LMDB="-llmdb -lpthread"
1311 - fi
1312 -
1313 - if ! use eai; then
1314 - mycc="${mycc} -DNO_EAI"
1315 - fi
1316 -
1317 - # broken. and "in other words, not supported" by upstream.
1318 - # Use inet_protocols setting in main.cf
1319 - #if ! use ipv6; then
1320 - # mycc="${mycc} -DNO_IPV6"
1321 - #fi
1322 -
1323 - if use sasl; then
1324 - if use dovecot-sasl; then
1325 - # Set dovecot as default.
1326 - mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
1327 - fi
1328 - if use ldap-bind; then
1329 - mycc="${mycc} -DUSE_LDAP_SASL"
1330 - fi
1331 - mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
1332 - mylibs="${mylibs} -lsasl2"
1333 - elif use dovecot-sasl; then
1334 - mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
1335 - fi
1336 -
1337 - if ! use nis; then
1338 - mycc="${mycc} -DNO_NIS"
1339 - fi
1340 -
1341 - if ! use berkdb; then
1342 - mycc="${mycc} -DNO_DB"
1343 - if use cdb; then
1344 - # change default hash format from Berkeley DB to cdb
1345 - mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\""
1346 - fi
1347 - fi
1348 -
1349 - if use cdb; then
1350 - mycc="${mycc} -DHAS_CDB -I/usr/include/cdb"
1351 - # Tinycdb is preferred.
1352 - if has_version dev-db/tinycdb ; then
1353 - einfo "Building with dev-db/tinycdb"
1354 - AUXLIBS_CDB="-lcdb"
1355 - else
1356 - einfo "Building with dev-db/cdb"
1357 - CDB_PATH="/usr/$(get_libdir)"
1358 - for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
1359 - AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}"
1360 - done
1361 - fi
1362 - fi
1363 -
1364 - # Robin H. Johnson <robbat2@g.o> 17/Nov/2006
1365 - # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
1366 - mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
1367 - filter-lfs-flags
1368 -
1369 - # Workaround for bug #76512
1370 - if use hardened; then
1371 - [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os
1372 - fi
1373 -
1374 - # Remove annoying C++ comment style warnings - bug #378099
1375 - append-flags -Wno-comment
1376 -
1377 - sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs
1378 - sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs
1379 -
1380 - emake makefiles shared=yes dynamicmaps=no pie=yes \
1381 - shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \
1382 - DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
1383 - AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \
1384 - AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \
1385 - AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \
1386 - AUXLIBS_SQLITE="${AUXLIBS_SQLITE}"
1387 -}
1388 -
1389 -src_install () {
1390 - LD_LIBRARY_PATH="${S}/lib" \
1391 - /bin/sh postfix-install \
1392 - -non-interactive \
1393 - install_root="${D}" \
1394 - config_directory="/etc/postfix" \
1395 - manpage_directory="/usr/share/man" \
1396 - command_directory="/usr/sbin" \
1397 - mailq_path="/usr/bin/mailq" \
1398 - newaliases_path="/usr/bin/newaliases" \
1399 - sendmail_path="/usr/sbin/sendmail" \
1400 - || die "postfix-install failed"
1401 -
1402 - # Fix spool removal on upgrade
1403 - rm -Rf "${D}"/var
1404 - keepdir /var/spool/postfix
1405 -
1406 - # Install rmail for UUCP, closes bug #19127
1407 - dobin auxiliary/rmail/rmail
1408 -
1409 - # Provide another link for legacy FSH
1410 - dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail
1411 -
1412 - # Install qshape, posttls-finger and collate
1413 - dobin auxiliary/qshape/qshape.pl
1414 - doman man/man1/qshape.1
1415 - dobin bin/posttls-finger
1416 - doman man/man1/posttls-finger.1
1417 - dobin auxiliary/collate/collate.pl
1418 - newdoc auxiliary/collate/README README.collate
1419 -
1420 - # Performance tuning tools and their manuals
1421 - dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
1422 - doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1
1423 -
1424 - # Set proper permissions on required files/directories
1425 - keepdir /var/lib/postfix
1426 - fowners -R postfix:postfix /var/lib/postfix
1427 - fperms 0750 /var/lib/postfix
1428 - fowners root:postdrop /usr/sbin/post{drop,queue}
1429 - fperms 02755 /usr/sbin/post{drop,queue}
1430 -
1431 - keepdir /etc/postfix
1432 - keepdir /etc/postfix/postfix-files.d
1433 - if use mbox; then
1434 - mypostconf="mail_spool_directory=/var/spool/mail"
1435 - else
1436 - mypostconf="home_mailbox=.maildir/"
1437 - fi
1438 - LD_LIBRARY_PATH="${S}/lib" \
1439 - "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \
1440 - -e ${mypostconf} || die "postconf failed"
1441 -
1442 - insinto /etc/postfix
1443 - newins "${FILESDIR}"/smtp.pass saslpass
1444 - fperms 600 /etc/postfix/saslpass
1445 -
1446 - newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix
1447 - # do not start mysql/postgres unnecessarily - bug #359913
1448 - use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix"
1449 - use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix"
1450 -
1451 - dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES*
1452 - mv "${S}"/examples "${D}"/usr/share/doc/${PF}/
1453 - # postfix set-permissions expects uncompressed man files
1454 - docompress -x /usr/share/man
1455 -
1456 - pamd_mimic_system smtp auth account
1457 -
1458 - if use sasl; then
1459 - insinto /etc/sasl2
1460 - newins "${FILESDIR}"/smtp.sasl smtpd.conf
1461 - fi
1462 -
1463 - # header files
1464 - insinto /usr/include/postfix
1465 - doins include/*.h
1466 -
1467 - if has_version mail-mta/postfix; then
1468 - # let the sysadmin decide when to change the compatibility_level
1469 - sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die
1470 - fi
1471 -
1472 - systemd_dounit "${FILESDIR}/${PN}.service"
1473 -}
1474 -
1475 -pkg_preinst() {
1476 - if has_version '<mail-mta/postfix-3.4'; then
1477 - elog
1478 - elog "Postfix-3.4 introduces a new master.cf service 'postlog'"
1479 - elog "with type 'unix-dgram' that is used by the new postlogd(8) daemon."
1480 - elog "Before backing out to an older Postfix version, edit the master.cf"
1481 - elog "file and remove the postlog entry."
1482 - elog
1483 - fi
1484 -}
1485 -
1486 -pkg_postinst() {
1487 - if [[ ! -e /etc/mail/aliases.db ]] ; then
1488 - ewarn
1489 - ewarn "You must edit /etc/mail/aliases to suit your needs"
1490 - ewarn "and then run /usr/bin/newaliases. Postfix will not"
1491 - ewarn "work correctly without it."
1492 - ewarn
1493 - fi
1494 -
1495 - # check and fix file permissions
1496 - "${EROOT}"/usr/sbin/postfix set-permissions
1497 -
1498 - # configure tls
1499 - if use ssl ; then
1500 - if "${EROOT}"/usr/sbin/postfix tls all-default-client; then
1501 - elog "To configure client side TLS settings:"
1502 - elog "${EROOT}"usr/sbin/postfix tls enable-client
1503 - fi
1504 - if "${EROOT}"/usr/sbin/postfix tls all-default-server; then
1505 - elog "To configure server side TLS settings:"
1506 - elog "${EROOT}"usr/sbin/postfix tls enable-server
1507 - fi
1508 - fi
1509 -}