1 |
commit: 28ad7f2003ba52aab4bb82945ee0fefa01aced0a |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 15 15:29:49 2019 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 15 15:29:49 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28ad7f20 |
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 | 1 - |
14 |
mail-mta/postfix/postfix-3.4.0.ebuild | 326 ---------------------------------- |
15 |
2 files changed, 327 deletions(-) |
16 |
|
17 |
diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest |
18 |
index 13dab8258e5..45c9c9e6232 100644 |
19 |
--- a/mail-mta/postfix/Manifest |
20 |
+++ b/mail-mta/postfix/Manifest |
21 |
@@ -2,7 +2,6 @@ DIST postfix-2.10.9.tar.gz 3820525 BLAKE2B ed1fc10f016cdc63fe2b86c68cca270c98348 |
22 |
DIST postfix-3.2.4.tar.gz 4390376 BLAKE2B 132a6b467f9156d716a92cc7beae0f9a7c47e6a2045e83726a5e7305e6f9bf666ebcfb93a9ab1a96ec988431661059d62e926287bd13089eeb4bab3e8f4b9fc7 SHA512 6dc583d3b1c98f5c8d6486351bee9f92a98b5379cd0d76d26a382379c112317e7a2a58c3a200477a6d0f831c73395257d1a63170df17ea8a65a4048a7df391f8 |
23 |
DIST postfix-3.3.1.tar.gz 4420912 BLAKE2B 065fd04cdfa343a6c50a629e8da47fad71465df790ca88adcad4efc7ab273330c39998c6bf503587b8bcba3d87bb98b1be6413e49449e2241258a99217473c11 SHA512 2307f50f8b7dab1db46ebe4ae30bc5682a25b9c49ae5ae65aa95b4620bb5450dd5929977c0f34b9e73a92ca6af36fd8e24167732420a1a2d89167c7a3b197276 |
24 |
DIST postfix-3.3.3.tar.gz 4429713 BLAKE2B 0699d9bdc0f3a5267f9cbe5dc3b6ddc2e83d1b984b07638913c8ba419a0c71135ccae6f434aa2c60f69ffe60356b7a7652a6d83c176b119cd2f9ab8374a32283 SHA512 9d04d48b5393c49c00ca62f0a24e21c9642f2b645431b66b532a559ad1b4d35c7581fec8bd1bb1a2d7b31b812b1cea3b29e0a0cbd6576bd377b2c810d27b7ec3 |
25 |
-DIST postfix-3.4.0.tar.gz 4580627 BLAKE2B 4a2356c8bd74d7146833e321e426503003058ba92e50a486fee2eb39a4a75aa96fb48511b4ea457fa94c84363593f24f3671b42bda4e92dcb71bb8eccf219996 SHA512 2afc7a4aef8768eb140b803b9e29d9270bd536d168845bfde18fc58c233d6d7293ab4ad40ab0b452c55130f7139246c752007e8d676294af3068110a9021f4e2 |
26 |
DIST postfix-3.4.3.tar.gz 4581033 BLAKE2B b77aaf512a9987bd23d7a0cf4ae173fbc6d89721fde52521b2c20deb6d2c47a23ef55cd28404cb684c3057817e3f1f1b70c34ff8e4b2c0a8b889938ae74046db SHA512 8832f6701dd7b48439f888a332b492695caaadb04834bc54101a5f8b790e76cd5e6f6654732bfd651bdbd5793049b0e181d3ea31185d071681c8c855da5256a1 |
27 |
DIST postfix-3.4.4.tar.gz 4581121 BLAKE2B a891b080737e39695a92fd92928cccdd093ba32a13a33c38e810d467e65f68cbe5a2d8d6423b85fbe2f749fef14b6d242988185d89031ed491b5dcd3ed535d38 SHA512 e8398486a41f79da3716024104c178083c80eba7e3eec7669f9dd986914637174423c0328bcc79393b2d21edae72304ca4a89d53083f21598657593d05a05d64 |
28 |
DIST postfix-3.5-20190312.tar.gz 4571238 BLAKE2B 0056d18935cfe56c869e501d04b1cccd6a80ff82647e5308e420a7a252cd713ddc43e37765b69a65040dd91ba3937618d684a06b0f0e3a44627d2aec9d56348c SHA512 aff124a317e3a61c8c6ddbb749458895f9ed48cd86533ec53d2cc85f76bebb3e532407ac20cc3d5a58befab6f2564abdbe45bfc219c50c8d042ba81459970093 |
29 |
|
30 |
diff --git a/mail-mta/postfix/postfix-3.4.0.ebuild b/mail-mta/postfix/postfix-3.4.0.ebuild |
31 |
deleted file mode 100644 |
32 |
index 26d271615d3..00000000000 |
33 |
--- a/mail-mta/postfix/postfix-3.4.0.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,326 +0,0 @@ |
36 |
-# Copyright 1999-2019 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=7 |
40 |
- |
41 |
-inherit flag-o-matic pam systemd toolchain-funcs user |
42 |
- |
43 |
-MY_PV="${PV/_rc/-RC}" |
44 |
-MY_SRC="${PN}-${MY_PV}" |
45 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
46 |
-RC_VER="2.7" |
47 |
- |
48 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
49 |
-HOMEPAGE="http://www.postfix.org/" |
50 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
51 |
- |
52 |
-LICENSE="|| ( IBM EPL-2.0 )" |
53 |
-SLOT="0" |
54 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
55 |
-IUSE="+berkdb cdb dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
56 |
- |
57 |
-DEPEND=">=dev-libs/libpcre-3.4 |
58 |
- dev-lang/perl |
59 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
60 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
61 |
- eai? ( dev-libs/icu:= ) |
62 |
- ldap? ( net-nds/openldap ) |
63 |
- ldap-bind? ( net-nds/openldap[sasl] ) |
64 |
- lmdb? ( >=dev-db/lmdb-0.9.11 ) |
65 |
- mysql? ( dev-db/mysql-connector-c:0= ) |
66 |
- nis? ( net-libs/libnsl ) |
67 |
- pam? ( virtual/pam ) |
68 |
- postgres? ( dev-db/postgresql:* ) |
69 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
70 |
- sqlite? ( dev-db/sqlite:3 ) |
71 |
- ssl? ( |
72 |
- !libressl? ( dev-libs/openssl:0= ) |
73 |
- libressl? ( dev-libs/libressl ) |
74 |
- )" |
75 |
- |
76 |
-RDEPEND="${DEPEND} |
77 |
- memcached? ( net-misc/memcached ) |
78 |
- net-mail/mailbase |
79 |
- !mail-mta/courier |
80 |
- !mail-mta/esmtp |
81 |
- !mail-mta/exim |
82 |
- !mail-mta/mini-qmail |
83 |
- !mail-mta/msmtp[mta] |
84 |
- !mail-mta/netqmail |
85 |
- !mail-mta/nullmailer |
86 |
- !mail-mta/qmail-ldap |
87 |
- !mail-mta/sendmail |
88 |
- !mail-mta/opensmtpd |
89 |
- !<mail-mta/ssmtp-2.64-r2 |
90 |
- !>=mail-mta/ssmtp-2.64-r2[mta] |
91 |
- !net-mail/fastforward |
92 |
- selinux? ( sec-policy/selinux-postfix )" |
93 |
- |
94 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
95 |
- |
96 |
-S="${WORKDIR}/${MY_SRC}" |
97 |
- |
98 |
-PATCHES=( "${FILESDIR}/${PN}-linux-5.patch" ) |
99 |
- |
100 |
-pkg_setup() { |
101 |
- if use libressl; then |
102 |
- die "LibreSSL patches are not yet available for postfix-3.4 releases." |
103 |
- fi |
104 |
- # Add postfix, postdrop user/group (bug #77565) |
105 |
- enewgroup postfix 207 |
106 |
- enewgroup postdrop 208 |
107 |
- enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
108 |
-} |
109 |
- |
110 |
-src_prepare() { |
111 |
- default |
112 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
113 |
- src/util/sys_defs.h || die "sed failed" |
114 |
- # change default paths to better comply with portage standard paths |
115 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
116 |
- # libressl support needs work for postfix-3.4 |
117 |
- #eapply -p0 "${FILESDIR}/${PN}-libressl.patch" \ |
118 |
- # "${FILESDIR}/${PN}-libressl-runtime.patch" \ |
119 |
- # "${FILESDIR}/${PN}-libressl-eccurve.patch" |
120 |
- # "${FILESDIR}/${PN}-libressl-session-tickets.patch" |
121 |
-} |
122 |
- |
123 |
-src_configure() { |
124 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
125 |
- do |
126 |
- local AUXLIBS_${name}="" |
127 |
- done |
128 |
- |
129 |
- # Make sure LDFLAGS get passed down to the executables. |
130 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
131 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
132 |
- |
133 |
- use pam && mylibs="${mylibs} -lpam" |
134 |
- |
135 |
- if use ldap; then |
136 |
- mycc="${mycc} -DHAS_LDAP" |
137 |
- AUXLIBS_LDAP="-lldap -llber" |
138 |
- fi |
139 |
- |
140 |
- if use mysql; then |
141 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
142 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
143 |
- fi |
144 |
- |
145 |
- if use postgres; then |
146 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
147 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
148 |
- fi |
149 |
- |
150 |
- if use sqlite; then |
151 |
- mycc="${mycc} -DHAS_SQLITE" |
152 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
153 |
- fi |
154 |
- |
155 |
- if use ssl; then |
156 |
- mycc="${mycc} -DUSE_TLS" |
157 |
- mylibs="${mylibs} -lssl -lcrypto" |
158 |
- fi |
159 |
- |
160 |
- if use lmdb; then |
161 |
- mycc="${mycc} -DHAS_LMDB" |
162 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
163 |
- fi |
164 |
- |
165 |
- if ! use eai; then |
166 |
- mycc="${mycc} -DNO_EAI" |
167 |
- fi |
168 |
- |
169 |
- # broken. and "in other words, not supported" by upstream. |
170 |
- # Use inet_protocols setting in main.cf |
171 |
- #if ! use ipv6; then |
172 |
- # mycc="${mycc} -DNO_IPV6" |
173 |
- #fi |
174 |
- |
175 |
- if use sasl; then |
176 |
- if use dovecot-sasl; then |
177 |
- # Set dovecot as default. |
178 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
179 |
- fi |
180 |
- if use ldap-bind; then |
181 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
182 |
- fi |
183 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
184 |
- mylibs="${mylibs} -lsasl2" |
185 |
- elif use dovecot-sasl; then |
186 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
187 |
- fi |
188 |
- |
189 |
- if ! use nis; then |
190 |
- mycc="${mycc} -DNO_NIS" |
191 |
- fi |
192 |
- |
193 |
- if ! use berkdb; then |
194 |
- mycc="${mycc} -DNO_DB" |
195 |
- if use cdb; then |
196 |
- # change default hash format from Berkeley DB to cdb |
197 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
198 |
- fi |
199 |
- fi |
200 |
- |
201 |
- if use cdb; then |
202 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
203 |
- # Tinycdb is preferred. |
204 |
- if has_version dev-db/tinycdb ; then |
205 |
- einfo "Building with dev-db/tinycdb" |
206 |
- AUXLIBS_CDB="-lcdb" |
207 |
- else |
208 |
- einfo "Building with dev-db/cdb" |
209 |
- CDB_PATH="/usr/$(get_libdir)" |
210 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
211 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
212 |
- done |
213 |
- fi |
214 |
- fi |
215 |
- |
216 |
- # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
217 |
- # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
218 |
- mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
219 |
- filter-lfs-flags |
220 |
- |
221 |
- # Workaround for bug #76512 |
222 |
- if use hardened; then |
223 |
- [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
224 |
- fi |
225 |
- |
226 |
- # Remove annoying C++ comment style warnings - bug #378099 |
227 |
- append-flags -Wno-comment |
228 |
- |
229 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
230 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
231 |
- |
232 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
233 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
234 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
235 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
236 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
237 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
238 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
239 |
-} |
240 |
- |
241 |
-src_install () { |
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 |
- || die "postfix-install failed" |
253 |
- |
254 |
- # Fix spool removal on upgrade |
255 |
- rm -Rf "${D}"/var |
256 |
- keepdir /var/spool/postfix |
257 |
- |
258 |
- # Install rmail for UUCP, closes bug #19127 |
259 |
- dobin auxiliary/rmail/rmail |
260 |
- |
261 |
- # Provide another link for legacy FSH |
262 |
- dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail |
263 |
- |
264 |
- # Install qshape, posttls-finger and collate |
265 |
- dobin auxiliary/qshape/qshape.pl |
266 |
- doman man/man1/qshape.1 |
267 |
- dobin bin/posttls-finger |
268 |
- doman man/man1/posttls-finger.1 |
269 |
- dobin auxiliary/collate/collate.pl |
270 |
- newdoc auxiliary/collate/README README.collate |
271 |
- |
272 |
- # Performance tuning tools and their manuals |
273 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
274 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
275 |
- |
276 |
- # Set proper permissions on required files/directories |
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 02755 /usr/sbin/post{drop,queue} |
282 |
- |
283 |
- keepdir /etc/postfix |
284 |
- keepdir /etc/postfix/postfix-files.d |
285 |
- if use mbox; then |
286 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
287 |
- else |
288 |
- mypostconf="home_mailbox=.maildir/" |
289 |
- fi |
290 |
- LD_LIBRARY_PATH="${S}/lib" \ |
291 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
292 |
- -e ${mypostconf} || die "postconf failed" |
293 |
- |
294 |
- insinto /etc/postfix |
295 |
- newins "${FILESDIR}"/smtp.pass saslpass |
296 |
- fperms 600 /etc/postfix/saslpass |
297 |
- |
298 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
299 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
300 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
301 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
302 |
- |
303 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
304 |
- mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
305 |
- # postfix set-permissions expects uncompressed man files |
306 |
- docompress -x /usr/share/man |
307 |
- |
308 |
- pamd_mimic_system smtp auth account |
309 |
- |
310 |
- if use sasl; then |
311 |
- insinto /etc/sasl2 |
312 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
313 |
- fi |
314 |
- |
315 |
- # header files |
316 |
- insinto /usr/include/postfix |
317 |
- doins include/*.h |
318 |
- |
319 |
- if has_version mail-mta/postfix; then |
320 |
- # let the sysadmin decide when to change the compatibility_level |
321 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
322 |
- fi |
323 |
- |
324 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
325 |
-} |
326 |
- |
327 |
-pkg_preinst() { |
328 |
- if has_version '<mail-mta/postfix-3.4'; then |
329 |
- elog |
330 |
- elog "Postfix-3.4 introduces a new master.cf service 'postlog'" |
331 |
- elog "with type 'unix-dgram' that is used by the new postlogd(8) daemon." |
332 |
- elog "Before backing out to an older Postfix version, edit the master.cf" |
333 |
- elog "file and remove the postlog entry." |
334 |
- elog |
335 |
- fi |
336 |
-} |
337 |
- |
338 |
-pkg_postinst() { |
339 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
340 |
- ewarn |
341 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
342 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
343 |
- ewarn "work correctly without it." |
344 |
- ewarn |
345 |
- fi |
346 |
- |
347 |
- # check and fix file permissions |
348 |
- "${EROOT}"/usr/sbin/postfix set-permissions |
349 |
- |
350 |
- # configure tls |
351 |
- if use ssl ; then |
352 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
353 |
- elog "To configure client side TLS settings:" |
354 |
- elog "${EROOT}"usr/sbin/postfix tls enable-client |
355 |
- fi |
356 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
357 |
- elog "To configure server side TLS settings:" |
358 |
- elog "${EROOT}"usr/sbin/postfix tls enable-server |
359 |
- fi |
360 |
- fi |
361 |
-} |