1 |
commit: 5b0f62d8bd32f123b0e95d7621f542f260c21265 |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 10 10:56:34 2016 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 10 10:56:34 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b0f62d8 |
7 |
|
8 |
mail-mta/postfix: version bump to 3.0.7 |
9 |
|
10 |
Package-Manager: portage-2.3.1 |
11 |
|
12 |
mail-mta/postfix/Manifest | 1 + |
13 |
mail-mta/postfix/postfix-3.0.7.ebuild | 314 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 315 insertions(+) |
15 |
|
16 |
diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest |
17 |
index 8a0ad03..0415b9e 100644 |
18 |
--- a/mail-mta/postfix/Manifest |
19 |
+++ b/mail-mta/postfix/Manifest |
20 |
@@ -4,6 +4,7 @@ DIST postfix-3.0.3.tar.gz 4240588 SHA256 401e46ec3450569dcce60d1d8ca22a19ab1f7f8 |
21 |
DIST postfix-3.0.4.tar.gz 4240805 SHA256 b81ce81176b9df7183ad99b9c98000135f5e88e659493ab50db5d9fe5b8dba0e SHA512 ca1ad1b7a0c552825d820e1ea017bdd79cf31e6262c9d2b801fa11011be5e10549cfb57745cec4177046a178fab104f3b7f79bf08708bb7772b127970970949d WHIRLPOOL e1a00ba9733522109ebbefa902021abda3bed0316da98cfb98a305122e736f5889b8b5a6426f152d0c68a9f8cb675683fddb80fd12fa6b278f1ae8c024c5fc1c |
22 |
DIST postfix-3.0.5.tar.gz 4241656 SHA256 dbe20d011a6fe79d28b5f7e6e86681dafd30f7ed8ad663bec244fc4694c87d1c SHA512 73ae64d5d5a21a773934b1b334bb7c407a1e8f9652a2de7d4c0563d8b399fbd25b9fcc28d1d5ee724fc13c775ee9af2d5d56cb06d4947cd5a18bcf487c71c24e WHIRLPOOL 022110186e5c2e9a11bfe19bd2712d39f751a47a273f75a3aa61f99f34ce76e4f20552c3df87c3878d0c1b7a1bf5bff893191d94a4951e14ce3d6ff7bcfbf905 |
23 |
DIST postfix-3.0.6.tar.gz 4241733 SHA256 8d85480e3728773c70c427090c943516dfbd5cedac5f09388fb1367b7a66f1b9 SHA512 10cef53bde1c479c16d8b06602c5ea4f07377ad32558e36055b20fc815f1ffc77d6bd7841a2aa4f8aac36ac337f09f0ab4329995e89c7ad274dd313e33e6368d WHIRLPOOL b2e40928a5e0129be231cbbb27d570eee16538ea66ee1f0e444cb10ac087f451a1b6b79923569f6315aa0090f260e6c99f2b162943a8e71be9912b09a10e1354 |
24 |
+DIST postfix-3.0.7.tar.gz 4242726 SHA256 2cc47eec71f0dbbe990d1e0de5b2b5236eacce503e4c4eefe753366b80106ab8 SHA512 0663337c091ac9f8cadcb44d33f1cd4716f718fb0bc8f55c300e87cc96517d2b11cb71855f4ea1d8b88dc5a76d14718bbd22ad46e5ad15afaf43bd88fa850efc WHIRLPOOL 20078faba287247e49cffa630b911151323203659de5275c3ad6bbffdcd17dc09acac56b2631aabc9d1dd8e45d8a3b63baa3d1fe55ae94e6059f5951e8c9c9a2 |
25 |
DIST postfix-3.1.0.tar.gz 4336709 SHA256 88ac3e92755629077d9363319b1fa0db406efb10c2f22cdbb941bd8ab36fd733 SHA512 06cf4c827de8d613cab6a57a8e76198d293660a263f60d17dd189f511da4b1e12eb98bbcf75695697a62959e26ca204bf2a53eb6657e8bd756a816977e717783 WHIRLPOOL 5fe4350d47051cfda00505012493f5c6f70598be901cd94a598a7e3332bc022b41050935c5263f140f0df573e3a3e00f6b97dd1d90c01a4e3d78a039f47a16a8 |
26 |
DIST postfix-3.1.1.tar.gz 4337295 SHA256 3deda4c34631970490b1b5fbb559905f93531bf1c7eb00e38b0d0deb1dba9982 SHA512 e094dae3c3aaf6be23edefb7863d2f9fb57cd4e705464f17799fa4f71f9877efdf3f59ceb1970457a0dc6e6f3237ee06131f4ce1b21a5db9a61fe0c5f95a219d WHIRLPOOL 4dbf26e498cb48ebf5d5721aa69447deed4db25dd2a9159514826eb7d4986dd7fef40980281f0872f565750ed5d316f831856b87eaaabfed3df8b23f982592cd |
27 |
DIST postfix-3.1.2.tar.gz 4337569 SHA256 1ab9b4ee6bf9eb37d2467a63244132aab22ac23b91a72f327334e236b0d30f6b SHA512 58493d1890c3235d74a18365294ca764bd3b3f278b9825da931005165af60250342c6cf477c3b3575e50858d99cd3ee40f22bece094eb61e9be6c3cf0313d571 WHIRLPOOL 37e90ef6275a7f2dc8f712bb05348861098697438f274a5c5b69f50b31d55574af262a658657863c93f77fdeba2d37bf7b30dc43bf1629615f496ede19a89c00 |
28 |
|
29 |
diff --git a/mail-mta/postfix/postfix-3.0.7.ebuild b/mail-mta/postfix/postfix-3.0.7.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000..9cbe08f |
32 |
--- /dev/null |
33 |
+++ b/mail-mta/postfix/postfix-3.0.7.ebuild |
34 |
@@ -0,0 +1,314 @@ |
35 |
+# Copyright 1999-2016 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=5 |
40 |
+inherit eutils flag-o-matic multilib pam ssl-cert systemd toolchain-funcs user versionator |
41 |
+ |
42 |
+MY_PV="${PV/_rc/-RC}" |
43 |
+MY_SRC="${PN}-${MY_PV}" |
44 |
+MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
45 |
+VDA_PV="2.10.0" |
46 |
+VDA_P="${PN}-vda-v13-${VDA_PV}" |
47 |
+RC_VER="2.7" |
48 |
+ |
49 |
+DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
50 |
+HOMEPAGE="http://www.postfix.org/" |
51 |
+SRC_URI="${MY_URI}/${MY_SRC}.tar.gz |
52 |
+ vda? ( http://vda.sourceforge.net/VDA/${VDA_P}.patch ) " |
53 |
+ |
54 |
+LICENSE="IBM" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
57 |
+IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl vda" |
58 |
+ |
59 |
+DEPEND=">=dev-libs/libpcre-3.4 |
60 |
+ dev-lang/perl |
61 |
+ berkdb? ( >=sys-libs/db-3.2:* ) |
62 |
+ cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
63 |
+ eai? ( dev-libs/icu:= ) |
64 |
+ ldap? ( net-nds/openldap ) |
65 |
+ ldap-bind? ( net-nds/openldap[sasl] ) |
66 |
+ lmdb? ( >=dev-db/lmdb-0.9.11 ) |
67 |
+ mysql? ( virtual/mysql ) |
68 |
+ pam? ( virtual/pam ) |
69 |
+ postgres? ( dev-db/postgresql:* ) |
70 |
+ sasl? ( >=dev-libs/cyrus-sasl-2 ) |
71 |
+ sqlite? ( dev-db/sqlite:3 ) |
72 |
+ ssl? ( |
73 |
+ !libressl? ( dev-libs/openssl:0 ) |
74 |
+ libressl? ( dev-libs/libressl ) |
75 |
+ )" |
76 |
+ |
77 |
+RDEPEND="${DEPEND} |
78 |
+ dovecot-sasl? ( net-mail/dovecot ) |
79 |
+ memcached? ( net-misc/memcached ) |
80 |
+ net-mail/mailbase |
81 |
+ !mail-mta/courier |
82 |
+ !mail-mta/esmtp |
83 |
+ !mail-mta/exim |
84 |
+ !mail-mta/mini-qmail |
85 |
+ !mail-mta/msmtp[mta] |
86 |
+ !mail-mta/netqmail |
87 |
+ !mail-mta/nullmailer |
88 |
+ !mail-mta/qmail-ldap |
89 |
+ !mail-mta/sendmail |
90 |
+ !mail-mta/opensmtpd |
91 |
+ !<mail-mta/ssmtp-2.64-r2 |
92 |
+ !>=mail-mta/ssmtp-2.64-r2[mta] |
93 |
+ !net-mail/fastforward |
94 |
+ selinux? ( sec-policy/selinux-postfix )" |
95 |
+ |
96 |
+# No vda support for postfix-3.0 |
97 |
+REQUIRED_USE="ldap-bind? ( ldap sasl ) |
98 |
+ !vda" |
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 |
+ if use vda; then |
111 |
+ epatch "${DISTDIR}"/${VDA_P}.patch |
112 |
+ fi |
113 |
+ |
114 |
+ sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
115 |
+ src/util/sys_defs.h || die "sed failed" |
116 |
+ |
117 |
+ # change default paths to better comply with portage standard paths |
118 |
+ sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
119 |
+ |
120 |
+ epatch_user |
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 |
+ local myconf |
243 |
+ use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
244 |
+ html_directory=\"/usr/share/doc/${PF}/html\"" |
245 |
+ |
246 |
+ LD_LIBRARY_PATH="${S}/lib" \ |
247 |
+ /bin/sh postfix-install \ |
248 |
+ -non-interactive \ |
249 |
+ install_root="${D}" \ |
250 |
+ config_directory="/etc/postfix" \ |
251 |
+ manpage_directory="/usr/share/man" \ |
252 |
+ command_directory="/usr/sbin" \ |
253 |
+ mailq_path="/usr/bin/mailq" \ |
254 |
+ newaliases_path="/usr/bin/newaliases" \ |
255 |
+ sendmail_path="/usr/sbin/sendmail" \ |
256 |
+ ${myconf} \ |
257 |
+ || die "postfix-install failed" |
258 |
+ |
259 |
+ # Fix spool removal on upgrade |
260 |
+ rm -Rf "${D}"/var |
261 |
+ keepdir /var/spool/postfix |
262 |
+ |
263 |
+ # Install rmail for UUCP, closes bug #19127 |
264 |
+ dobin auxiliary/rmail/rmail |
265 |
+ |
266 |
+ # Provide another link for legacy FSH |
267 |
+ dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
268 |
+ |
269 |
+ # Install qshape tool and posttls-finger |
270 |
+ dobin auxiliary/qshape/qshape.pl |
271 |
+ doman man/man1/qshape.1 |
272 |
+ dobin bin/posttls-finger |
273 |
+ doman man/man1/posttls-finger.1 |
274 |
+ |
275 |
+ # Performance tuning tools and their manuals |
276 |
+ dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
277 |
+ doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
278 |
+ |
279 |
+ # Set proper permissions on required files/directories |
280 |
+ dodir /var/lib/postfix |
281 |
+ keepdir /var/lib/postfix |
282 |
+ fowners -R postfix:postfix /var/lib/postfix |
283 |
+ fperms 0750 /var/lib/postfix |
284 |
+ fowners root:postdrop /usr/sbin/post{drop,queue} |
285 |
+ fperms 02711 /usr/sbin/post{drop,queue} |
286 |
+ |
287 |
+ keepdir /etc/postfix |
288 |
+ if use mbox; then |
289 |
+ mypostconf="mail_spool_directory=/var/spool/mail" |
290 |
+ else |
291 |
+ mypostconf="home_mailbox=.maildir/" |
292 |
+ fi |
293 |
+ LD_LIBRARY_PATH="${S}/lib" \ |
294 |
+ "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
295 |
+ -e ${mypostconf} || die "postconf failed" |
296 |
+ |
297 |
+ insinto /etc/postfix |
298 |
+ newins "${FILESDIR}"/smtp.pass saslpass |
299 |
+ fperms 600 /etc/postfix/saslpass |
300 |
+ |
301 |
+ newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
302 |
+ # do not start mysql/postgres unnecessarily - bug #359913 |
303 |
+ use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
304 |
+ use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
305 |
+ |
306 |
+ dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
307 |
+ use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
308 |
+ |
309 |
+ pamd_mimic_system smtp auth account |
310 |
+ |
311 |
+ if use sasl; then |
312 |
+ insinto /etc/sasl2 |
313 |
+ newins "${FILESDIR}"/smtp.sasl smtpd.conf |
314 |
+ fi |
315 |
+ |
316 |
+ # header files |
317 |
+ insinto /usr/include/postfix |
318 |
+ doins include/*.h |
319 |
+ |
320 |
+ # Remove unnecessary files |
321 |
+ rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} |
322 |
+ rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} |
323 |
+ |
324 |
+ if has_version mail-mta/postfix; then |
325 |
+ # let the sysadmin decide when to change the compatibility_level |
326 |
+ sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
327 |
+ fi |
328 |
+ |
329 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
330 |
+} |
331 |
+ |
332 |
+pkg_postinst() { |
333 |
+ # Do not install server.{key,pem) SSL certificates if they already exist |
334 |
+ if use ssl && [[ ! -f "${ROOT}"/etc/ssl/postfix/server.key \ |
335 |
+ && ! -f "${ROOT}"/etc/ssl/postfix/server.pem ]] ; then |
336 |
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-Postfix SMTP Server}" |
337 |
+ install_cert /etc/ssl/postfix/server |
338 |
+ chown postfix:mail "${ROOT}"/etc/ssl/postfix/server.{key,pem} |
339 |
+ fi |
340 |
+ |
341 |
+ if [[ ! -e /etc/mail/aliases.db ]] ; then |
342 |
+ ewarn |
343 |
+ ewarn "You must edit /etc/mail/aliases to suit your needs" |
344 |
+ ewarn "and then run /usr/bin/newaliases. Postfix will not" |
345 |
+ ewarn "work correctly without it." |
346 |
+ ewarn |
347 |
+ fi |
348 |
+} |