1 |
commit: ce4f258fc881b89212f5a0d2a885c30512716c73 |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 5 05:30:06 2019 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 5 05:30:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce4f258f |
7 |
|
8 |
mail-mta/postfix: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Eray Aslan <eras <AT> gentoo.org> |
12 |
|
13 |
mail-mta/postfix/Manifest | 3 - |
14 |
mail-mta/postfix/postfix-3.1.6.ebuild | 308 ------------------------------- |
15 |
mail-mta/postfix/postfix-3.2.6.ebuild | 301 ------------------------------ |
16 |
mail-mta/postfix/postfix-3.3.1.ebuild | 301 ------------------------------ |
17 |
mail-mta/postfix/postfix-3.3.2-r1.ebuild | 308 ------------------------------- |
18 |
5 files changed, 1221 deletions(-) |
19 |
|
20 |
diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest |
21 |
index ba644ac8831..a348aa7376d 100644 |
22 |
--- a/mail-mta/postfix/Manifest |
23 |
+++ b/mail-mta/postfix/Manifest |
24 |
@@ -1,9 +1,6 @@ |
25 |
DIST postfix-2.10.9.tar.gz 3820525 BLAKE2B ed1fc10f016cdc63fe2b86c68cca270c98348417babf6d8e05f76fa2550f5cbca95825f14cf54897e66323cdbe6132a1046402b853b6f000ade630277278c748 SHA512 c77df7ccc051bd72271dc5298da0ca4e45397b1ba96fc8be31e095f5b15cd30ebc0b29cf638e76efc65503cb241efd937f2d64aaa97243402c35e2927b7a7b91 |
26 |
-DIST postfix-3.1.6.tar.gz 4341308 BLAKE2B 6a5ec763cf96770240f63b35b4532c555cc6e5e807aeaa526366d3069e83399e470703677ed63f51c4d4178ed66b3644b71b5f586ba78f4bfe5caad4b36c13f9 SHA512 646317393d33fcec99bef7f3dc142a847591927bc034c0c71e578baedad1875040cfeabdaa3436312f60485cb69bbdb31197aa9e7526a457946d7749b781099b |
27 |
DIST postfix-3.2.4.tar.gz 4390376 BLAKE2B 132a6b467f9156d716a92cc7beae0f9a7c47e6a2045e83726a5e7305e6f9bf666ebcfb93a9ab1a96ec988431661059d62e926287bd13089eeb4bab3e8f4b9fc7 SHA512 6dc583d3b1c98f5c8d6486351bee9f92a98b5379cd0d76d26a382379c112317e7a2a58c3a200477a6d0f831c73395257d1a63170df17ea8a65a4048a7df391f8 |
28 |
-DIST postfix-3.2.6.tar.gz 4395159 BLAKE2B 2eef28f9189830725c02b98512ca7859770f090cbef3fe453b57fade967fd20f94cd3cd8e8955252dc230e674ed7827fc68ad910cd4fc63029dc2c92ea75f0af SHA512 081751fe9af7612e7ee01a80ceffbc09db60764e12099d2a5e053205d0e7c70c6ef4f96526e1a98780965c43354e0ccd6ef61b4dbe93b249179890b81836c705 |
29 |
DIST postfix-3.3.1.tar.gz 4420912 BLAKE2B 065fd04cdfa343a6c50a629e8da47fad71465df790ca88adcad4efc7ab273330c39998c6bf503587b8bcba3d87bb98b1be6413e49449e2241258a99217473c11 SHA512 2307f50f8b7dab1db46ebe4ae30bc5682a25b9c49ae5ae65aa95b4620bb5450dd5929977c0f34b9e73a92ca6af36fd8e24167732420a1a2d89167c7a3b197276 |
30 |
-DIST postfix-3.3.2.tar.gz 4429452 BLAKE2B 8cbb4ea6626da1fdb78a3f4e5c546b6a335fe7e5727c2f7eb3f14e2b28791165857112e6af4698eae7e38339232fed722e238e289fef40bd1091b3048a543f7f SHA512 df67eb978751900d357597def16f744dae990f5cc4e48af8dca57f84b0140e05416712727c1760b8f557ed3564cd593620756561b0a6f31db4b54d928e15293f |
31 |
DIST postfix-3.3.3.tar.gz 4429713 BLAKE2B 0699d9bdc0f3a5267f9cbe5dc3b6ddc2e83d1b984b07638913c8ba419a0c71135ccae6f434aa2c60f69ffe60356b7a7652a6d83c176b119cd2f9ab8374a32283 SHA512 9d04d48b5393c49c00ca62f0a24e21c9642f2b645431b66b532a559ad1b4d35c7581fec8bd1bb1a2d7b31b812b1cea3b29e0a0cbd6576bd377b2c810d27b7ec3 |
32 |
DIST postfix-3.4.0.tar.gz 4580627 BLAKE2B 4a2356c8bd74d7146833e321e426503003058ba92e50a486fee2eb39a4a75aa96fb48511b4ea457fa94c84363593f24f3671b42bda4e92dcb71bb8eccf219996 SHA512 2afc7a4aef8768eb140b803b9e29d9270bd536d168845bfde18fc58c233d6d7293ab4ad40ab0b452c55130f7139246c752007e8d676294af3068110a9021f4e2 |
33 |
DIST postfix-3.5-20190304.tar.gz 4570692 BLAKE2B a86a57eb3603b6253268988e1a2290db59a5951092f26c113ba96a46506c9c8ea7cb31ad075ca19c7cc413e29d3fcbbd26e3aaff8c96950dfbab12ed8fe8db56 SHA512 de5985b87c4c611e0bf79c3f13f6d470c16faf279e4c2fa528a9575f13bd392616d50fd31d07d0793ec5e120617a2a4ae73b9b6b4ee1ab9ac0a086e9070f143a |
34 |
|
35 |
diff --git a/mail-mta/postfix/postfix-3.1.6.ebuild b/mail-mta/postfix/postfix-3.1.6.ebuild |
36 |
deleted file mode 100644 |
37 |
index 3700be5b4db..00000000000 |
38 |
--- a/mail-mta/postfix/postfix-3.1.6.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,308 +0,0 @@ |
41 |
-# Copyright 1999-2018 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI=6 |
45 |
-inherit flag-o-matic pam systemd toolchain-funcs user |
46 |
- |
47 |
-MY_PV="${PV/_rc/-RC}" |
48 |
-MY_SRC="${PN}-${MY_PV}" |
49 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
50 |
-RC_VER="2.7" |
51 |
- |
52 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
53 |
-HOMEPAGE="http://www.postfix.org/" |
54 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
55 |
- |
56 |
-LICENSE="IBM" |
57 |
-SLOT="0" |
58 |
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sh sparc x86 ~x86-fbsd" |
59 |
-IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
60 |
- |
61 |
-DEPEND=">=dev-libs/libpcre-3.4 |
62 |
- dev-lang/perl |
63 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
64 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
65 |
- eai? ( dev-libs/icu:= ) |
66 |
- ldap? ( net-nds/openldap ) |
67 |
- ldap-bind? ( net-nds/openldap[sasl] ) |
68 |
- lmdb? ( >=dev-db/lmdb-0.9.11 ) |
69 |
- mysql? ( virtual/mysql ) |
70 |
- pam? ( virtual/pam ) |
71 |
- postgres? ( dev-db/postgresql:* ) |
72 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
73 |
- sqlite? ( dev-db/sqlite:3 ) |
74 |
- ssl? ( |
75 |
- !libressl? ( dev-libs/openssl:0= ) |
76 |
- libressl? ( dev-libs/libressl ) |
77 |
- )" |
78 |
- |
79 |
-RDEPEND="${DEPEND} |
80 |
- dovecot-sasl? ( net-mail/dovecot ) |
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-2.64-r2 |
94 |
- !>=mail-mta/ssmtp-2.64-r2[mta] |
95 |
- !net-mail/fastforward |
96 |
- selinux? ( sec-policy/selinux-postfix )" |
97 |
- |
98 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
99 |
- |
100 |
-S="${WORKDIR}/${MY_SRC}" |
101 |
- |
102 |
-pkg_setup() { |
103 |
- # Add postfix, postdrop user/group (bug #77565) |
104 |
- enewgroup postfix 207 |
105 |
- enewgroup postdrop 208 |
106 |
- enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
107 |
-} |
108 |
- |
109 |
-src_prepare() { |
110 |
- default |
111 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
112 |
- src/util/sys_defs.h || die "sed failed" |
113 |
- # change default paths to better comply with portage standard paths |
114 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
115 |
- eapply -p0 "${FILESDIR}/${PN}-libressl.patch" |
116 |
- eapply -p0 "${FILESDIR}/${PN}-libressl-runtime.patch" |
117 |
-} |
118 |
- |
119 |
-src_configure() { |
120 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
121 |
- do |
122 |
- local AUXLIBS_${name}="" |
123 |
- done |
124 |
- |
125 |
- # Make sure LDFLAGS get passed down to the executables. |
126 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
127 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
128 |
- |
129 |
- use pam && mylibs="${mylibs} -lpam" |
130 |
- |
131 |
- if use ldap; then |
132 |
- mycc="${mycc} -DHAS_LDAP" |
133 |
- AUXLIBS_LDAP="-lldap -llber" |
134 |
- fi |
135 |
- |
136 |
- if use mysql; then |
137 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
138 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
139 |
- fi |
140 |
- |
141 |
- if use postgres; then |
142 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
143 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
144 |
- fi |
145 |
- |
146 |
- if use sqlite; then |
147 |
- mycc="${mycc} -DHAS_SQLITE" |
148 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
149 |
- fi |
150 |
- |
151 |
- if use ssl; then |
152 |
- mycc="${mycc} -DUSE_TLS" |
153 |
- mylibs="${mylibs} -lssl -lcrypto" |
154 |
- fi |
155 |
- |
156 |
- if use lmdb; then |
157 |
- mycc="${mycc} -DHAS_LMDB" |
158 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
159 |
- fi |
160 |
- |
161 |
- if ! use eai; then |
162 |
- mycc="${mycc} -DNO_EAI" |
163 |
- fi |
164 |
- |
165 |
- # broken. and "in other words, not supported" by upstream. |
166 |
- # Use inet_protocols setting in main.cf |
167 |
- #if ! use ipv6; then |
168 |
- # mycc="${mycc} -DNO_IPV6" |
169 |
- #fi |
170 |
- |
171 |
- if use sasl; then |
172 |
- if use dovecot-sasl; then |
173 |
- # Set dovecot as default. |
174 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
175 |
- fi |
176 |
- if use ldap-bind; then |
177 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
178 |
- fi |
179 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
180 |
- mylibs="${mylibs} -lsasl2" |
181 |
- elif use dovecot-sasl; then |
182 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
183 |
- fi |
184 |
- |
185 |
- if ! use nis; then |
186 |
- mycc="${mycc} -DNO_NIS" |
187 |
- fi |
188 |
- |
189 |
- if ! use berkdb; then |
190 |
- mycc="${mycc} -DNO_DB" |
191 |
- if use cdb; then |
192 |
- # change default hash format from Berkeley DB to cdb |
193 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
194 |
- fi |
195 |
- fi |
196 |
- |
197 |
- if use cdb; then |
198 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
199 |
- # Tinycdb is preferred. |
200 |
- if has_version dev-db/tinycdb ; then |
201 |
- einfo "Building with dev-db/tinycdb" |
202 |
- AUXLIBS_CDB="-lcdb" |
203 |
- else |
204 |
- einfo "Building with dev-db/cdb" |
205 |
- CDB_PATH="/usr/$(get_libdir)" |
206 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
207 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
208 |
- done |
209 |
- fi |
210 |
- fi |
211 |
- |
212 |
- # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
213 |
- # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
214 |
- mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
215 |
- filter-lfs-flags |
216 |
- |
217 |
- # Workaround for bug #76512 |
218 |
- if use hardened; then |
219 |
- [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
220 |
- fi |
221 |
- |
222 |
- # Remove annoying C++ comment style warnings - bug #378099 |
223 |
- append-flags -Wno-comment |
224 |
- |
225 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
226 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
227 |
- |
228 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
229 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
230 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
231 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
232 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
233 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
234 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
235 |
-} |
236 |
- |
237 |
-src_install () { |
238 |
- local myconf |
239 |
- use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
240 |
- html_directory=\"/usr/share/doc/${PF}/html\"" |
241 |
- |
242 |
- LD_LIBRARY_PATH="${S}/lib" \ |
243 |
- /bin/sh postfix-install \ |
244 |
- -non-interactive \ |
245 |
- install_root="${D}" \ |
246 |
- config_directory="/etc/postfix" \ |
247 |
- manpage_directory="/usr/share/man" \ |
248 |
- command_directory="/usr/sbin" \ |
249 |
- mailq_path="/usr/bin/mailq" \ |
250 |
- newaliases_path="/usr/bin/newaliases" \ |
251 |
- sendmail_path="/usr/sbin/sendmail" \ |
252 |
- ${myconf} \ |
253 |
- || die "postfix-install failed" |
254 |
- |
255 |
- # Fix spool removal on upgrade |
256 |
- rm -Rf "${D}"/var |
257 |
- keepdir /var/spool/postfix |
258 |
- |
259 |
- # Install rmail for UUCP, closes bug #19127 |
260 |
- dobin auxiliary/rmail/rmail |
261 |
- |
262 |
- # Provide another link for legacy FSH |
263 |
- dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
264 |
- |
265 |
- # Install qshape and posttls-finger |
266 |
- dobin auxiliary/qshape/qshape.pl |
267 |
- doman man/man1/qshape.1 |
268 |
- dobin bin/posttls-finger |
269 |
- doman man/man1/posttls-finger.1 |
270 |
- |
271 |
- # Performance tuning tools and their manuals |
272 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
273 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
274 |
- |
275 |
- # Set proper permissions on required files/directories |
276 |
- dodir /var/lib/postfix |
277 |
- keepdir /var/lib/postfix |
278 |
- fowners -R postfix:postfix /var/lib/postfix |
279 |
- fperms 0750 /var/lib/postfix |
280 |
- fowners root:postdrop /usr/sbin/post{drop,queue} |
281 |
- fperms 02711 /usr/sbin/post{drop,queue} |
282 |
- |
283 |
- keepdir /etc/postfix |
284 |
- if use mbox; then |
285 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
286 |
- else |
287 |
- mypostconf="home_mailbox=.maildir/" |
288 |
- fi |
289 |
- LD_LIBRARY_PATH="${S}/lib" \ |
290 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
291 |
- -e ${mypostconf} || die "postconf failed" |
292 |
- |
293 |
- insinto /etc/postfix |
294 |
- newins "${FILESDIR}"/smtp.pass saslpass |
295 |
- fperms 600 /etc/postfix/saslpass |
296 |
- |
297 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
298 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
299 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
300 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
301 |
- |
302 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
303 |
- use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
304 |
- |
305 |
- pamd_mimic_system smtp auth account |
306 |
- |
307 |
- if use sasl; then |
308 |
- insinto /etc/sasl2 |
309 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
310 |
- fi |
311 |
- |
312 |
- # header files |
313 |
- insinto /usr/include/postfix |
314 |
- doins include/*.h |
315 |
- |
316 |
- # Keep config_dir clean |
317 |
- rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} |
318 |
- rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} |
319 |
- |
320 |
- if has_version mail-mta/postfix; then |
321 |
- # let the sysadmin decide when to change the compatibility_level |
322 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
323 |
- fi |
324 |
- |
325 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
326 |
-} |
327 |
- |
328 |
-pkg_postinst() { |
329 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
330 |
- ewarn |
331 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
332 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
333 |
- ewarn "work correctly without it." |
334 |
- ewarn |
335 |
- fi |
336 |
- |
337 |
- # configure tls |
338 |
- if use ssl ; then |
339 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
340 |
- elog "To configure client side TLS settings:" |
341 |
- elog "${EROOT}"usr/sbin/postfix tls enable-client |
342 |
- fi |
343 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
344 |
- elog "To configure server side TLS settings:" |
345 |
- elog "${EROOT}"usr/sbin/postfix tls enable-server |
346 |
- fi |
347 |
- fi |
348 |
-} |
349 |
|
350 |
diff --git a/mail-mta/postfix/postfix-3.2.6.ebuild b/mail-mta/postfix/postfix-3.2.6.ebuild |
351 |
deleted file mode 100644 |
352 |
index b80488e6a46..00000000000 |
353 |
--- a/mail-mta/postfix/postfix-3.2.6.ebuild |
354 |
+++ /dev/null |
355 |
@@ -1,301 +0,0 @@ |
356 |
-# Copyright 1999-2018 Gentoo Authors |
357 |
-# Distributed under the terms of the GNU General Public License v2 |
358 |
- |
359 |
-EAPI=6 |
360 |
-inherit flag-o-matic pam systemd toolchain-funcs user |
361 |
- |
362 |
-MY_PV="${PV/_pre/-}" |
363 |
-MY_SRC="${PN}-${MY_PV}" |
364 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
365 |
-RC_VER="2.7" |
366 |
- |
367 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
368 |
-HOMEPAGE="http://www.postfix.org/" |
369 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
370 |
- |
371 |
-LICENSE="|| ( IBM EPL-2.0 )" |
372 |
-SLOT="0" |
373 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
374 |
-IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
375 |
- |
376 |
-DEPEND=">=dev-libs/libpcre-3.4 |
377 |
- dev-lang/perl |
378 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
379 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
380 |
- eai? ( dev-libs/icu:= ) |
381 |
- ldap? ( net-nds/openldap ) |
382 |
- ldap-bind? ( net-nds/openldap[sasl] ) |
383 |
- lmdb? ( >=dev-db/lmdb-0.9.11 ) |
384 |
- mysql? ( virtual/mysql ) |
385 |
- nis? ( net-libs/libnsl ) |
386 |
- pam? ( virtual/pam ) |
387 |
- postgres? ( dev-db/postgresql:* ) |
388 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
389 |
- sqlite? ( dev-db/sqlite:3 ) |
390 |
- ssl? ( |
391 |
- !libressl? ( dev-libs/openssl:0= ) |
392 |
- libressl? ( dev-libs/libressl ) |
393 |
- )" |
394 |
- |
395 |
-RDEPEND="${DEPEND} |
396 |
- memcached? ( net-misc/memcached ) |
397 |
- net-mail/mailbase |
398 |
- !mail-mta/courier |
399 |
- !mail-mta/esmtp |
400 |
- !mail-mta/exim |
401 |
- !mail-mta/mini-qmail |
402 |
- !mail-mta/msmtp[mta] |
403 |
- !mail-mta/netqmail |
404 |
- !mail-mta/nullmailer |
405 |
- !mail-mta/qmail-ldap |
406 |
- !mail-mta/sendmail |
407 |
- !mail-mta/opensmtpd |
408 |
- !<mail-mta/ssmtp-2.64-r2 |
409 |
- !>=mail-mta/ssmtp-2.64-r2[mta] |
410 |
- !net-mail/fastforward |
411 |
- selinux? ( sec-policy/selinux-postfix )" |
412 |
- |
413 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
414 |
- |
415 |
-S="${WORKDIR}/${MY_SRC}" |
416 |
- |
417 |
-pkg_setup() { |
418 |
- # Add postfix, postdrop user/group (bug #77565) |
419 |
- enewgroup postfix 207 |
420 |
- enewgroup postdrop 208 |
421 |
- enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
422 |
-} |
423 |
- |
424 |
-src_prepare() { |
425 |
- default |
426 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
427 |
- src/util/sys_defs.h || die "sed failed" |
428 |
- # change default paths to better comply with portage standard paths |
429 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
430 |
- eapply -p0 "${FILESDIR}/${PN}-libressl.patch" |
431 |
- eapply -p0 "${FILESDIR}/${PN}-libressl-runtime.patch" |
432 |
-} |
433 |
- |
434 |
-src_configure() { |
435 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
436 |
- do |
437 |
- local AUXLIBS_${name}="" |
438 |
- done |
439 |
- |
440 |
- # Make sure LDFLAGS get passed down to the executables. |
441 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
442 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
443 |
- |
444 |
- use pam && mylibs="${mylibs} -lpam" |
445 |
- |
446 |
- if use ldap; then |
447 |
- mycc="${mycc} -DHAS_LDAP" |
448 |
- AUXLIBS_LDAP="-lldap -llber" |
449 |
- fi |
450 |
- |
451 |
- if use mysql; then |
452 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
453 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
454 |
- fi |
455 |
- |
456 |
- if use postgres; then |
457 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
458 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
459 |
- fi |
460 |
- |
461 |
- if use sqlite; then |
462 |
- mycc="${mycc} -DHAS_SQLITE" |
463 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
464 |
- fi |
465 |
- |
466 |
- if use ssl; then |
467 |
- mycc="${mycc} -DUSE_TLS" |
468 |
- mylibs="${mylibs} -lssl -lcrypto" |
469 |
- fi |
470 |
- |
471 |
- if use lmdb; then |
472 |
- mycc="${mycc} -DHAS_LMDB" |
473 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
474 |
- fi |
475 |
- |
476 |
- if ! use eai; then |
477 |
- mycc="${mycc} -DNO_EAI" |
478 |
- fi |
479 |
- |
480 |
- # broken. and "in other words, not supported" by upstream. |
481 |
- # Use inet_protocols setting in main.cf |
482 |
- #if ! use ipv6; then |
483 |
- # mycc="${mycc} -DNO_IPV6" |
484 |
- #fi |
485 |
- |
486 |
- if use sasl; then |
487 |
- if use dovecot-sasl; then |
488 |
- # Set dovecot as default. |
489 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
490 |
- fi |
491 |
- if use ldap-bind; then |
492 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
493 |
- fi |
494 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
495 |
- mylibs="${mylibs} -lsasl2" |
496 |
- elif use dovecot-sasl; then |
497 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
498 |
- fi |
499 |
- |
500 |
- if ! use nis; then |
501 |
- mycc="${mycc} -DNO_NIS" |
502 |
- fi |
503 |
- |
504 |
- if ! use berkdb; then |
505 |
- mycc="${mycc} -DNO_DB" |
506 |
- if use cdb; then |
507 |
- # change default hash format from Berkeley DB to cdb |
508 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
509 |
- fi |
510 |
- fi |
511 |
- |
512 |
- if use cdb; then |
513 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
514 |
- # Tinycdb is preferred. |
515 |
- if has_version dev-db/tinycdb ; then |
516 |
- einfo "Building with dev-db/tinycdb" |
517 |
- AUXLIBS_CDB="-lcdb" |
518 |
- else |
519 |
- einfo "Building with dev-db/cdb" |
520 |
- CDB_PATH="/usr/$(get_libdir)" |
521 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
522 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
523 |
- done |
524 |
- fi |
525 |
- fi |
526 |
- |
527 |
- # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
528 |
- # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
529 |
- mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
530 |
- filter-lfs-flags |
531 |
- |
532 |
- # Workaround for bug #76512 |
533 |
- if use hardened; then |
534 |
- [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
535 |
- fi |
536 |
- |
537 |
- # Remove annoying C++ comment style warnings - bug #378099 |
538 |
- append-flags -Wno-comment |
539 |
- |
540 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
541 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
542 |
- |
543 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
544 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
545 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
546 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
547 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
548 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
549 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
550 |
-} |
551 |
- |
552 |
-src_install () { |
553 |
- local myconf |
554 |
- use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
555 |
- html_directory=\"/usr/share/doc/${PF}/html\"" |
556 |
- |
557 |
- LD_LIBRARY_PATH="${S}/lib" \ |
558 |
- /bin/sh postfix-install \ |
559 |
- -non-interactive \ |
560 |
- install_root="${D}" \ |
561 |
- config_directory="/etc/postfix" \ |
562 |
- manpage_directory="/usr/share/man" \ |
563 |
- command_directory="/usr/sbin" \ |
564 |
- mailq_path="/usr/bin/mailq" \ |
565 |
- newaliases_path="/usr/bin/newaliases" \ |
566 |
- sendmail_path="/usr/sbin/sendmail" \ |
567 |
- ${myconf} \ |
568 |
- || die "postfix-install failed" |
569 |
- |
570 |
- # Fix spool removal on upgrade |
571 |
- rm -Rf "${D}"/var |
572 |
- keepdir /var/spool/postfix |
573 |
- |
574 |
- # Install rmail for UUCP, closes bug #19127 |
575 |
- dobin auxiliary/rmail/rmail |
576 |
- |
577 |
- # Provide another link for legacy FSH |
578 |
- dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail |
579 |
- |
580 |
- # Install qshape, posttls-finger and collate |
581 |
- dobin auxiliary/qshape/qshape.pl |
582 |
- doman man/man1/qshape.1 |
583 |
- dobin bin/posttls-finger |
584 |
- doman man/man1/posttls-finger.1 |
585 |
- dobin auxiliary/collate/collate.pl |
586 |
- newdoc auxiliary/collate/README README.collate |
587 |
- |
588 |
- # Performance tuning tools and their manuals |
589 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
590 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
591 |
- |
592 |
- keepdir /etc/postfix |
593 |
- if use mbox; then |
594 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
595 |
- else |
596 |
- mypostconf="home_mailbox=.maildir/" |
597 |
- fi |
598 |
- LD_LIBRARY_PATH="${S}/lib" \ |
599 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
600 |
- -e ${mypostconf} || die "postconf failed" |
601 |
- |
602 |
- insinto /etc/postfix |
603 |
- newins "${FILESDIR}"/smtp.pass saslpass |
604 |
- fperms 600 /etc/postfix/saslpass |
605 |
- |
606 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
607 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
608 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
609 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
610 |
- |
611 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
612 |
- use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
613 |
- |
614 |
- pamd_mimic_system smtp auth account |
615 |
- |
616 |
- if use sasl; then |
617 |
- insinto /etc/sasl2 |
618 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
619 |
- fi |
620 |
- |
621 |
- # header files |
622 |
- insinto /usr/include/postfix |
623 |
- doins include/*.h |
624 |
- |
625 |
- if has_version mail-mta/postfix; then |
626 |
- # let the sysadmin decide when to change the compatibility_level |
627 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
628 |
- fi |
629 |
- |
630 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
631 |
-} |
632 |
- |
633 |
-pkg_postinst() { |
634 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
635 |
- ewarn |
636 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
637 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
638 |
- ewarn "work correctly without it." |
639 |
- ewarn |
640 |
- fi |
641 |
- |
642 |
- # check and fix file permissions |
643 |
- "${EROOT}"/usr/sbin/postfix set-permissions 2>/dev/null |
644 |
- |
645 |
- # configure tls |
646 |
- if use ssl ; then |
647 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
648 |
- elog "To configure client side TLS settings:" |
649 |
- elog "${EROOT}"usr/sbin/postfix tls enable-client |
650 |
- fi |
651 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
652 |
- elog "To configure server side TLS settings:" |
653 |
- elog "${EROOT}"usr/sbin/postfix tls enable-server |
654 |
- fi |
655 |
- fi |
656 |
-} |
657 |
|
658 |
diff --git a/mail-mta/postfix/postfix-3.3.1.ebuild b/mail-mta/postfix/postfix-3.3.1.ebuild |
659 |
deleted file mode 100644 |
660 |
index c1734f89d55..00000000000 |
661 |
--- a/mail-mta/postfix/postfix-3.3.1.ebuild |
662 |
+++ /dev/null |
663 |
@@ -1,301 +0,0 @@ |
664 |
-# Copyright 1999-2018 Gentoo Authors |
665 |
-# Distributed under the terms of the GNU General Public License v2 |
666 |
- |
667 |
-EAPI=6 |
668 |
-inherit flag-o-matic pam systemd toolchain-funcs user |
669 |
- |
670 |
-MY_PV="${PV/_rc/-RC}" |
671 |
-MY_SRC="${PN}-${MY_PV}" |
672 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
673 |
-RC_VER="2.7" |
674 |
- |
675 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
676 |
-HOMEPAGE="http://www.postfix.org/" |
677 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
678 |
- |
679 |
-LICENSE="|| ( IBM EPL-2.0 )" |
680 |
-SLOT="0" |
681 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
682 |
-IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
683 |
- |
684 |
-DEPEND=">=dev-libs/libpcre-3.4 |
685 |
- dev-lang/perl |
686 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
687 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
688 |
- eai? ( dev-libs/icu:= ) |
689 |
- ldap? ( net-nds/openldap ) |
690 |
- ldap-bind? ( net-nds/openldap[sasl] ) |
691 |
- lmdb? ( >=dev-db/lmdb-0.9.11 ) |
692 |
- mysql? ( virtual/mysql ) |
693 |
- nis? ( net-libs/libnsl ) |
694 |
- pam? ( virtual/pam ) |
695 |
- postgres? ( dev-db/postgresql:* ) |
696 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
697 |
- sqlite? ( dev-db/sqlite:3 ) |
698 |
- ssl? ( |
699 |
- !libressl? ( dev-libs/openssl:0= ) |
700 |
- libressl? ( dev-libs/libressl ) |
701 |
- )" |
702 |
- |
703 |
-RDEPEND="${DEPEND} |
704 |
- memcached? ( net-misc/memcached ) |
705 |
- net-mail/mailbase |
706 |
- !mail-mta/courier |
707 |
- !mail-mta/esmtp |
708 |
- !mail-mta/exim |
709 |
- !mail-mta/mini-qmail |
710 |
- !mail-mta/msmtp[mta] |
711 |
- !mail-mta/netqmail |
712 |
- !mail-mta/nullmailer |
713 |
- !mail-mta/qmail-ldap |
714 |
- !mail-mta/sendmail |
715 |
- !mail-mta/opensmtpd |
716 |
- !<mail-mta/ssmtp-2.64-r2 |
717 |
- !>=mail-mta/ssmtp-2.64-r2[mta] |
718 |
- !net-mail/fastforward |
719 |
- selinux? ( sec-policy/selinux-postfix )" |
720 |
- |
721 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
722 |
- |
723 |
-S="${WORKDIR}/${MY_SRC}" |
724 |
- |
725 |
-pkg_setup() { |
726 |
- # Add postfix, postdrop user/group (bug #77565) |
727 |
- enewgroup postfix 207 |
728 |
- enewgroup postdrop 208 |
729 |
- enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
730 |
-} |
731 |
- |
732 |
-src_prepare() { |
733 |
- default |
734 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
735 |
- src/util/sys_defs.h || die "sed failed" |
736 |
- # change default paths to better comply with portage standard paths |
737 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
738 |
- eapply -p0 "${FILESDIR}/${PN}-libressl.patch" |
739 |
- eapply -p0 "${FILESDIR}/${PN}-libressl-runtime.patch" |
740 |
-} |
741 |
- |
742 |
-src_configure() { |
743 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
744 |
- do |
745 |
- local AUXLIBS_${name}="" |
746 |
- done |
747 |
- |
748 |
- # Make sure LDFLAGS get passed down to the executables. |
749 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
750 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
751 |
- |
752 |
- use pam && mylibs="${mylibs} -lpam" |
753 |
- |
754 |
- if use ldap; then |
755 |
- mycc="${mycc} -DHAS_LDAP" |
756 |
- AUXLIBS_LDAP="-lldap -llber" |
757 |
- fi |
758 |
- |
759 |
- if use mysql; then |
760 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
761 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
762 |
- fi |
763 |
- |
764 |
- if use postgres; then |
765 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
766 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
767 |
- fi |
768 |
- |
769 |
- if use sqlite; then |
770 |
- mycc="${mycc} -DHAS_SQLITE" |
771 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
772 |
- fi |
773 |
- |
774 |
- if use ssl; then |
775 |
- mycc="${mycc} -DUSE_TLS" |
776 |
- mylibs="${mylibs} -lssl -lcrypto" |
777 |
- fi |
778 |
- |
779 |
- if use lmdb; then |
780 |
- mycc="${mycc} -DHAS_LMDB" |
781 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
782 |
- fi |
783 |
- |
784 |
- if ! use eai; then |
785 |
- mycc="${mycc} -DNO_EAI" |
786 |
- fi |
787 |
- |
788 |
- # broken. and "in other words, not supported" by upstream. |
789 |
- # Use inet_protocols setting in main.cf |
790 |
- #if ! use ipv6; then |
791 |
- # mycc="${mycc} -DNO_IPV6" |
792 |
- #fi |
793 |
- |
794 |
- if use sasl; then |
795 |
- if use dovecot-sasl; then |
796 |
- # Set dovecot as default. |
797 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
798 |
- fi |
799 |
- if use ldap-bind; then |
800 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
801 |
- fi |
802 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
803 |
- mylibs="${mylibs} -lsasl2" |
804 |
- elif use dovecot-sasl; then |
805 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
806 |
- fi |
807 |
- |
808 |
- if ! use nis; then |
809 |
- mycc="${mycc} -DNO_NIS" |
810 |
- fi |
811 |
- |
812 |
- if ! use berkdb; then |
813 |
- mycc="${mycc} -DNO_DB" |
814 |
- if use cdb; then |
815 |
- # change default hash format from Berkeley DB to cdb |
816 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
817 |
- fi |
818 |
- fi |
819 |
- |
820 |
- if use cdb; then |
821 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
822 |
- # Tinycdb is preferred. |
823 |
- if has_version dev-db/tinycdb ; then |
824 |
- einfo "Building with dev-db/tinycdb" |
825 |
- AUXLIBS_CDB="-lcdb" |
826 |
- else |
827 |
- einfo "Building with dev-db/cdb" |
828 |
- CDB_PATH="/usr/$(get_libdir)" |
829 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
830 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
831 |
- done |
832 |
- fi |
833 |
- fi |
834 |
- |
835 |
- # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
836 |
- # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
837 |
- mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
838 |
- filter-lfs-flags |
839 |
- |
840 |
- # Workaround for bug #76512 |
841 |
- if use hardened; then |
842 |
- [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
843 |
- fi |
844 |
- |
845 |
- # Remove annoying C++ comment style warnings - bug #378099 |
846 |
- append-flags -Wno-comment |
847 |
- |
848 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
849 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
850 |
- |
851 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
852 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
853 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
854 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
855 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
856 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
857 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
858 |
-} |
859 |
- |
860 |
-src_install () { |
861 |
- local myconf |
862 |
- use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
863 |
- html_directory=\"/usr/share/doc/${PF}/html\"" |
864 |
- |
865 |
- LD_LIBRARY_PATH="${S}/lib" \ |
866 |
- /bin/sh postfix-install \ |
867 |
- -non-interactive \ |
868 |
- install_root="${D}" \ |
869 |
- config_directory="/etc/postfix" \ |
870 |
- manpage_directory="/usr/share/man" \ |
871 |
- command_directory="/usr/sbin" \ |
872 |
- mailq_path="/usr/bin/mailq" \ |
873 |
- newaliases_path="/usr/bin/newaliases" \ |
874 |
- sendmail_path="/usr/sbin/sendmail" \ |
875 |
- ${myconf} \ |
876 |
- || die "postfix-install failed" |
877 |
- |
878 |
- # Fix spool removal on upgrade |
879 |
- rm -Rf "${D}"/var |
880 |
- keepdir /var/spool/postfix |
881 |
- |
882 |
- # Install rmail for UUCP, closes bug #19127 |
883 |
- dobin auxiliary/rmail/rmail |
884 |
- |
885 |
- # Provide another link for legacy FSH |
886 |
- dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail |
887 |
- |
888 |
- # Install qshape, posttls-finger and collate |
889 |
- dobin auxiliary/qshape/qshape.pl |
890 |
- doman man/man1/qshape.1 |
891 |
- dobin bin/posttls-finger |
892 |
- doman man/man1/posttls-finger.1 |
893 |
- dobin auxiliary/collate/collate.pl |
894 |
- newdoc auxiliary/collate/README README.collate |
895 |
- |
896 |
- # Performance tuning tools and their manuals |
897 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
898 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
899 |
- |
900 |
- keepdir /etc/postfix |
901 |
- if use mbox; then |
902 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
903 |
- else |
904 |
- mypostconf="home_mailbox=.maildir/" |
905 |
- fi |
906 |
- LD_LIBRARY_PATH="${S}/lib" \ |
907 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
908 |
- -e ${mypostconf} || die "postconf failed" |
909 |
- |
910 |
- insinto /etc/postfix |
911 |
- newins "${FILESDIR}"/smtp.pass saslpass |
912 |
- fperms 600 /etc/postfix/saslpass |
913 |
- |
914 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
915 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
916 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
917 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
918 |
- |
919 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
920 |
- use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
921 |
- |
922 |
- pamd_mimic_system smtp auth account |
923 |
- |
924 |
- if use sasl; then |
925 |
- insinto /etc/sasl2 |
926 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
927 |
- fi |
928 |
- |
929 |
- # header files |
930 |
- insinto /usr/include/postfix |
931 |
- doins include/*.h |
932 |
- |
933 |
- if has_version mail-mta/postfix; then |
934 |
- # let the sysadmin decide when to change the compatibility_level |
935 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
936 |
- fi |
937 |
- |
938 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
939 |
-} |
940 |
- |
941 |
-pkg_postinst() { |
942 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
943 |
- ewarn |
944 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
945 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
946 |
- ewarn "work correctly without it." |
947 |
- ewarn |
948 |
- fi |
949 |
- |
950 |
- # check and fix file permissions |
951 |
- "${EROOT}"/usr/sbin/postfix set-permissions 2>/dev/null |
952 |
- |
953 |
- # configure tls |
954 |
- if use ssl ; then |
955 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
956 |
- elog "To configure client side TLS settings:" |
957 |
- elog "${EROOT}"usr/sbin/postfix tls enable-client |
958 |
- fi |
959 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
960 |
- elog "To configure server side TLS settings:" |
961 |
- elog "${EROOT}"usr/sbin/postfix tls enable-server |
962 |
- fi |
963 |
- fi |
964 |
-} |
965 |
|
966 |
diff --git a/mail-mta/postfix/postfix-3.3.2-r1.ebuild b/mail-mta/postfix/postfix-3.3.2-r1.ebuild |
967 |
deleted file mode 100644 |
968 |
index ff1fc73cbbe..00000000000 |
969 |
--- a/mail-mta/postfix/postfix-3.3.2-r1.ebuild |
970 |
+++ /dev/null |
971 |
@@ -1,308 +0,0 @@ |
972 |
-# Copyright 1999-2019 Gentoo Authors |
973 |
-# Distributed under the terms of the GNU General Public License v2 |
974 |
- |
975 |
-EAPI=6 |
976 |
-inherit flag-o-matic pam systemd toolchain-funcs user |
977 |
- |
978 |
-MY_PV="${PV/_rc/-RC}" |
979 |
-MY_SRC="${PN}-${MY_PV}" |
980 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
981 |
-RC_VER="2.7" |
982 |
- |
983 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
984 |
-HOMEPAGE="http://www.postfix.org/" |
985 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
986 |
- |
987 |
-LICENSE="|| ( IBM EPL-2.0 )" |
988 |
-SLOT="0" |
989 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
990 |
-IUSE="+berkdb cdb dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
991 |
- |
992 |
-DEPEND=">=dev-libs/libpcre-3.4 |
993 |
- dev-lang/perl |
994 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
995 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
996 |
- eai? ( dev-libs/icu:= ) |
997 |
- ldap? ( net-nds/openldap ) |
998 |
- ldap-bind? ( net-nds/openldap[sasl] ) |
999 |
- lmdb? ( >=dev-db/lmdb-0.9.11 ) |
1000 |
- mysql? ( dev-db/mysql-connector-c:0= ) |
1001 |
- nis? ( net-libs/libnsl ) |
1002 |
- pam? ( virtual/pam ) |
1003 |
- postgres? ( dev-db/postgresql:* ) |
1004 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
1005 |
- sqlite? ( dev-db/sqlite:3 ) |
1006 |
- ssl? ( |
1007 |
- !libressl? ( dev-libs/openssl:0= ) |
1008 |
- libressl? ( dev-libs/libressl ) |
1009 |
- )" |
1010 |
- |
1011 |
-RDEPEND="${DEPEND} |
1012 |
- memcached? ( net-misc/memcached ) |
1013 |
- net-mail/mailbase |
1014 |
- !mail-mta/courier |
1015 |
- !mail-mta/esmtp |
1016 |
- !mail-mta/exim |
1017 |
- !mail-mta/mini-qmail |
1018 |
- !mail-mta/msmtp[mta] |
1019 |
- !mail-mta/netqmail |
1020 |
- !mail-mta/nullmailer |
1021 |
- !mail-mta/qmail-ldap |
1022 |
- !mail-mta/sendmail |
1023 |
- !mail-mta/opensmtpd |
1024 |
- !<mail-mta/ssmtp-2.64-r2 |
1025 |
- !>=mail-mta/ssmtp-2.64-r2[mta] |
1026 |
- !net-mail/fastforward |
1027 |
- selinux? ( sec-policy/selinux-postfix )" |
1028 |
- |
1029 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
1030 |
- |
1031 |
-S="${WORKDIR}/${MY_SRC}" |
1032 |
- |
1033 |
-pkg_setup() { |
1034 |
- # Add postfix, postdrop user/group (bug #77565) |
1035 |
- enewgroup postfix 207 |
1036 |
- enewgroup postdrop 208 |
1037 |
- enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
1038 |
-} |
1039 |
- |
1040 |
-src_prepare() { |
1041 |
- default |
1042 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
1043 |
- src/util/sys_defs.h || die "sed failed" |
1044 |
- # change default paths to better comply with portage standard paths |
1045 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
1046 |
- eapply -p0 "${FILESDIR}/${PN}-libressl.patch" \ |
1047 |
- "${FILESDIR}/${PN}-libressl-runtime.patch" \ |
1048 |
- "${FILESDIR}/${PN}-libressl-eccurve.patch" \ |
1049 |
- "${FILESDIR}/${PN}-libressl-session-tickets.patch" |
1050 |
-} |
1051 |
- |
1052 |
-src_configure() { |
1053 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
1054 |
- do |
1055 |
- local AUXLIBS_${name}="" |
1056 |
- done |
1057 |
- |
1058 |
- # Make sure LDFLAGS get passed down to the executables. |
1059 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
1060 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
1061 |
- |
1062 |
- use pam && mylibs="${mylibs} -lpam" |
1063 |
- |
1064 |
- if use ldap; then |
1065 |
- mycc="${mycc} -DHAS_LDAP" |
1066 |
- AUXLIBS_LDAP="-lldap -llber" |
1067 |
- fi |
1068 |
- |
1069 |
- if use mysql; then |
1070 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
1071 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
1072 |
- fi |
1073 |
- |
1074 |
- if use postgres; then |
1075 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
1076 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
1077 |
- fi |
1078 |
- |
1079 |
- if use sqlite; then |
1080 |
- mycc="${mycc} -DHAS_SQLITE" |
1081 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
1082 |
- fi |
1083 |
- |
1084 |
- if use ssl; then |
1085 |
- mycc="${mycc} -DUSE_TLS" |
1086 |
- mylibs="${mylibs} -lssl -lcrypto" |
1087 |
- fi |
1088 |
- |
1089 |
- if use lmdb; then |
1090 |
- mycc="${mycc} -DHAS_LMDB" |
1091 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
1092 |
- fi |
1093 |
- |
1094 |
- if ! use eai; then |
1095 |
- mycc="${mycc} -DNO_EAI" |
1096 |
- fi |
1097 |
- |
1098 |
- # broken. and "in other words, not supported" by upstream. |
1099 |
- # Use inet_protocols setting in main.cf |
1100 |
- #if ! use ipv6; then |
1101 |
- # mycc="${mycc} -DNO_IPV6" |
1102 |
- #fi |
1103 |
- |
1104 |
- if use sasl; then |
1105 |
- if use dovecot-sasl; then |
1106 |
- # Set dovecot as default. |
1107 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
1108 |
- fi |
1109 |
- if use ldap-bind; then |
1110 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
1111 |
- fi |
1112 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
1113 |
- mylibs="${mylibs} -lsasl2" |
1114 |
- elif use dovecot-sasl; then |
1115 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
1116 |
- fi |
1117 |
- |
1118 |
- if ! use nis; then |
1119 |
- mycc="${mycc} -DNO_NIS" |
1120 |
- fi |
1121 |
- |
1122 |
- if ! use berkdb; then |
1123 |
- mycc="${mycc} -DNO_DB" |
1124 |
- if use cdb; then |
1125 |
- # change default hash format from Berkeley DB to cdb |
1126 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
1127 |
- fi |
1128 |
- fi |
1129 |
- |
1130 |
- if use cdb; then |
1131 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
1132 |
- # Tinycdb is preferred. |
1133 |
- if has_version dev-db/tinycdb ; then |
1134 |
- einfo "Building with dev-db/tinycdb" |
1135 |
- AUXLIBS_CDB="-lcdb" |
1136 |
- else |
1137 |
- einfo "Building with dev-db/cdb" |
1138 |
- CDB_PATH="/usr/$(get_libdir)" |
1139 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
1140 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
1141 |
- done |
1142 |
- fi |
1143 |
- fi |
1144 |
- |
1145 |
- # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
1146 |
- # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
1147 |
- mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
1148 |
- filter-lfs-flags |
1149 |
- |
1150 |
- # Workaround for bug #76512 |
1151 |
- if use hardened; then |
1152 |
- [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
1153 |
- fi |
1154 |
- |
1155 |
- # Remove annoying C++ comment style warnings - bug #378099 |
1156 |
- append-flags -Wno-comment |
1157 |
- |
1158 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
1159 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
1160 |
- |
1161 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
1162 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
1163 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
1164 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
1165 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
1166 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
1167 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
1168 |
-} |
1169 |
- |
1170 |
-src_install () { |
1171 |
- LD_LIBRARY_PATH="${S}/lib" \ |
1172 |
- /bin/sh postfix-install \ |
1173 |
- -non-interactive \ |
1174 |
- install_root="${D}" \ |
1175 |
- config_directory="/etc/postfix" \ |
1176 |
- manpage_directory="/usr/share/man" \ |
1177 |
- command_directory="/usr/sbin" \ |
1178 |
- mailq_path="/usr/bin/mailq" \ |
1179 |
- newaliases_path="/usr/bin/newaliases" \ |
1180 |
- sendmail_path="/usr/sbin/sendmail" \ |
1181 |
- || die "postfix-install failed" |
1182 |
- |
1183 |
- # Fix spool removal on upgrade |
1184 |
- rm -Rf "${D}"/var |
1185 |
- keepdir /var/spool/postfix |
1186 |
- |
1187 |
- # Install rmail for UUCP, closes bug #19127 |
1188 |
- dobin auxiliary/rmail/rmail |
1189 |
- |
1190 |
- # Provide another link for legacy FSH |
1191 |
- dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail |
1192 |
- |
1193 |
- # Install qshape, posttls-finger and collate |
1194 |
- dobin auxiliary/qshape/qshape.pl |
1195 |
- doman man/man1/qshape.1 |
1196 |
- dobin bin/posttls-finger |
1197 |
- doman man/man1/posttls-finger.1 |
1198 |
- dobin auxiliary/collate/collate.pl |
1199 |
- newdoc auxiliary/collate/README README.collate |
1200 |
- |
1201 |
- # Performance tuning tools and their manuals |
1202 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
1203 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
1204 |
- |
1205 |
- # Set proper permissions on required files/directories |
1206 |
- keepdir /var/lib/postfix |
1207 |
- fowners -R postfix:postfix /var/lib/postfix |
1208 |
- fperms 0750 /var/lib/postfix |
1209 |
- fowners root:postdrop /usr/sbin/post{drop,queue} |
1210 |
- fperms 02755 /usr/sbin/post{drop,queue} |
1211 |
- |
1212 |
- keepdir /etc/postfix |
1213 |
- keepdir /etc/postfix/postfix-files.d |
1214 |
- if use mbox; then |
1215 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
1216 |
- else |
1217 |
- mypostconf="home_mailbox=.maildir/" |
1218 |
- fi |
1219 |
- LD_LIBRARY_PATH="${S}/lib" \ |
1220 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
1221 |
- -e ${mypostconf} || die "postconf failed" |
1222 |
- |
1223 |
- insinto /etc/postfix |
1224 |
- newins "${FILESDIR}"/smtp.pass saslpass |
1225 |
- fperms 600 /etc/postfix/saslpass |
1226 |
- |
1227 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
1228 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
1229 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
1230 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
1231 |
- |
1232 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
1233 |
- mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
1234 |
- # postfix set-permissions expects uncompressed man files |
1235 |
- docompress -x /usr/share/man |
1236 |
- |
1237 |
- pamd_mimic_system smtp auth account |
1238 |
- |
1239 |
- if use sasl; then |
1240 |
- insinto /etc/sasl2 |
1241 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
1242 |
- fi |
1243 |
- |
1244 |
- # header files |
1245 |
- insinto /usr/include/postfix |
1246 |
- doins include/*.h |
1247 |
- |
1248 |
- if has_version mail-mta/postfix; then |
1249 |
- # let the sysadmin decide when to change the compatibility_level |
1250 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
1251 |
- fi |
1252 |
- |
1253 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1254 |
-} |
1255 |
- |
1256 |
-pkg_postinst() { |
1257 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
1258 |
- ewarn |
1259 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
1260 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
1261 |
- ewarn "work correctly without it." |
1262 |
- ewarn |
1263 |
- fi |
1264 |
- |
1265 |
- # check and fix file permissions |
1266 |
- "${EROOT}"/usr/sbin/postfix set-permissions |
1267 |
- |
1268 |
- # configure tls |
1269 |
- if use ssl ; then |
1270 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
1271 |
- elog "To configure client side TLS settings:" |
1272 |
- elog "${EROOT}"usr/sbin/postfix tls enable-client |
1273 |
- fi |
1274 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
1275 |
- elog "To configure server side TLS settings:" |
1276 |
- elog "${EROOT}"usr/sbin/postfix tls enable-server |
1277 |
- fi |
1278 |
- fi |
1279 |
-} |