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