1 |
commit: 1838328d3b5289c342385e0fddc185bc46534d8a |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 22 06:52:13 2016 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 22 06:52:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1838328d |
7 |
|
8 |
mail-mta/postfix: version bump to postfix-3.2_pre20160221 |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
mail-mta/postfix/Manifest | 1 + |
13 |
mail-mta/postfix/postfix-3.2_pre20160221.ebuild | 313 ++++++++++++++++++++++++ |
14 |
2 files changed, 314 insertions(+) |
15 |
|
16 |
diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest |
17 |
index c6d9fc3..8c8aede 100644 |
18 |
--- a/mail-mta/postfix/Manifest |
19 |
+++ b/mail-mta/postfix/Manifest |
20 |
@@ -4,4 +4,5 @@ DIST postfix-3.0.2.tar.gz 4239235 SHA256 68256314202f5f0f24022d64f7ac664d28fa139 |
21 |
DIST postfix-3.0.3.tar.gz 4240588 SHA256 401e46ec3450569dcce60d1d8ca22a19ab1f7f817b0cc730cdf4875ba608ac02 SHA512 b6cd091a8cdda9678fa2979082e47a363dd086e4376effc0a427d1beb5eb35bd7dc28003ad28323c42318d7f630e0d8b105c56fd1a63bd5b5a20501db68ac524 WHIRLPOOL b013164f12e2adde464052f37584320687716f18c65cdd01344848bbcdd5a08be16c741234a063d717474a50be0d14d7b5574ccb69dc56e00f30b619d148c9f9 |
22 |
DIST postfix-3.0.4.tar.gz 4240805 SHA256 b81ce81176b9df7183ad99b9c98000135f5e88e659493ab50db5d9fe5b8dba0e SHA512 ca1ad1b7a0c552825d820e1ea017bdd79cf31e6262c9d2b801fa11011be5e10549cfb57745cec4177046a178fab104f3b7f79bf08708bb7772b127970970949d WHIRLPOOL e1a00ba9733522109ebbefa902021abda3bed0316da98cfb98a305122e736f5889b8b5a6426f152d0c68a9f8cb675683fddb80fd12fa6b278f1ae8c024c5fc1c |
23 |
DIST postfix-3.1-20160214.tar.gz 4326879 SHA256 342d72db2b2a95dbc84a85bd767874b95d17e1a0428397911ed3b72176c0993a SHA512 383c613f2ecff0115d752a641480412fd8fc706392e52624122254d625906c377136834bc4cf633fc5d840eb638e7667b8ac81d63fc0bdc3ef19f9cb5121a732 WHIRLPOOL 97db84fe14b5970468d22b5601539ac6c48223305c68edc3232047c94c527eaf07dfb3b30e11962b9d448f130d39875d99f3d719d13ba0ccba20a8e086804985 |
24 |
+DIST postfix-3.2-20160221.tar.gz 4328066 SHA256 f9cd8af9bde5b5b10ce401ef69da5344da1c6d12d34c90e5215972a339de0eb6 SHA512 3be6f1cf53f18c0df129794338e3bef12357290fcbc9bddd04d64425e13f45bb4ad8282d5d8eefacf4d56a444bc09adb22f719935d83181d03bc131b28c67c10 WHIRLPOOL b3b4a8d3bb7a497b084b4c6426208c646f7e291a51977ab0572c396b4c217650d15ffef720b65392658794e1cd9eecd169d40d031589bba8b5be38521c6cd40e |
25 |
DIST postfix-vda-v13-2.10.0.patch 55701 SHA256 6208021eb0b37ac6482e334e538ed5700cc22c4d4dd66ed9e975ae5f20bf935f SHA512 0b4b53a8cd28abf56eee3b2ed63ca1814251b60816e6ca1143249d25fd6ef7f905bec3134125ac6e851af685db8aae878012113693261529ae2ddbcf1bd93e62 WHIRLPOOL d98b7d2177b8b69738086880fd08c336fa60b99ff7413624e628fd5f17be2064f2ccaa37c047d3013ed41c0ff1bcb76e7962f8390c4179f28ab11733dd3b59d3 |
26 |
|
27 |
diff --git a/mail-mta/postfix/postfix-3.2_pre20160221.ebuild b/mail-mta/postfix/postfix-3.2_pre20160221.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..790c62e |
30 |
--- /dev/null |
31 |
+++ b/mail-mta/postfix/postfix-3.2_pre20160221.ebuild |
32 |
@@ -0,0 +1,313 @@ |
33 |
+# Copyright 1999-2016 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=5 |
38 |
+inherit eutils flag-o-matic multilib pam systemd toolchain-funcs user versionator |
39 |
+ |
40 |
+MY_PV="${PV/_pre/-}" |
41 |
+MY_SRC="${PN}-${MY_PV}" |
42 |
+MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/experimental" |
43 |
+RC_VER="2.7" |
44 |
+ |
45 |
+DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
46 |
+HOMEPAGE="http://www.postfix.org/" |
47 |
+SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
48 |
+ |
49 |
+LICENSE="IBM" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
52 |
+IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
53 |
+ |
54 |
+DEPEND=">=dev-libs/libpcre-3.4 |
55 |
+ dev-lang/perl |
56 |
+ berkdb? ( >=sys-libs/db-3.2:* ) |
57 |
+ cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
58 |
+ eai? ( dev-libs/icu:= ) |
59 |
+ ldap? ( net-nds/openldap ) |
60 |
+ ldap-bind? ( net-nds/openldap[sasl] ) |
61 |
+ lmdb? ( >=dev-db/lmdb-0.9.11 ) |
62 |
+ mysql? ( virtual/mysql ) |
63 |
+ pam? ( virtual/pam ) |
64 |
+ postgres? ( dev-db/postgresql:* ) |
65 |
+ sasl? ( >=dev-libs/cyrus-sasl-2 ) |
66 |
+ sqlite? ( dev-db/sqlite:3 ) |
67 |
+ ssl? ( |
68 |
+ !libressl? ( dev-libs/openssl:0 ) |
69 |
+ libressl? ( dev-libs/libressl ) |
70 |
+ )" |
71 |
+ |
72 |
+RDEPEND="${DEPEND} |
73 |
+ dovecot-sasl? ( net-mail/dovecot ) |
74 |
+ memcached? ( net-misc/memcached ) |
75 |
+ net-mail/mailbase |
76 |
+ !mail-mta/courier |
77 |
+ !mail-mta/esmtp |
78 |
+ !mail-mta/exim |
79 |
+ !mail-mta/mini-qmail |
80 |
+ !mail-mta/msmtp[mta] |
81 |
+ !mail-mta/netqmail |
82 |
+ !mail-mta/nullmailer |
83 |
+ !mail-mta/qmail-ldap |
84 |
+ !mail-mta/sendmail |
85 |
+ !mail-mta/opensmtpd |
86 |
+ !<mail-mta/ssmtp-2.64-r2 |
87 |
+ !>=mail-mta/ssmtp-2.64-r2[mta] |
88 |
+ !net-mail/fastforward |
89 |
+ selinux? ( sec-policy/selinux-postfix )" |
90 |
+ |
91 |
+REQUIRED_USE="ldap-bind? ( ldap sasl )" |
92 |
+ |
93 |
+S="${WORKDIR}/${MY_SRC}" |
94 |
+ |
95 |
+pkg_setup() { |
96 |
+ # Add postfix, postdrop user/group (bug #77565) |
97 |
+ enewgroup postfix 207 |
98 |
+ enewgroup postdrop 208 |
99 |
+ enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
100 |
+} |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
104 |
+ src/util/sys_defs.h || die "sed failed" |
105 |
+ |
106 |
+ # change default paths to better comply with portage standard paths |
107 |
+ sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
108 |
+ |
109 |
+ epatch_user |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
114 |
+ do |
115 |
+ local AUXLIBS_${name}="" |
116 |
+ done |
117 |
+ |
118 |
+ # Make sure LDFLAGS get passed down to the executables. |
119 |
+ local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
120 |
+ AUXLIBS_PCRE="$(pcre-config --libs)" |
121 |
+ |
122 |
+ use pam && mylibs="${mylibs} -lpam" |
123 |
+ |
124 |
+ if use ldap; then |
125 |
+ mycc="${mycc} -DHAS_LDAP" |
126 |
+ AUXLIBS_LDAP="-lldap -llber" |
127 |
+ fi |
128 |
+ |
129 |
+ if use mysql; then |
130 |
+ mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
131 |
+ AUXLIBS_MYSQL="$(mysql_config --libs)" |
132 |
+ fi |
133 |
+ |
134 |
+ if use postgres; then |
135 |
+ mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
136 |
+ AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
137 |
+ fi |
138 |
+ |
139 |
+ if use sqlite; then |
140 |
+ mycc="${mycc} -DHAS_SQLITE" |
141 |
+ AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
142 |
+ fi |
143 |
+ |
144 |
+ if use ssl; then |
145 |
+ mycc="${mycc} -DUSE_TLS" |
146 |
+ mylibs="${mylibs} -lssl -lcrypto" |
147 |
+ fi |
148 |
+ |
149 |
+ if use lmdb; then |
150 |
+ mycc="${mycc} -DHAS_LMDB" |
151 |
+ AUXLIBS_LMDB="-llmdb -lpthread" |
152 |
+ fi |
153 |
+ |
154 |
+ if ! use eai; then |
155 |
+ mycc="${mycc} -DNO_EAI" |
156 |
+ fi |
157 |
+ |
158 |
+ # broken. and "in other words, not supported" by upstream. |
159 |
+ # Use inet_protocols setting in main.cf |
160 |
+ #if ! use ipv6; then |
161 |
+ # mycc="${mycc} -DNO_IPV6" |
162 |
+ #fi |
163 |
+ |
164 |
+ if use sasl; then |
165 |
+ if use dovecot-sasl; then |
166 |
+ # Set dovecot as default. |
167 |
+ mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
168 |
+ fi |
169 |
+ if use ldap-bind; then |
170 |
+ mycc="${mycc} -DUSE_LDAP_SASL" |
171 |
+ fi |
172 |
+ mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
173 |
+ mylibs="${mylibs} -lsasl2" |
174 |
+ elif use dovecot-sasl; then |
175 |
+ mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
176 |
+ fi |
177 |
+ |
178 |
+ if ! use nis; then |
179 |
+ mycc="${mycc} -DNO_NIS" |
180 |
+ fi |
181 |
+ |
182 |
+ if ! use berkdb; then |
183 |
+ mycc="${mycc} -DNO_DB" |
184 |
+ if use cdb; then |
185 |
+ # change default hash format from Berkeley DB to cdb |
186 |
+ mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
187 |
+ fi |
188 |
+ fi |
189 |
+ |
190 |
+ if use cdb; then |
191 |
+ mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
192 |
+ # Tinycdb is preferred. |
193 |
+ if has_version dev-db/tinycdb ; then |
194 |
+ einfo "Building with dev-db/tinycdb" |
195 |
+ AUXLIBS_CDB="-lcdb" |
196 |
+ else |
197 |
+ einfo "Building with dev-db/cdb" |
198 |
+ CDB_PATH="/usr/$(get_libdir)" |
199 |
+ for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
200 |
+ AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
201 |
+ done |
202 |
+ fi |
203 |
+ fi |
204 |
+ |
205 |
+ # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
206 |
+ # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
207 |
+ mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
208 |
+ filter-lfs-flags |
209 |
+ |
210 |
+ # Workaround for bug #76512 |
211 |
+ if use hardened; then |
212 |
+ [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
213 |
+ fi |
214 |
+ |
215 |
+ # Remove annoying C++ comment style warnings - bug #378099 |
216 |
+ append-flags -Wno-comment |
217 |
+ |
218 |
+ sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
219 |
+ sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
220 |
+ |
221 |
+ emake makefiles shared=yes dynamicmaps=no pie=yes \ |
222 |
+ shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
223 |
+ DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
224 |
+ AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
225 |
+ AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
226 |
+ AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
227 |
+ AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
228 |
+} |
229 |
+ |
230 |
+src_install () { |
231 |
+ local myconf |
232 |
+ use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
233 |
+ html_directory=\"/usr/share/doc/${PF}/html\"" |
234 |
+ |
235 |
+ LD_LIBRARY_PATH="${S}/lib" \ |
236 |
+ /bin/sh postfix-install \ |
237 |
+ -non-interactive \ |
238 |
+ install_root="${D}" \ |
239 |
+ config_directory="/etc/postfix" \ |
240 |
+ manpage_directory="/usr/share/man" \ |
241 |
+ command_directory="/usr/sbin" \ |
242 |
+ mailq_path="/usr/bin/mailq" \ |
243 |
+ newaliases_path="/usr/bin/newaliases" \ |
244 |
+ sendmail_path="/usr/sbin/sendmail" \ |
245 |
+ ${myconf} \ |
246 |
+ || die "postfix-install failed" |
247 |
+ |
248 |
+ # Fix spool removal on upgrade |
249 |
+ rm -Rf "${D}"/var |
250 |
+ keepdir /var/spool/postfix |
251 |
+ |
252 |
+ # Install rmail for UUCP, closes bug #19127 |
253 |
+ dobin auxiliary/rmail/rmail |
254 |
+ |
255 |
+ # Provide another link for legacy FSH |
256 |
+ dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
257 |
+ |
258 |
+ # Install qshape and posttls-finger |
259 |
+ dobin auxiliary/qshape/qshape.pl |
260 |
+ doman man/man1/qshape.1 |
261 |
+ dobin bin/posttls-finger |
262 |
+ doman man/man1/posttls-finger.1 |
263 |
+ |
264 |
+ # Performance tuning tools and their manuals |
265 |
+ dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
266 |
+ doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
267 |
+ |
268 |
+ # Set proper permissions on required files/directories |
269 |
+ dodir /var/lib/postfix |
270 |
+ keepdir /var/lib/postfix |
271 |
+ fowners -R postfix:postfix /var/lib/postfix |
272 |
+ fperms 0750 /var/lib/postfix |
273 |
+ fowners root:postdrop /usr/sbin/post{drop,queue} |
274 |
+ fperms 02711 /usr/sbin/post{drop,queue} |
275 |
+ |
276 |
+ keepdir /etc/postfix |
277 |
+ if use mbox; then |
278 |
+ mypostconf="mail_spool_directory=/var/spool/mail" |
279 |
+ else |
280 |
+ mypostconf="home_mailbox=.maildir/" |
281 |
+ fi |
282 |
+ LD_LIBRARY_PATH="${S}/lib" \ |
283 |
+ "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
284 |
+ -e ${mypostconf} || die "postconf failed" |
285 |
+ |
286 |
+ insinto /etc/postfix |
287 |
+ newins "${FILESDIR}"/smtp.pass saslpass |
288 |
+ fperms 600 /etc/postfix/saslpass |
289 |
+ |
290 |
+ newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
291 |
+ # do not start mysql/postgres unnecessarily - bug #359913 |
292 |
+ use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
293 |
+ use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
294 |
+ |
295 |
+ dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
296 |
+ use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
297 |
+ |
298 |
+ pamd_mimic_system smtp auth account |
299 |
+ |
300 |
+ if use sasl; then |
301 |
+ insinto /etc/sasl2 |
302 |
+ newins "${FILESDIR}"/smtp.sasl smtpd.conf |
303 |
+ fi |
304 |
+ |
305 |
+ # header files |
306 |
+ insinto /usr/include/postfix |
307 |
+ doins include/*.h |
308 |
+ |
309 |
+ # Keep config_dir clean |
310 |
+ rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} |
311 |
+ rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} |
312 |
+ |
313 |
+ if has_version mail-mta/postfix; then |
314 |
+ # let the sysadmin decide when to change the compatibility_level |
315 |
+ sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
316 |
+ fi |
317 |
+ |
318 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
319 |
+} |
320 |
+ |
321 |
+pkg_postinst() { |
322 |
+ [ "${EROOT}" == "/" ] && pkg_config |
323 |
+ |
324 |
+ if [[ ! -e /etc/mail/aliases.db ]] ; then |
325 |
+ ewarn |
326 |
+ ewarn "You must edit /etc/mail/aliases to suit your needs" |
327 |
+ ewarn "and then run /usr/bin/newaliases. Postfix will not" |
328 |
+ ewarn "work correctly without it." |
329 |
+ ewarn |
330 |
+ fi |
331 |
+} |
332 |
+ |
333 |
+pkg_config() { |
334 |
+ # configure tls |
335 |
+ if use ssl ; then |
336 |
+ if "${EROOT}"usr/sbin/postfix tls all-default-client ; then |
337 |
+ elog "Configuring client side TLS settings" |
338 |
+ "${EROOT}"usr/sbin/postfix tls enable-client |
339 |
+ fi |
340 |
+ if "${EROOT}"usr/sbin/postfix tls all-default-server ; then |
341 |
+ elog "Configuring server side TLS settings" |
342 |
+ "${EROOT}"usr/sbin/postfix tls enable-server |
343 |
+ fi |
344 |
+ fi |
345 |
+} |