1 |
commit: 4cab4032da8bcc1028b6e661d71d9e6745de1bed |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 6 12:32:39 2022 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 6 12:32:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cab4032 |
7 |
|
8 |
mail-mta/postfix: drop 3.6.5-r2, 3.6.6, 3.7.1 |
9 |
|
10 |
Signed-off-by: Eray Aslan <eras <AT> gentoo.org> |
11 |
|
12 |
mail-mta/postfix/Manifest | 3 - |
13 |
mail-mta/postfix/postfix-3.6.5-r2.ebuild | 286 ------------------------------ |
14 |
mail-mta/postfix/postfix-3.6.6.ebuild | 286 ------------------------------ |
15 |
mail-mta/postfix/postfix-3.7.1.ebuild | 289 ------------------------------- |
16 |
4 files changed, 864 deletions(-) |
17 |
|
18 |
diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest |
19 |
index a17c6d4329ae..37dcba11b855 100644 |
20 |
--- a/mail-mta/postfix/Manifest |
21 |
+++ b/mail-mta/postfix/Manifest |
22 |
@@ -1,5 +1,2 @@ |
23 |
-DIST postfix-3.6.5.tar.gz 4751485 BLAKE2B 7d53ccf76d978db269fe0ab8641abcb3ba91a72c97fa739a2c8ea80c45bb3ecdaca51d08f7db03582887a0cdcdf96be423e3e35b4f2ab2fbb0fbe4e98dd60758 SHA512 510c7b387b38c8683bda33371468c1c1209285baca7d8f237fdb668b313fa4b4d6727f7e4eb79fc81c4155f0839b4e95995dff186e62621b26e5b8b31cff15d5 |
24 |
-DIST postfix-3.6.6.tar.gz 4752461 BLAKE2B f2508233bfe72706450af0f61d58ef1b5781cebef28dbf42a3f9772f7033ead65542e6b906b35e9ec2adfe05db3f992a7f39287a6439cc60672d7313c52fe3e6 SHA512 ee2e1a59c99b9869c401f8a42afdc094c4b2ba804ed8f9f366c33b36b8d2c66d8362d5a32fbe72f4b2c9a431c232b60ada9fce29dec60ac4610220e0f5c6fb77 |
25 |
-DIST postfix-3.7.1.tar.gz 4824081 BLAKE2B d0bfdbc5105407e5143823e8e14b49e60d5c248eac435279a5fe803b370b46a56de9aff39fdf94398758863f753e43e889e2dffbb393ab63cf486d4fd3f5cf99 SHA512 2a8916eae4b0a4f4e055e1dbae1b9655b1eabcb22d911599a63fb9a1900174c9eab24280bee2ddab42db6674c6b4362964a2a41f67fcb18f0c8c41ad0100b044 |
26 |
DIST postfix-3.7.2.tar.gz 4824424 BLAKE2B 3f7aaba222b64274f756ea37b8ac06c29469d9183879deb4942a709d75783f4a8ca81204971b6658aba4b5bea46ed9c21b14e1f8fc6b613f257acd3aad16c170 SHA512 23bb1af6bf3743c741f108da136f64613f9062d121dc459944ac192275335952cd309ffec6c380f5d36430605eec538c2549c3fdee9d4597f739d9d1b0a033fc |
27 |
DIST postfix-3.8-20220527.tar.gz 4825637 BLAKE2B ca4672848abfc254c7e7ac980b1cf0cfc6f6a19ddf7e9a82082eb89f9aae8a4387798c28f94a6399471e01e1317ba064668c7ee018a2c0c36dacfc88e6693557 SHA512 716ba64a055d89d80a7bd5da282e253bcfbf6c9409a937cdc4c632d2f999b47d7a28b8a930e0ce8096d687dd06656b1c559a72ae9a30bd2bda40dab85cf5a5b3 |
28 |
|
29 |
diff --git a/mail-mta/postfix/postfix-3.6.5-r2.ebuild b/mail-mta/postfix/postfix-3.6.5-r2.ebuild |
30 |
deleted file mode 100644 |
31 |
index 5169a940aef1..000000000000 |
32 |
--- a/mail-mta/postfix/postfix-3.6.5-r2.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,286 +0,0 @@ |
35 |
-# Copyright 1999-2022 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=7 |
39 |
-inherit pam systemd toolchain-funcs |
40 |
- |
41 |
-MY_PV="${PV/_rc/-RC}" |
42 |
-MY_SRC="${PN}-${MY_PV}" |
43 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
44 |
-RC_VER="2.7" |
45 |
- |
46 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
47 |
-HOMEPAGE="http://www.postfix.org/" |
48 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
49 |
- |
50 |
-LICENSE="|| ( IBM EPL-2.0 )" |
51 |
-SLOT="0" |
52 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sparc x86" |
53 |
-IUSE="+berkdb cdb dovecot-sasl +eai ldap ldap-bind lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
54 |
- |
55 |
-DEPEND=" |
56 |
- acct-group/postfix |
57 |
- acct-group/postdrop |
58 |
- acct-user/postfix |
59 |
- >=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? ( dev-db/mysql-connector-c:0= ) |
68 |
- nis? ( net-libs/libnsl:= ) |
69 |
- pam? ( sys-libs/pam ) |
70 |
- postgres? ( dev-db/postgresql:* ) |
71 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
72 |
- sqlite? ( dev-db/sqlite:3 ) |
73 |
- ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
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/msmtp[mta] |
83 |
- !mail-mta/netqmail |
84 |
- !mail-mta/nullmailer |
85 |
- !mail-mta/sendmail |
86 |
- !mail-mta/opensmtpd |
87 |
- !mail-mta/ssmtp[mta] |
88 |
- selinux? ( sec-policy/selinux-postfix )" |
89 |
- |
90 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
91 |
- |
92 |
-S="${WORKDIR}/${MY_SRC}" |
93 |
- |
94 |
-src_prepare() { |
95 |
- default |
96 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
97 |
- src/util/sys_defs.h || die "sed failed" |
98 |
- # change default paths to better comply with portage standard paths |
99 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
100 |
-} |
101 |
- |
102 |
-src_configure() { |
103 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
104 |
- do |
105 |
- local AUXLIBS_${name}="" |
106 |
- done |
107 |
- |
108 |
- # Make sure LDFLAGS get passed down to the executables. |
109 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
110 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
111 |
- |
112 |
- use pam && mylibs="${mylibs} -lpam" |
113 |
- |
114 |
- if use ldap; then |
115 |
- mycc="${mycc} -DHAS_LDAP" |
116 |
- AUXLIBS_LDAP="-lldap -llber" |
117 |
- fi |
118 |
- |
119 |
- if use mysql; then |
120 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
121 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
122 |
- fi |
123 |
- |
124 |
- if use postgres; then |
125 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
126 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
127 |
- fi |
128 |
- |
129 |
- if use sqlite; then |
130 |
- mycc="${mycc} -DHAS_SQLITE" |
131 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
132 |
- fi |
133 |
- |
134 |
- if use ssl; then |
135 |
- mycc="${mycc} -DUSE_TLS" |
136 |
- mylibs="${mylibs} -lssl -lcrypto" |
137 |
- fi |
138 |
- |
139 |
- if use lmdb; then |
140 |
- mycc="${mycc} -DHAS_LMDB" |
141 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
142 |
- fi |
143 |
- |
144 |
- if ! use eai; then |
145 |
- mycc="${mycc} -DNO_EAI" |
146 |
- fi |
147 |
- |
148 |
- # broken. and "in other words, not supported" by upstream. |
149 |
- # Use inet_protocols setting in main.cf |
150 |
- #if ! use ipv6; then |
151 |
- # mycc="${mycc} -DNO_IPV6" |
152 |
- #fi |
153 |
- |
154 |
- if use sasl; then |
155 |
- if use dovecot-sasl; then |
156 |
- # Set dovecot as default. |
157 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
158 |
- fi |
159 |
- if use ldap-bind; then |
160 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
161 |
- fi |
162 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
163 |
- mylibs="${mylibs} -lsasl2" |
164 |
- elif use dovecot-sasl; then |
165 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
166 |
- fi |
167 |
- |
168 |
- if ! use nis; then |
169 |
- mycc="${mycc} -DNO_NIS" |
170 |
- fi |
171 |
- |
172 |
- if ! use berkdb; then |
173 |
- mycc="${mycc} -DNO_DB" |
174 |
- if use cdb; then |
175 |
- # change default hash format from Berkeley DB to cdb |
176 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
177 |
- fi |
178 |
- fi |
179 |
- |
180 |
- if use cdb; then |
181 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
182 |
- # Tinycdb is preferred. |
183 |
- if has_version dev-db/tinycdb ; then |
184 |
- einfo "Building with dev-db/tinycdb" |
185 |
- AUXLIBS_CDB="-lcdb" |
186 |
- else |
187 |
- einfo "Building with dev-db/cdb" |
188 |
- CDB_PATH="/usr/$(get_libdir)" |
189 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
190 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
191 |
- done |
192 |
- fi |
193 |
- fi |
194 |
- |
195 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
196 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
197 |
- |
198 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
199 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
200 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
201 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
202 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
203 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
204 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
205 |
-} |
206 |
- |
207 |
-src_install() { |
208 |
- LD_LIBRARY_PATH="${S}/lib" \ |
209 |
- /bin/sh postfix-install \ |
210 |
- -non-interactive \ |
211 |
- install_root="${D}" \ |
212 |
- config_directory="/etc/postfix" \ |
213 |
- manpage_directory="/usr/share/man" \ |
214 |
- command_directory="/usr/sbin" \ |
215 |
- mailq_path="/usr/bin/mailq" \ |
216 |
- newaliases_path="/usr/bin/newaliases" \ |
217 |
- sendmail_path="/usr/sbin/sendmail" \ |
218 |
- || die "postfix-install failed" |
219 |
- |
220 |
- # Fix spool removal on upgrade |
221 |
- rm -Rf "${D}"/var |
222 |
- keepdir /var/spool/postfix |
223 |
- |
224 |
- # Install rmail for UUCP, closes bug #19127 |
225 |
- dobin auxiliary/rmail/rmail |
226 |
- |
227 |
- # Provide another link for legacy FSH |
228 |
- dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail |
229 |
- |
230 |
- # Install qshape, posttls-finger and collate and tlstype |
231 |
- dobin auxiliary/qshape/qshape.pl |
232 |
- doman man/man1/qshape.1 |
233 |
- dobin bin/posttls-finger |
234 |
- doman man/man1/posttls-finger.1 |
235 |
- dobin auxiliary/collate/collate.pl |
236 |
- newdoc auxiliary/collate/README README.collate |
237 |
- dobin auxiliary/collate/tlstype.pl |
238 |
- dodoc auxiliary/collate/README.tlstype |
239 |
- |
240 |
- # Performance tuning tools and their manuals |
241 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
242 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
243 |
- |
244 |
- # Set proper permissions on required files/directories |
245 |
- keepdir /var/lib/postfix |
246 |
- fowners -R postfix:postfix /var/lib/postfix |
247 |
- fperms 0750 /var/lib/postfix |
248 |
- fowners root:postdrop /usr/sbin/post{drop,queue} |
249 |
- fperms 02755 /usr/sbin/post{drop,queue} |
250 |
- |
251 |
- keepdir /etc/postfix |
252 |
- keepdir /etc/postfix/postfix-files.d |
253 |
- if use mbox; then |
254 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
255 |
- else |
256 |
- mypostconf="home_mailbox=.maildir/" |
257 |
- fi |
258 |
- LD_LIBRARY_PATH="${S}/lib" \ |
259 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
260 |
- -e ${mypostconf} || die "postconf failed" |
261 |
- |
262 |
- insinto /etc/postfix |
263 |
- newins "${FILESDIR}"/smtp.pass saslpass |
264 |
- fperms 600 /etc/postfix/saslpass |
265 |
- |
266 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
267 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
268 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
269 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
270 |
- |
271 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
272 |
- mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
273 |
- # postfix set-permissions expects uncompressed man files |
274 |
- docompress -x /usr/share/man |
275 |
- |
276 |
- if use pam; then |
277 |
- pamd_mimic_system smtp auth account |
278 |
- fi |
279 |
- |
280 |
- if use sasl; then |
281 |
- insinto /etc/sasl2 |
282 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
283 |
- fi |
284 |
- |
285 |
- # header files |
286 |
- insinto /usr/include/postfix |
287 |
- doins include/*.h |
288 |
- |
289 |
- if has_version mail-mta/postfix; then |
290 |
- # let the sysadmin decide when to change the compatibility_level |
291 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
292 |
- fi |
293 |
- |
294 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
295 |
-} |
296 |
- |
297 |
-pkg_postinst() { |
298 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
299 |
- ewarn |
300 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
301 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
302 |
- ewarn "work correctly without it." |
303 |
- ewarn |
304 |
- fi |
305 |
- |
306 |
- # check and fix file permissions |
307 |
- "${EROOT}"/usr/sbin/postfix set-permissions |
308 |
- |
309 |
- # configure tls |
310 |
- if use ssl ; then |
311 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
312 |
- elog "To configure client side TLS settings:" |
313 |
- elog "${EROOT}"/usr/sbin/postfix tls enable-client |
314 |
- fi |
315 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
316 |
- elog "To configure server side TLS settings:" |
317 |
- elog "${EROOT}"/usr/sbin/postfix tls enable-server |
318 |
- fi |
319 |
- fi |
320 |
-} |
321 |
|
322 |
diff --git a/mail-mta/postfix/postfix-3.6.6.ebuild b/mail-mta/postfix/postfix-3.6.6.ebuild |
323 |
deleted file mode 100644 |
324 |
index e928304a3b20..000000000000 |
325 |
--- a/mail-mta/postfix/postfix-3.6.6.ebuild |
326 |
+++ /dev/null |
327 |
@@ -1,286 +0,0 @@ |
328 |
-# Copyright 1999-2022 Gentoo Authors |
329 |
-# Distributed under the terms of the GNU General Public License v2 |
330 |
- |
331 |
-EAPI=7 |
332 |
-inherit pam systemd toolchain-funcs |
333 |
- |
334 |
-MY_PV="${PV/_rc/-RC}" |
335 |
-MY_SRC="${PN}-${MY_PV}" |
336 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
337 |
-RC_VER="2.7" |
338 |
- |
339 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
340 |
-HOMEPAGE="http://www.postfix.org/" |
341 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
342 |
- |
343 |
-LICENSE="|| ( IBM EPL-2.0 )" |
344 |
-SLOT="0" |
345 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
346 |
-IUSE="+berkdb cdb dovecot-sasl +eai ldap ldap-bind lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
347 |
- |
348 |
-DEPEND=" |
349 |
- acct-group/postfix |
350 |
- acct-group/postdrop |
351 |
- acct-user/postfix |
352 |
- >=dev-libs/libpcre-3.4 |
353 |
- dev-lang/perl |
354 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
355 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
356 |
- eai? ( dev-libs/icu:= ) |
357 |
- ldap? ( net-nds/openldap:= ) |
358 |
- ldap-bind? ( net-nds/openldap:=[sasl] ) |
359 |
- lmdb? ( >=dev-db/lmdb-0.9.11:= ) |
360 |
- mysql? ( dev-db/mysql-connector-c:0= ) |
361 |
- nis? ( net-libs/libnsl:= ) |
362 |
- pam? ( sys-libs/pam ) |
363 |
- postgres? ( dev-db/postgresql:* ) |
364 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
365 |
- sqlite? ( dev-db/sqlite:3 ) |
366 |
- ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
367 |
- " |
368 |
- |
369 |
-RDEPEND="${DEPEND} |
370 |
- memcached? ( net-misc/memcached ) |
371 |
- net-mail/mailbase |
372 |
- !mail-mta/courier |
373 |
- !mail-mta/esmtp |
374 |
- !mail-mta/exim |
375 |
- !mail-mta/msmtp[mta] |
376 |
- !mail-mta/netqmail |
377 |
- !mail-mta/nullmailer |
378 |
- !mail-mta/sendmail |
379 |
- !mail-mta/opensmtpd |
380 |
- !mail-mta/ssmtp[mta] |
381 |
- selinux? ( sec-policy/selinux-postfix )" |
382 |
- |
383 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
384 |
- |
385 |
-S="${WORKDIR}/${MY_SRC}" |
386 |
- |
387 |
-src_prepare() { |
388 |
- default |
389 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
390 |
- src/util/sys_defs.h || die "sed failed" |
391 |
- # change default paths to better comply with portage standard paths |
392 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
393 |
-} |
394 |
- |
395 |
-src_configure() { |
396 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
397 |
- do |
398 |
- local AUXLIBS_${name}="" |
399 |
- done |
400 |
- |
401 |
- # Make sure LDFLAGS get passed down to the executables. |
402 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
403 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
404 |
- |
405 |
- use pam && mylibs="${mylibs} -lpam" |
406 |
- |
407 |
- if use ldap; then |
408 |
- mycc="${mycc} -DHAS_LDAP" |
409 |
- AUXLIBS_LDAP="-lldap -llber" |
410 |
- fi |
411 |
- |
412 |
- if use mysql; then |
413 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
414 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
415 |
- fi |
416 |
- |
417 |
- if use postgres; then |
418 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
419 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
420 |
- fi |
421 |
- |
422 |
- if use sqlite; then |
423 |
- mycc="${mycc} -DHAS_SQLITE" |
424 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
425 |
- fi |
426 |
- |
427 |
- if use ssl; then |
428 |
- mycc="${mycc} -DUSE_TLS" |
429 |
- mylibs="${mylibs} -lssl -lcrypto" |
430 |
- fi |
431 |
- |
432 |
- if use lmdb; then |
433 |
- mycc="${mycc} -DHAS_LMDB" |
434 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
435 |
- fi |
436 |
- |
437 |
- if ! use eai; then |
438 |
- mycc="${mycc} -DNO_EAI" |
439 |
- fi |
440 |
- |
441 |
- # broken. and "in other words, not supported" by upstream. |
442 |
- # Use inet_protocols setting in main.cf |
443 |
- #if ! use ipv6; then |
444 |
- # mycc="${mycc} -DNO_IPV6" |
445 |
- #fi |
446 |
- |
447 |
- if use sasl; then |
448 |
- if use dovecot-sasl; then |
449 |
- # Set dovecot as default. |
450 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
451 |
- fi |
452 |
- if use ldap-bind; then |
453 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
454 |
- fi |
455 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
456 |
- mylibs="${mylibs} -lsasl2" |
457 |
- elif use dovecot-sasl; then |
458 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
459 |
- fi |
460 |
- |
461 |
- if ! use nis; then |
462 |
- mycc="${mycc} -DNO_NIS" |
463 |
- fi |
464 |
- |
465 |
- if ! use berkdb; then |
466 |
- mycc="${mycc} -DNO_DB" |
467 |
- if use cdb; then |
468 |
- # change default hash format from Berkeley DB to cdb |
469 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
470 |
- fi |
471 |
- fi |
472 |
- |
473 |
- if use cdb; then |
474 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
475 |
- # Tinycdb is preferred. |
476 |
- if has_version dev-db/tinycdb ; then |
477 |
- einfo "Building with dev-db/tinycdb" |
478 |
- AUXLIBS_CDB="-lcdb" |
479 |
- else |
480 |
- einfo "Building with dev-db/cdb" |
481 |
- CDB_PATH="/usr/$(get_libdir)" |
482 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
483 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
484 |
- done |
485 |
- fi |
486 |
- fi |
487 |
- |
488 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
489 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
490 |
- |
491 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
492 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
493 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
494 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
495 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
496 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
497 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
498 |
-} |
499 |
- |
500 |
-src_install() { |
501 |
- LD_LIBRARY_PATH="${S}/lib" \ |
502 |
- /bin/sh postfix-install \ |
503 |
- -non-interactive \ |
504 |
- install_root="${D}" \ |
505 |
- config_directory="/etc/postfix" \ |
506 |
- manpage_directory="/usr/share/man" \ |
507 |
- command_directory="/usr/sbin" \ |
508 |
- mailq_path="/usr/bin/mailq" \ |
509 |
- newaliases_path="/usr/bin/newaliases" \ |
510 |
- sendmail_path="/usr/sbin/sendmail" \ |
511 |
- || die "postfix-install failed" |
512 |
- |
513 |
- # Fix spool removal on upgrade |
514 |
- rm -Rf "${D}"/var |
515 |
- keepdir /var/spool/postfix |
516 |
- |
517 |
- # Install rmail for UUCP, closes bug #19127 |
518 |
- dobin auxiliary/rmail/rmail |
519 |
- |
520 |
- # Provide another link for legacy FSH |
521 |
- dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail |
522 |
- |
523 |
- # Install qshape, posttls-finger and collate and tlstype |
524 |
- dobin auxiliary/qshape/qshape.pl |
525 |
- doman man/man1/qshape.1 |
526 |
- dobin bin/posttls-finger |
527 |
- doman man/man1/posttls-finger.1 |
528 |
- dobin auxiliary/collate/collate.pl |
529 |
- newdoc auxiliary/collate/README README.collate |
530 |
- dobin auxiliary/collate/tlstype.pl |
531 |
- dodoc auxiliary/collate/README.tlstype |
532 |
- |
533 |
- # Performance tuning tools and their manuals |
534 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
535 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
536 |
- |
537 |
- # Set proper permissions on required files/directories |
538 |
- keepdir /var/lib/postfix |
539 |
- fowners -R postfix:postfix /var/lib/postfix |
540 |
- fperms 0750 /var/lib/postfix |
541 |
- fowners root:postdrop /usr/sbin/post{drop,queue} |
542 |
- fperms 02755 /usr/sbin/post{drop,queue} |
543 |
- |
544 |
- keepdir /etc/postfix |
545 |
- keepdir /etc/postfix/postfix-files.d |
546 |
- if use mbox; then |
547 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
548 |
- else |
549 |
- mypostconf="home_mailbox=.maildir/" |
550 |
- fi |
551 |
- LD_LIBRARY_PATH="${S}/lib" \ |
552 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
553 |
- -e ${mypostconf} || die "postconf failed" |
554 |
- |
555 |
- insinto /etc/postfix |
556 |
- newins "${FILESDIR}"/smtp.pass saslpass |
557 |
- fperms 600 /etc/postfix/saslpass |
558 |
- |
559 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
560 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
561 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
562 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
563 |
- |
564 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
565 |
- mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
566 |
- # postfix set-permissions expects uncompressed man files |
567 |
- docompress -x /usr/share/man |
568 |
- |
569 |
- if use pam; then |
570 |
- pamd_mimic_system smtp auth account |
571 |
- fi |
572 |
- |
573 |
- if use sasl; then |
574 |
- insinto /etc/sasl2 |
575 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
576 |
- fi |
577 |
- |
578 |
- # header files |
579 |
- insinto /usr/include/postfix |
580 |
- doins include/*.h |
581 |
- |
582 |
- if has_version mail-mta/postfix; then |
583 |
- # let the sysadmin decide when to change the compatibility_level |
584 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
585 |
- fi |
586 |
- |
587 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
588 |
-} |
589 |
- |
590 |
-pkg_postinst() { |
591 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
592 |
- ewarn |
593 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
594 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
595 |
- ewarn "work correctly without it." |
596 |
- ewarn |
597 |
- fi |
598 |
- |
599 |
- # check and fix file permissions |
600 |
- "${EROOT}"/usr/sbin/postfix set-permissions |
601 |
- |
602 |
- # configure tls |
603 |
- if use ssl ; then |
604 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
605 |
- elog "To configure client side TLS settings:" |
606 |
- elog "${EROOT}"/usr/sbin/postfix tls enable-client |
607 |
- fi |
608 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
609 |
- elog "To configure server side TLS settings:" |
610 |
- elog "${EROOT}"/usr/sbin/postfix tls enable-server |
611 |
- fi |
612 |
- fi |
613 |
-} |
614 |
|
615 |
diff --git a/mail-mta/postfix/postfix-3.7.1.ebuild b/mail-mta/postfix/postfix-3.7.1.ebuild |
616 |
deleted file mode 100644 |
617 |
index fb6f54abaadd..000000000000 |
618 |
--- a/mail-mta/postfix/postfix-3.7.1.ebuild |
619 |
+++ /dev/null |
620 |
@@ -1,289 +0,0 @@ |
621 |
-# Copyright 1999-2022 Gentoo Authors |
622 |
-# Distributed under the terms of the GNU General Public License v2 |
623 |
- |
624 |
-EAPI=8 |
625 |
-inherit pam systemd toolchain-funcs |
626 |
- |
627 |
-MY_PV="${PV/_rc/-RC}" |
628 |
-MY_SRC="${PN}-${MY_PV}" |
629 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
630 |
-RC_VER="2.7" |
631 |
- |
632 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
633 |
-HOMEPAGE="http://www.postfix.org/" |
634 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
635 |
- |
636 |
-LICENSE="|| ( IBM EPL-2.0 )" |
637 |
-SLOT="0" |
638 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
639 |
-IUSE="+berkdb cdb dovecot-sasl +eai ldap ldap-bind lmdb mbox memcached mysql nis pam postgres sasl selinux sqlite ssl" |
640 |
- |
641 |
-DEPEND=" |
642 |
- acct-group/postfix |
643 |
- acct-group/postdrop |
644 |
- acct-user/postfix |
645 |
- dev-libs/libpcre2:0 |
646 |
- dev-lang/perl |
647 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
648 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
649 |
- eai? ( dev-libs/icu:= ) |
650 |
- ldap? ( net-nds/openldap:= ) |
651 |
- ldap-bind? ( net-nds/openldap:=[sasl] ) |
652 |
- lmdb? ( >=dev-db/lmdb-0.9.11:= ) |
653 |
- mysql? ( dev-db/mysql-connector-c:0= ) |
654 |
- nis? ( net-libs/libnsl:= ) |
655 |
- pam? ( sys-libs/pam ) |
656 |
- postgres? ( dev-db/postgresql:* ) |
657 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
658 |
- sqlite? ( dev-db/sqlite:3 ) |
659 |
- ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
660 |
- " |
661 |
- |
662 |
-RDEPEND="${DEPEND} |
663 |
- memcached? ( net-misc/memcached ) |
664 |
- net-mail/mailbase |
665 |
- !mail-mta/courier |
666 |
- !mail-mta/esmtp |
667 |
- !mail-mta/exim |
668 |
- !mail-mta/msmtp[mta] |
669 |
- !mail-mta/netqmail |
670 |
- !mail-mta/nullmailer |
671 |
- !mail-mta/sendmail |
672 |
- !mail-mta/opensmtpd |
673 |
- !mail-mta/ssmtp[mta] |
674 |
- selinux? ( sec-policy/selinux-postfix )" |
675 |
- |
676 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
677 |
- |
678 |
-S="${WORKDIR}/${MY_SRC}" |
679 |
- |
680 |
-src_prepare() { |
681 |
- default |
682 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
683 |
- src/util/sys_defs.h || die "sed failed" |
684 |
- # change default paths to better comply with portage standard paths |
685 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
686 |
-} |
687 |
- |
688 |
-src_configure() { |
689 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
690 |
- do |
691 |
- local AUXLIBS_${name}="" |
692 |
- done |
693 |
- |
694 |
- # Make sure LDFLAGS get passed down to the executables. |
695 |
- local mycc="" mylibs="${LDFLAGS} -ldl" |
696 |
- |
697 |
- # libpcre is EOL. prefer libpcre2 |
698 |
- mycc=" -DHAS_PCRE=2" |
699 |
- AUXLIBS_PCRE="$(pcre2-config --libs8)" |
700 |
- |
701 |
- use pam && mylibs="${mylibs} -lpam" |
702 |
- |
703 |
- if use ldap; then |
704 |
- mycc="${mycc} -DHAS_LDAP" |
705 |
- AUXLIBS_LDAP="-lldap -llber" |
706 |
- fi |
707 |
- |
708 |
- if use mysql; then |
709 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
710 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
711 |
- fi |
712 |
- |
713 |
- if use postgres; then |
714 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
715 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
716 |
- fi |
717 |
- |
718 |
- if use sqlite; then |
719 |
- mycc="${mycc} -DHAS_SQLITE" |
720 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
721 |
- fi |
722 |
- |
723 |
- if use ssl; then |
724 |
- mycc="${mycc} -DUSE_TLS" |
725 |
- mylibs="${mylibs} -lssl -lcrypto" |
726 |
- fi |
727 |
- |
728 |
- if use lmdb; then |
729 |
- mycc="${mycc} -DHAS_LMDB" |
730 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
731 |
- fi |
732 |
- |
733 |
- if ! use eai; then |
734 |
- mycc="${mycc} -DNO_EAI" |
735 |
- fi |
736 |
- |
737 |
- # broken. and "in other words, not supported" by upstream. |
738 |
- # Use inet_protocols setting in main.cf |
739 |
- #if ! use ipv6; then |
740 |
- # mycc="${mycc} -DNO_IPV6" |
741 |
- #fi |
742 |
- |
743 |
- if use sasl; then |
744 |
- if use dovecot-sasl; then |
745 |
- # Set dovecot as default. |
746 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
747 |
- fi |
748 |
- if use ldap-bind; then |
749 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
750 |
- fi |
751 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
752 |
- mylibs="${mylibs} -lsasl2" |
753 |
- elif use dovecot-sasl; then |
754 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
755 |
- fi |
756 |
- |
757 |
- if ! use nis; then |
758 |
- mycc="${mycc} -DNO_NIS" |
759 |
- fi |
760 |
- |
761 |
- if ! use berkdb; then |
762 |
- mycc="${mycc} -DNO_DB" |
763 |
- # change default database type |
764 |
- if use cdb; then |
765 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
766 |
- elif use lmdb; then |
767 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"lmdb\\\"" |
768 |
- fi |
769 |
- fi |
770 |
- |
771 |
- if use cdb; then |
772 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
773 |
- # Tinycdb is preferred. |
774 |
- if has_version dev-db/tinycdb ; then |
775 |
- AUXLIBS_CDB="-lcdb" |
776 |
- else |
777 |
- CDB_PATH="/usr/$(get_libdir)" |
778 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
779 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
780 |
- done |
781 |
- fi |
782 |
- fi |
783 |
- |
784 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
785 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
786 |
- |
787 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
788 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
789 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
790 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
791 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
792 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
793 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
794 |
-} |
795 |
- |
796 |
-src_install() { |
797 |
- LD_LIBRARY_PATH="${S}/lib" \ |
798 |
- /bin/sh postfix-install \ |
799 |
- -non-interactive \ |
800 |
- install_root="${D}" \ |
801 |
- config_directory="/etc/postfix" \ |
802 |
- manpage_directory="/usr/share/man" \ |
803 |
- command_directory="/usr/sbin" \ |
804 |
- mailq_path="/usr/bin/mailq" \ |
805 |
- newaliases_path="/usr/bin/newaliases" \ |
806 |
- sendmail_path="/usr/sbin/sendmail" \ |
807 |
- || die "postfix-install failed" |
808 |
- |
809 |
- # Fix spool removal on upgrade |
810 |
- rm -Rf "${D}"/var |
811 |
- keepdir /var/spool/postfix |
812 |
- |
813 |
- # Install rmail for UUCP, closes bug #19127 |
814 |
- dobin auxiliary/rmail/rmail |
815 |
- |
816 |
- # Provide another link for legacy FSH |
817 |
- dosym ../sbin/sendmail /usr/$(get_libdir)/sendmail |
818 |
- |
819 |
- # Install qshape, posttls-finger, collate and tlstype |
820 |
- dobin auxiliary/qshape/qshape.pl |
821 |
- doman man/man1/qshape.1 |
822 |
- dobin bin/posttls-finger |
823 |
- doman man/man1/posttls-finger.1 |
824 |
- dobin auxiliary/collate/collate.pl |
825 |
- newdoc auxiliary/collate/README README.collate |
826 |
- dobin auxiliary/collate/tlstype.pl |
827 |
- dodoc auxiliary/collate/README.tlstype |
828 |
- |
829 |
- # Performance tuning tools and their manuals |
830 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
831 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
832 |
- |
833 |
- # Set proper permissions on required files/directories |
834 |
- keepdir /var/lib/postfix |
835 |
- fowners -R postfix:postfix /var/lib/postfix |
836 |
- fperms 0750 /var/lib/postfix |
837 |
- fowners root:postdrop /usr/sbin/post{drop,queue,log} |
838 |
- fperms 02755 /usr/sbin/post{drop,queue,log} |
839 |
- |
840 |
- keepdir /etc/postfix |
841 |
- keepdir /etc/postfix/postfix-files.d |
842 |
- if use mbox; then |
843 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
844 |
- else |
845 |
- mypostconf="home_mailbox=.maildir/" |
846 |
- fi |
847 |
- LD_LIBRARY_PATH="${S}/lib" \ |
848 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
849 |
- -e ${mypostconf} || die "postconf failed" |
850 |
- |
851 |
- insinto /etc/postfix |
852 |
- newins "${FILESDIR}"/smtp.pass saslpass |
853 |
- fperms 600 /etc/postfix/saslpass |
854 |
- |
855 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
856 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
857 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
858 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
859 |
- |
860 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
861 |
- dodoc -r README_FILES/ examples/ |
862 |
- # postfix set-permissions expects uncompressed man files |
863 |
- docompress -x /usr/share/man |
864 |
- |
865 |
- if use pam; then |
866 |
- pamd_mimic_system smtp auth account |
867 |
- fi |
868 |
- |
869 |
- if use sasl; then |
870 |
- insinto /etc/sasl2 |
871 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
872 |
- fi |
873 |
- |
874 |
- # header files |
875 |
- insinto /usr/include/postfix |
876 |
- doins include/*.h |
877 |
- |
878 |
- if has_version mail-mta/postfix; then |
879 |
- # let the sysadmin decide when to change the compatibility_level |
880 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
881 |
- fi |
882 |
- |
883 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
884 |
-} |
885 |
- |
886 |
-pkg_postinst() { |
887 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
888 |
- ewarn |
889 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
890 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
891 |
- ewarn "work correctly without it." |
892 |
- ewarn |
893 |
- fi |
894 |
- |
895 |
- # check and fix file permissions |
896 |
- "${EROOT}"/usr/sbin/postfix set-permissions |
897 |
- |
898 |
- # configure tls |
899 |
- if use ssl ; then |
900 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
901 |
- elog "To configure client side TLS settings:" |
902 |
- elog "${EROOT}"/usr/sbin/postfix tls enable-client |
903 |
- fi |
904 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
905 |
- elog "To configure server side TLS settings:" |
906 |
- elog "${EROOT}"/usr/sbin/postfix tls enable-server |
907 |
- fi |
908 |
- fi |
909 |
-} |