1 |
commit: c5aa0fb5e75be25c7b44b80454c396b4f3863376 |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 21 05:32:24 2017 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 21 05:32:24 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5aa0fb5 |
7 |
|
8 |
mail-mta/postfix: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
mail-mta/postfix/Manifest | 5 - |
13 |
mail-mta/postfix/postfix-3.1.3.ebuild | 308 ------------------------------- |
14 |
mail-mta/postfix/postfix-3.1.4-r1.ebuild | 308 ------------------------------- |
15 |
mail-mta/postfix/postfix-3.1.5.ebuild | 308 ------------------------------- |
16 |
mail-mta/postfix/postfix-3.2.0.ebuild | 308 ------------------------------- |
17 |
mail-mta/postfix/postfix-3.2.1.ebuild | 308 ------------------------------- |
18 |
6 files changed, 1545 deletions(-) |
19 |
|
20 |
diff --git a/mail-mta/postfix/Manifest b/mail-mta/postfix/Manifest |
21 |
index 9b8adeceffa..3347fb5d2c2 100644 |
22 |
--- a/mail-mta/postfix/Manifest |
23 |
+++ b/mail-mta/postfix/Manifest |
24 |
@@ -1,11 +1,6 @@ |
25 |
DIST postfix-2.10.9.tar.gz 3820525 SHA256 e47eb56db2d238b9c5a5147a516fa406ab6afb102cedb4bd08273e979ae95d82 SHA512 c77df7ccc051bd72271dc5298da0ca4e45397b1ba96fc8be31e095f5b15cd30ebc0b29cf638e76efc65503cb241efd937f2d64aaa97243402c35e2927b7a7b91 WHIRLPOOL 3a7acb90ae03366e2ed24dfbd2e07619f0694abe098a621c6f9202e4d43a968376b5a52f2a65223634cf921af0a7156b0272ca15ad188a1b61fe4fb9cc97cab7 |
26 |
DIST postfix-3.1.2.tar.gz 4337569 SHA256 1ab9b4ee6bf9eb37d2467a63244132aab22ac23b91a72f327334e236b0d30f6b SHA512 58493d1890c3235d74a18365294ca764bd3b3f278b9825da931005165af60250342c6cf477c3b3575e50858d99cd3ee40f22bece094eb61e9be6c3cf0313d571 WHIRLPOOL 37e90ef6275a7f2dc8f712bb05348861098697438f274a5c5b69f50b31d55574af262a658657863c93f77fdeba2d37bf7b30dc43bf1629615f496ede19a89c00 |
27 |
-DIST postfix-3.1.3.tar.gz 4338730 SHA256 52f8127e6797e2617a36d0afb9473c55e95c3a777b6280df3f106168fd814979 SHA512 00e2b0974e59420cabfddc92597a99b42c8a8c9cd9a0c279c63ba6be9f40b15400f37dc16d0b1312130e72b5ba82b56fc7d579ee9ef975a957c0931b0401213c WHIRLPOOL 7274501921349e1f99344adb500638e91b92f3a3a87ec2171add18d58b926478459d4540a15f421c52175efb61d220c98438a9727adf5473d609d1b94480b663 |
28 |
-DIST postfix-3.1.4.tar.gz 4340102 SHA256 f33b470c47ae8b4ff199ab55dc42e86031ff0c535ccbc83069c8cff69b5bd027 SHA512 4cf8aa8d0cf6d99defa32c2907705370d6f8d047d7e938c84a20a62c68ae07a2bec304f28c178d1072b9610f2969420f83fe2066821ad34c0f95e62bbb5b8c05 WHIRLPOOL 72c881a390e96dcc3645b98383e4dcc774ac61144b086800d72e0f6e4d8fe3adccb246df728cc253851db16804e9c97c79e9966f88f02deda696117cd20551f7 |
29 |
-DIST postfix-3.1.5.tar.gz 4340427 SHA256 a3f5bbeb081fb5b02ced34e373add4967783c018c0b134442f0da8d8d8fa35f0 SHA512 4a35fe516387910efc717c3c0a79a68ba01800d96a27a04c7ab8ae7b4f6b3027aa3a11d1ab378b74e96e18c1ab39f9cdce474ec19602081bafafa68ae68148a2 WHIRLPOOL 0c015ad0db00efa1cd18c3855fb66f23ca54be5ddbdf2b0e38b4a966e8a66d778ae13af94bd69aeb7f2c73c8b594a919dcc16e696afc48f84051c6ce8574651a |
30 |
DIST postfix-3.1.6.tar.gz 4341308 SHA256 e5eb005fd133c6a32ca03e796e0192945eb877be8eb727f30d25547c997c5aa6 SHA512 646317393d33fcec99bef7f3dc142a847591927bc034c0c71e578baedad1875040cfeabdaa3436312f60485cb69bbdb31197aa9e7526a457946d7749b781099b WHIRLPOOL 66a087da3b33353a22176b9162fe0679f8ff35e48ae693a3315d52232e662638d48b8827648c0b0368e018161e1ade6a671773c109208ded9659cca26b1b5ea1 |
31 |
-DIST postfix-3.2.0.tar.gz 4389547 SHA256 420726e79622620394fd17799e49268dada7041ea067ca3aa1c8bf155b9aa487 SHA512 bfaa4b2125758833997b399bb2f095475924c1e51fba752e631ad73494d8764458548541d175ef8a1ed6566e9dac569f963e0651e1500aa19595f9062b8e86ce WHIRLPOOL e4a37cb3bd3faec5a3fd24bc03631af51be90369e1299fd9f2d46f5194ba4d011affdf04e1566ca14fed20e3e31d60b1011ced2f21ae4f0744db08828cf0f20d |
32 |
-DIST postfix-3.2.1.tar.gz 4389792 SHA256 79f8a468e24f7fd7568161e7579e3dde76c1941a0f3e9f8e50bf9a8d6aa41918 SHA512 0deaf380719abe3e603d8a1532b7ab3aa32e77f32041d3cfbe585ef1499454731ea6e8da6ab9a4e20e3d2bd094dd6190eaad88c52bf657cb902b7799ceccb82f WHIRLPOOL cb905560f6fd35abde7efcf71e7f225708cfdb4d76fcf62f485cf42823d64c29d73a4b007828b481fa239077b5a2dbfa4bd6539cc2fe724d5d7f98a36b8a55f9 |
33 |
DIST postfix-3.2.2.tar.gz 4390318 SHA256 d06849418d119d09366997b2b481bb23f737629769b4e4a52da42fb3ad8b0576 SHA512 9432fa8b181db99b8e2d72b2a0f640d1456b10c42615f0a002638f7f788d748b8bb55cd36409a368ac4f6d22033d1d059728fa33980fb93d465b6dfd5ae26418 WHIRLPOOL 7681299ffb747316f1366350f5fac5cf5f156ed9681a26ec6ed5dca0ab42a6a95f93e943bd6ccaccac259c2f7dd1cd1ba441a8968a8988d59ac2208fdbb2f480 |
34 |
DIST postfix-3.3-20170613.tar.gz 4391163 SHA256 4c66e3188aa2ff8fdf4f9e9705261204e8128687bc3eb1dd07c7f10af0225cfc SHA512 225abf7ead922411b1519aea7cb5028b0fe2ac93a0189238a9d74127db66b17f008102301c92c6832304501f70dff99fa815f7c0998cf26be4bbbc3c921324f0 WHIRLPOOL 2b169bc56ad60d84dc2440a074816af2784d455de024071792cf52bd4dc037d5750342c067a64fa9c2d01a5f03d8702a1d87d3ca330e20533f8291a3fe3be9ef |
35 |
DIST postfix-vda-v13-2.10.0.patch 55701 SHA256 6208021eb0b37ac6482e334e538ed5700cc22c4d4dd66ed9e975ae5f20bf935f SHA512 0b4b53a8cd28abf56eee3b2ed63ca1814251b60816e6ca1143249d25fd6ef7f905bec3134125ac6e851af685db8aae878012113693261529ae2ddbcf1bd93e62 WHIRLPOOL d98b7d2177b8b69738086880fd08c336fa60b99ff7413624e628fd5f17be2064f2ccaa37c047d3013ed41c0ff1bcb76e7962f8390c4179f28ab11733dd3b59d3 |
36 |
|
37 |
diff --git a/mail-mta/postfix/postfix-3.1.3.ebuild b/mail-mta/postfix/postfix-3.1.3.ebuild |
38 |
deleted file mode 100644 |
39 |
index c36138beff2..00000000000 |
40 |
--- a/mail-mta/postfix/postfix-3.1.3.ebuild |
41 |
+++ /dev/null |
42 |
@@ -1,308 +0,0 @@ |
43 |
-# Copyright 1999-2016 Gentoo Foundation |
44 |
-# Distributed under the terms of the GNU General Public License v2 |
45 |
- |
46 |
-EAPI=6 |
47 |
-inherit flag-o-matic pam systemd toolchain-funcs user |
48 |
- |
49 |
-MY_PV="${PV/_rc/-RC}" |
50 |
-MY_SRC="${PN}-${MY_PV}" |
51 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
52 |
-RC_VER="2.7" |
53 |
- |
54 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
55 |
-HOMEPAGE="http://www.postfix.org/" |
56 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
57 |
- |
58 |
-LICENSE="IBM" |
59 |
-SLOT="0" |
60 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
61 |
-IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
62 |
- |
63 |
-DEPEND=">=dev-libs/libpcre-3.4 |
64 |
- dev-lang/perl |
65 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
66 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
67 |
- eai? ( dev-libs/icu:= ) |
68 |
- ldap? ( net-nds/openldap ) |
69 |
- ldap-bind? ( net-nds/openldap[sasl] ) |
70 |
- lmdb? ( >=dev-db/lmdb-0.9.11 ) |
71 |
- mysql? ( virtual/mysql ) |
72 |
- pam? ( virtual/pam ) |
73 |
- postgres? ( dev-db/postgresql:* ) |
74 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
75 |
- sqlite? ( dev-db/sqlite:3 ) |
76 |
- ssl? ( |
77 |
- !libressl? ( dev-libs/openssl:0 ) |
78 |
- libressl? ( dev-libs/libressl ) |
79 |
- )" |
80 |
- |
81 |
-RDEPEND="${DEPEND} |
82 |
- dovecot-sasl? ( net-mail/dovecot ) |
83 |
- memcached? ( net-misc/memcached ) |
84 |
- net-mail/mailbase |
85 |
- !mail-mta/courier |
86 |
- !mail-mta/esmtp |
87 |
- !mail-mta/exim |
88 |
- !mail-mta/mini-qmail |
89 |
- !mail-mta/msmtp[mta] |
90 |
- !mail-mta/netqmail |
91 |
- !mail-mta/nullmailer |
92 |
- !mail-mta/qmail-ldap |
93 |
- !mail-mta/sendmail |
94 |
- !mail-mta/opensmtpd |
95 |
- !<mail-mta/ssmtp-2.64-r2 |
96 |
- !>=mail-mta/ssmtp-2.64-r2[mta] |
97 |
- !net-mail/fastforward |
98 |
- selinux? ( sec-policy/selinux-postfix )" |
99 |
- |
100 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
101 |
- |
102 |
-S="${WORKDIR}/${MY_SRC}" |
103 |
- |
104 |
-pkg_setup() { |
105 |
- # Add postfix, postdrop user/group (bug #77565) |
106 |
- enewgroup postfix 207 |
107 |
- enewgroup postdrop 208 |
108 |
- enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
109 |
-} |
110 |
- |
111 |
-src_prepare() { |
112 |
- default |
113 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
114 |
- src/util/sys_defs.h || die "sed failed" |
115 |
- # change default paths to better comply with portage standard paths |
116 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
117 |
- eapply -p0 "${FILESDIR}/${PN}-libressl.patch" |
118 |
- eapply -p0 "${FILESDIR}/${PN}-libressl-runtime.patch" |
119 |
-} |
120 |
- |
121 |
-src_configure() { |
122 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
123 |
- do |
124 |
- local AUXLIBS_${name}="" |
125 |
- done |
126 |
- |
127 |
- # Make sure LDFLAGS get passed down to the executables. |
128 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
129 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
130 |
- |
131 |
- use pam && mylibs="${mylibs} -lpam" |
132 |
- |
133 |
- if use ldap; then |
134 |
- mycc="${mycc} -DHAS_LDAP" |
135 |
- AUXLIBS_LDAP="-lldap -llber" |
136 |
- fi |
137 |
- |
138 |
- if use mysql; then |
139 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
140 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
141 |
- fi |
142 |
- |
143 |
- if use postgres; then |
144 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
145 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
146 |
- fi |
147 |
- |
148 |
- if use sqlite; then |
149 |
- mycc="${mycc} -DHAS_SQLITE" |
150 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
151 |
- fi |
152 |
- |
153 |
- if use ssl; then |
154 |
- mycc="${mycc} -DUSE_TLS" |
155 |
- mylibs="${mylibs} -lssl -lcrypto" |
156 |
- fi |
157 |
- |
158 |
- if use lmdb; then |
159 |
- mycc="${mycc} -DHAS_LMDB" |
160 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
161 |
- fi |
162 |
- |
163 |
- if ! use eai; then |
164 |
- mycc="${mycc} -DNO_EAI" |
165 |
- fi |
166 |
- |
167 |
- # broken. and "in other words, not supported" by upstream. |
168 |
- # Use inet_protocols setting in main.cf |
169 |
- #if ! use ipv6; then |
170 |
- # mycc="${mycc} -DNO_IPV6" |
171 |
- #fi |
172 |
- |
173 |
- if use sasl; then |
174 |
- if use dovecot-sasl; then |
175 |
- # Set dovecot as default. |
176 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
177 |
- fi |
178 |
- if use ldap-bind; then |
179 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
180 |
- fi |
181 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
182 |
- mylibs="${mylibs} -lsasl2" |
183 |
- elif use dovecot-sasl; then |
184 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
185 |
- fi |
186 |
- |
187 |
- if ! use nis; then |
188 |
- mycc="${mycc} -DNO_NIS" |
189 |
- fi |
190 |
- |
191 |
- if ! use berkdb; then |
192 |
- mycc="${mycc} -DNO_DB" |
193 |
- if use cdb; then |
194 |
- # change default hash format from Berkeley DB to cdb |
195 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
196 |
- fi |
197 |
- fi |
198 |
- |
199 |
- if use cdb; then |
200 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
201 |
- # Tinycdb is preferred. |
202 |
- if has_version dev-db/tinycdb ; then |
203 |
- einfo "Building with dev-db/tinycdb" |
204 |
- AUXLIBS_CDB="-lcdb" |
205 |
- else |
206 |
- einfo "Building with dev-db/cdb" |
207 |
- CDB_PATH="/usr/$(get_libdir)" |
208 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
209 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
210 |
- done |
211 |
- fi |
212 |
- fi |
213 |
- |
214 |
- # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
215 |
- # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
216 |
- mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
217 |
- filter-lfs-flags |
218 |
- |
219 |
- # Workaround for bug #76512 |
220 |
- if use hardened; then |
221 |
- [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
222 |
- fi |
223 |
- |
224 |
- # Remove annoying C++ comment style warnings - bug #378099 |
225 |
- append-flags -Wno-comment |
226 |
- |
227 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
228 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
229 |
- |
230 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
231 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
232 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
233 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
234 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
235 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
236 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
237 |
-} |
238 |
- |
239 |
-src_install () { |
240 |
- local myconf |
241 |
- use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
242 |
- html_directory=\"/usr/share/doc/${PF}/html\"" |
243 |
- |
244 |
- LD_LIBRARY_PATH="${S}/lib" \ |
245 |
- /bin/sh postfix-install \ |
246 |
- -non-interactive \ |
247 |
- install_root="${D}" \ |
248 |
- config_directory="/etc/postfix" \ |
249 |
- manpage_directory="/usr/share/man" \ |
250 |
- command_directory="/usr/sbin" \ |
251 |
- mailq_path="/usr/bin/mailq" \ |
252 |
- newaliases_path="/usr/bin/newaliases" \ |
253 |
- sendmail_path="/usr/sbin/sendmail" \ |
254 |
- ${myconf} \ |
255 |
- || die "postfix-install failed" |
256 |
- |
257 |
- # Fix spool removal on upgrade |
258 |
- rm -Rf "${D}"/var |
259 |
- keepdir /var/spool/postfix |
260 |
- |
261 |
- # Install rmail for UUCP, closes bug #19127 |
262 |
- dobin auxiliary/rmail/rmail |
263 |
- |
264 |
- # Provide another link for legacy FSH |
265 |
- dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
266 |
- |
267 |
- # Install qshape and posttls-finger |
268 |
- dobin auxiliary/qshape/qshape.pl |
269 |
- doman man/man1/qshape.1 |
270 |
- dobin bin/posttls-finger |
271 |
- doman man/man1/posttls-finger.1 |
272 |
- |
273 |
- # Performance tuning tools and their manuals |
274 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
275 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
276 |
- |
277 |
- # Set proper permissions on required files/directories |
278 |
- dodir /var/lib/postfix |
279 |
- keepdir /var/lib/postfix |
280 |
- fowners -R postfix:postfix /var/lib/postfix |
281 |
- fperms 0750 /var/lib/postfix |
282 |
- fowners root:postdrop /usr/sbin/post{drop,queue} |
283 |
- fperms 02711 /usr/sbin/post{drop,queue} |
284 |
- |
285 |
- keepdir /etc/postfix |
286 |
- if use mbox; then |
287 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
288 |
- else |
289 |
- mypostconf="home_mailbox=.maildir/" |
290 |
- fi |
291 |
- LD_LIBRARY_PATH="${S}/lib" \ |
292 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
293 |
- -e ${mypostconf} || die "postconf failed" |
294 |
- |
295 |
- insinto /etc/postfix |
296 |
- newins "${FILESDIR}"/smtp.pass saslpass |
297 |
- fperms 600 /etc/postfix/saslpass |
298 |
- |
299 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
300 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
301 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
302 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
303 |
- |
304 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
305 |
- use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
306 |
- |
307 |
- pamd_mimic_system smtp auth account |
308 |
- |
309 |
- if use sasl; then |
310 |
- insinto /etc/sasl2 |
311 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
312 |
- fi |
313 |
- |
314 |
- # header files |
315 |
- insinto /usr/include/postfix |
316 |
- doins include/*.h |
317 |
- |
318 |
- # Keep config_dir clean |
319 |
- rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} |
320 |
- rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} |
321 |
- |
322 |
- if has_version mail-mta/postfix; then |
323 |
- # let the sysadmin decide when to change the compatibility_level |
324 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
325 |
- fi |
326 |
- |
327 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
328 |
-} |
329 |
- |
330 |
-pkg_postinst() { |
331 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
332 |
- ewarn |
333 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
334 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
335 |
- ewarn "work correctly without it." |
336 |
- ewarn |
337 |
- fi |
338 |
- |
339 |
- # configure tls |
340 |
- if use ssl ; then |
341 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
342 |
- elog "To configure client side TLS settings:" |
343 |
- elog "${EROOT}"usr/sbin/postfix tls enable-client |
344 |
- fi |
345 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
346 |
- elog "To configure server side TLS settings:" |
347 |
- elog "${EROOT}"usr/sbin/postfix tls enable-server |
348 |
- fi |
349 |
- fi |
350 |
-} |
351 |
|
352 |
diff --git a/mail-mta/postfix/postfix-3.1.4-r1.ebuild b/mail-mta/postfix/postfix-3.1.4-r1.ebuild |
353 |
deleted file mode 100644 |
354 |
index 36af5ef804a..00000000000 |
355 |
--- a/mail-mta/postfix/postfix-3.1.4-r1.ebuild |
356 |
+++ /dev/null |
357 |
@@ -1,308 +0,0 @@ |
358 |
-# Copyright 1999-2017 Gentoo Foundation |
359 |
-# Distributed under the terms of the GNU General Public License v2 |
360 |
- |
361 |
-EAPI=6 |
362 |
-inherit flag-o-matic pam systemd toolchain-funcs user |
363 |
- |
364 |
-MY_PV="${PV/_rc/-RC}" |
365 |
-MY_SRC="${PN}-${MY_PV}" |
366 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
367 |
-RC_VER="2.7" |
368 |
- |
369 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
370 |
-HOMEPAGE="http://www.postfix.org/" |
371 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
372 |
- |
373 |
-LICENSE="IBM" |
374 |
-SLOT="0" |
375 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
376 |
-IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
377 |
- |
378 |
-DEPEND=">=dev-libs/libpcre-3.4 |
379 |
- dev-lang/perl |
380 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
381 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
382 |
- eai? ( dev-libs/icu:= ) |
383 |
- ldap? ( net-nds/openldap ) |
384 |
- ldap-bind? ( net-nds/openldap[sasl] ) |
385 |
- lmdb? ( >=dev-db/lmdb-0.9.11 ) |
386 |
- mysql? ( virtual/mysql ) |
387 |
- pam? ( virtual/pam ) |
388 |
- postgres? ( dev-db/postgresql:* ) |
389 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
390 |
- sqlite? ( dev-db/sqlite:3 ) |
391 |
- ssl? ( |
392 |
- !libressl? ( dev-libs/openssl:0 ) |
393 |
- libressl? ( dev-libs/libressl ) |
394 |
- )" |
395 |
- |
396 |
-RDEPEND="${DEPEND} |
397 |
- dovecot-sasl? ( net-mail/dovecot ) |
398 |
- memcached? ( net-misc/memcached ) |
399 |
- net-mail/mailbase |
400 |
- !mail-mta/courier |
401 |
- !mail-mta/esmtp |
402 |
- !mail-mta/exim |
403 |
- !mail-mta/mini-qmail |
404 |
- !mail-mta/msmtp[mta] |
405 |
- !mail-mta/netqmail |
406 |
- !mail-mta/nullmailer |
407 |
- !mail-mta/qmail-ldap |
408 |
- !mail-mta/sendmail |
409 |
- !mail-mta/opensmtpd |
410 |
- !<mail-mta/ssmtp-2.64-r2 |
411 |
- !>=mail-mta/ssmtp-2.64-r2[mta] |
412 |
- !net-mail/fastforward |
413 |
- selinux? ( sec-policy/selinux-postfix )" |
414 |
- |
415 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
416 |
- |
417 |
-S="${WORKDIR}/${MY_SRC}" |
418 |
- |
419 |
-pkg_setup() { |
420 |
- # Add postfix, postdrop user/group (bug #77565) |
421 |
- enewgroup postfix 207 |
422 |
- enewgroup postdrop 208 |
423 |
- enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
424 |
-} |
425 |
- |
426 |
-src_prepare() { |
427 |
- default |
428 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
429 |
- src/util/sys_defs.h || die "sed failed" |
430 |
- # change default paths to better comply with portage standard paths |
431 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
432 |
- eapply -p0 "${FILESDIR}/${PN}-libressl.patch" |
433 |
- eapply -p0 "${FILESDIR}/${PN}-libressl-runtime.patch" |
434 |
-} |
435 |
- |
436 |
-src_configure() { |
437 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
438 |
- do |
439 |
- local AUXLIBS_${name}="" |
440 |
- done |
441 |
- |
442 |
- # Make sure LDFLAGS get passed down to the executables. |
443 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
444 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
445 |
- |
446 |
- use pam && mylibs="${mylibs} -lpam" |
447 |
- |
448 |
- if use ldap; then |
449 |
- mycc="${mycc} -DHAS_LDAP" |
450 |
- AUXLIBS_LDAP="-lldap -llber" |
451 |
- fi |
452 |
- |
453 |
- if use mysql; then |
454 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
455 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
456 |
- fi |
457 |
- |
458 |
- if use postgres; then |
459 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
460 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
461 |
- fi |
462 |
- |
463 |
- if use sqlite; then |
464 |
- mycc="${mycc} -DHAS_SQLITE" |
465 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
466 |
- fi |
467 |
- |
468 |
- if use ssl; then |
469 |
- mycc="${mycc} -DUSE_TLS" |
470 |
- mylibs="${mylibs} -lssl -lcrypto" |
471 |
- fi |
472 |
- |
473 |
- if use lmdb; then |
474 |
- mycc="${mycc} -DHAS_LMDB" |
475 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
476 |
- fi |
477 |
- |
478 |
- if ! use eai; then |
479 |
- mycc="${mycc} -DNO_EAI" |
480 |
- fi |
481 |
- |
482 |
- # broken. and "in other words, not supported" by upstream. |
483 |
- # Use inet_protocols setting in main.cf |
484 |
- #if ! use ipv6; then |
485 |
- # mycc="${mycc} -DNO_IPV6" |
486 |
- #fi |
487 |
- |
488 |
- if use sasl; then |
489 |
- if use dovecot-sasl; then |
490 |
- # Set dovecot as default. |
491 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
492 |
- fi |
493 |
- if use ldap-bind; then |
494 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
495 |
- fi |
496 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
497 |
- mylibs="${mylibs} -lsasl2" |
498 |
- elif use dovecot-sasl; then |
499 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
500 |
- fi |
501 |
- |
502 |
- if ! use nis; then |
503 |
- mycc="${mycc} -DNO_NIS" |
504 |
- fi |
505 |
- |
506 |
- if ! use berkdb; then |
507 |
- mycc="${mycc} -DNO_DB" |
508 |
- if use cdb; then |
509 |
- # change default hash format from Berkeley DB to cdb |
510 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
511 |
- fi |
512 |
- fi |
513 |
- |
514 |
- if use cdb; then |
515 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
516 |
- # Tinycdb is preferred. |
517 |
- if has_version dev-db/tinycdb ; then |
518 |
- einfo "Building with dev-db/tinycdb" |
519 |
- AUXLIBS_CDB="-lcdb" |
520 |
- else |
521 |
- einfo "Building with dev-db/cdb" |
522 |
- CDB_PATH="/usr/$(get_libdir)" |
523 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
524 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
525 |
- done |
526 |
- fi |
527 |
- fi |
528 |
- |
529 |
- # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
530 |
- # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
531 |
- mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
532 |
- filter-lfs-flags |
533 |
- |
534 |
- # Workaround for bug #76512 |
535 |
- if use hardened; then |
536 |
- [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
537 |
- fi |
538 |
- |
539 |
- # Remove annoying C++ comment style warnings - bug #378099 |
540 |
- append-flags -Wno-comment |
541 |
- |
542 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
543 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
544 |
- |
545 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
546 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
547 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
548 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
549 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
550 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
551 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
552 |
-} |
553 |
- |
554 |
-src_install () { |
555 |
- local myconf |
556 |
- use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
557 |
- html_directory=\"/usr/share/doc/${PF}/html\"" |
558 |
- |
559 |
- LD_LIBRARY_PATH="${S}/lib" \ |
560 |
- /bin/sh postfix-install \ |
561 |
- -non-interactive \ |
562 |
- install_root="${D}" \ |
563 |
- config_directory="/etc/postfix" \ |
564 |
- manpage_directory="/usr/share/man" \ |
565 |
- command_directory="/usr/sbin" \ |
566 |
- mailq_path="/usr/bin/mailq" \ |
567 |
- newaliases_path="/usr/bin/newaliases" \ |
568 |
- sendmail_path="/usr/sbin/sendmail" \ |
569 |
- ${myconf} \ |
570 |
- || die "postfix-install failed" |
571 |
- |
572 |
- # Fix spool removal on upgrade |
573 |
- rm -Rf "${D}"/var |
574 |
- keepdir /var/spool/postfix |
575 |
- |
576 |
- # Install rmail for UUCP, closes bug #19127 |
577 |
- dobin auxiliary/rmail/rmail |
578 |
- |
579 |
- # Provide another link for legacy FSH |
580 |
- dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
581 |
- |
582 |
- # Install qshape and posttls-finger |
583 |
- dobin auxiliary/qshape/qshape.pl |
584 |
- doman man/man1/qshape.1 |
585 |
- dobin bin/posttls-finger |
586 |
- doman man/man1/posttls-finger.1 |
587 |
- |
588 |
- # Performance tuning tools and their manuals |
589 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
590 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
591 |
- |
592 |
- # Set proper permissions on required files/directories |
593 |
- dodir /var/lib/postfix |
594 |
- keepdir /var/lib/postfix |
595 |
- fowners -R postfix:postfix /var/lib/postfix |
596 |
- fperms 0750 /var/lib/postfix |
597 |
- fowners root:postdrop /usr/sbin/post{drop,queue} |
598 |
- fperms 02711 /usr/sbin/post{drop,queue} |
599 |
- |
600 |
- keepdir /etc/postfix |
601 |
- if use mbox; then |
602 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
603 |
- else |
604 |
- mypostconf="home_mailbox=.maildir/" |
605 |
- fi |
606 |
- LD_LIBRARY_PATH="${S}/lib" \ |
607 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
608 |
- -e ${mypostconf} || die "postconf failed" |
609 |
- |
610 |
- insinto /etc/postfix |
611 |
- newins "${FILESDIR}"/smtp.pass saslpass |
612 |
- fperms 600 /etc/postfix/saslpass |
613 |
- |
614 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
615 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
616 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
617 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
618 |
- |
619 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
620 |
- use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
621 |
- |
622 |
- pamd_mimic_system smtp auth account |
623 |
- |
624 |
- if use sasl; then |
625 |
- insinto /etc/sasl2 |
626 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
627 |
- fi |
628 |
- |
629 |
- # header files |
630 |
- insinto /usr/include/postfix |
631 |
- doins include/*.h |
632 |
- |
633 |
- # Keep config_dir clean |
634 |
- rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} |
635 |
- rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} |
636 |
- |
637 |
- if has_version mail-mta/postfix; then |
638 |
- # let the sysadmin decide when to change the compatibility_level |
639 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
640 |
- fi |
641 |
- |
642 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
643 |
-} |
644 |
- |
645 |
-pkg_postinst() { |
646 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
647 |
- ewarn |
648 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
649 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
650 |
- ewarn "work correctly without it." |
651 |
- ewarn |
652 |
- fi |
653 |
- |
654 |
- # configure tls |
655 |
- if use ssl ; then |
656 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
657 |
- elog "To configure client side TLS settings:" |
658 |
- elog "${EROOT}"usr/sbin/postfix tls enable-client |
659 |
- fi |
660 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
661 |
- elog "To configure server side TLS settings:" |
662 |
- elog "${EROOT}"usr/sbin/postfix tls enable-server |
663 |
- fi |
664 |
- fi |
665 |
-} |
666 |
|
667 |
diff --git a/mail-mta/postfix/postfix-3.1.5.ebuild b/mail-mta/postfix/postfix-3.1.5.ebuild |
668 |
deleted file mode 100644 |
669 |
index 36af5ef804a..00000000000 |
670 |
--- a/mail-mta/postfix/postfix-3.1.5.ebuild |
671 |
+++ /dev/null |
672 |
@@ -1,308 +0,0 @@ |
673 |
-# Copyright 1999-2017 Gentoo Foundation |
674 |
-# Distributed under the terms of the GNU General Public License v2 |
675 |
- |
676 |
-EAPI=6 |
677 |
-inherit flag-o-matic pam systemd toolchain-funcs user |
678 |
- |
679 |
-MY_PV="${PV/_rc/-RC}" |
680 |
-MY_SRC="${PN}-${MY_PV}" |
681 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
682 |
-RC_VER="2.7" |
683 |
- |
684 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
685 |
-HOMEPAGE="http://www.postfix.org/" |
686 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
687 |
- |
688 |
-LICENSE="IBM" |
689 |
-SLOT="0" |
690 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
691 |
-IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
692 |
- |
693 |
-DEPEND=">=dev-libs/libpcre-3.4 |
694 |
- dev-lang/perl |
695 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
696 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
697 |
- eai? ( dev-libs/icu:= ) |
698 |
- ldap? ( net-nds/openldap ) |
699 |
- ldap-bind? ( net-nds/openldap[sasl] ) |
700 |
- lmdb? ( >=dev-db/lmdb-0.9.11 ) |
701 |
- mysql? ( virtual/mysql ) |
702 |
- pam? ( virtual/pam ) |
703 |
- postgres? ( dev-db/postgresql:* ) |
704 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
705 |
- sqlite? ( dev-db/sqlite:3 ) |
706 |
- ssl? ( |
707 |
- !libressl? ( dev-libs/openssl:0 ) |
708 |
- libressl? ( dev-libs/libressl ) |
709 |
- )" |
710 |
- |
711 |
-RDEPEND="${DEPEND} |
712 |
- dovecot-sasl? ( net-mail/dovecot ) |
713 |
- memcached? ( net-misc/memcached ) |
714 |
- net-mail/mailbase |
715 |
- !mail-mta/courier |
716 |
- !mail-mta/esmtp |
717 |
- !mail-mta/exim |
718 |
- !mail-mta/mini-qmail |
719 |
- !mail-mta/msmtp[mta] |
720 |
- !mail-mta/netqmail |
721 |
- !mail-mta/nullmailer |
722 |
- !mail-mta/qmail-ldap |
723 |
- !mail-mta/sendmail |
724 |
- !mail-mta/opensmtpd |
725 |
- !<mail-mta/ssmtp-2.64-r2 |
726 |
- !>=mail-mta/ssmtp-2.64-r2[mta] |
727 |
- !net-mail/fastforward |
728 |
- selinux? ( sec-policy/selinux-postfix )" |
729 |
- |
730 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
731 |
- |
732 |
-S="${WORKDIR}/${MY_SRC}" |
733 |
- |
734 |
-pkg_setup() { |
735 |
- # Add postfix, postdrop user/group (bug #77565) |
736 |
- enewgroup postfix 207 |
737 |
- enewgroup postdrop 208 |
738 |
- enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
739 |
-} |
740 |
- |
741 |
-src_prepare() { |
742 |
- default |
743 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
744 |
- src/util/sys_defs.h || die "sed failed" |
745 |
- # change default paths to better comply with portage standard paths |
746 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
747 |
- eapply -p0 "${FILESDIR}/${PN}-libressl.patch" |
748 |
- eapply -p0 "${FILESDIR}/${PN}-libressl-runtime.patch" |
749 |
-} |
750 |
- |
751 |
-src_configure() { |
752 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
753 |
- do |
754 |
- local AUXLIBS_${name}="" |
755 |
- done |
756 |
- |
757 |
- # Make sure LDFLAGS get passed down to the executables. |
758 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
759 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
760 |
- |
761 |
- use pam && mylibs="${mylibs} -lpam" |
762 |
- |
763 |
- if use ldap; then |
764 |
- mycc="${mycc} -DHAS_LDAP" |
765 |
- AUXLIBS_LDAP="-lldap -llber" |
766 |
- fi |
767 |
- |
768 |
- if use mysql; then |
769 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
770 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
771 |
- fi |
772 |
- |
773 |
- if use postgres; then |
774 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
775 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
776 |
- fi |
777 |
- |
778 |
- if use sqlite; then |
779 |
- mycc="${mycc} -DHAS_SQLITE" |
780 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
781 |
- fi |
782 |
- |
783 |
- if use ssl; then |
784 |
- mycc="${mycc} -DUSE_TLS" |
785 |
- mylibs="${mylibs} -lssl -lcrypto" |
786 |
- fi |
787 |
- |
788 |
- if use lmdb; then |
789 |
- mycc="${mycc} -DHAS_LMDB" |
790 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
791 |
- fi |
792 |
- |
793 |
- if ! use eai; then |
794 |
- mycc="${mycc} -DNO_EAI" |
795 |
- fi |
796 |
- |
797 |
- # broken. and "in other words, not supported" by upstream. |
798 |
- # Use inet_protocols setting in main.cf |
799 |
- #if ! use ipv6; then |
800 |
- # mycc="${mycc} -DNO_IPV6" |
801 |
- #fi |
802 |
- |
803 |
- if use sasl; then |
804 |
- if use dovecot-sasl; then |
805 |
- # Set dovecot as default. |
806 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
807 |
- fi |
808 |
- if use ldap-bind; then |
809 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
810 |
- fi |
811 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
812 |
- mylibs="${mylibs} -lsasl2" |
813 |
- elif use dovecot-sasl; then |
814 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
815 |
- fi |
816 |
- |
817 |
- if ! use nis; then |
818 |
- mycc="${mycc} -DNO_NIS" |
819 |
- fi |
820 |
- |
821 |
- if ! use berkdb; then |
822 |
- mycc="${mycc} -DNO_DB" |
823 |
- if use cdb; then |
824 |
- # change default hash format from Berkeley DB to cdb |
825 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
826 |
- fi |
827 |
- fi |
828 |
- |
829 |
- if use cdb; then |
830 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
831 |
- # Tinycdb is preferred. |
832 |
- if has_version dev-db/tinycdb ; then |
833 |
- einfo "Building with dev-db/tinycdb" |
834 |
- AUXLIBS_CDB="-lcdb" |
835 |
- else |
836 |
- einfo "Building with dev-db/cdb" |
837 |
- CDB_PATH="/usr/$(get_libdir)" |
838 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
839 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
840 |
- done |
841 |
- fi |
842 |
- fi |
843 |
- |
844 |
- # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
845 |
- # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
846 |
- mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
847 |
- filter-lfs-flags |
848 |
- |
849 |
- # Workaround for bug #76512 |
850 |
- if use hardened; then |
851 |
- [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
852 |
- fi |
853 |
- |
854 |
- # Remove annoying C++ comment style warnings - bug #378099 |
855 |
- append-flags -Wno-comment |
856 |
- |
857 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
858 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
859 |
- |
860 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
861 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
862 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
863 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
864 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
865 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
866 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
867 |
-} |
868 |
- |
869 |
-src_install () { |
870 |
- local myconf |
871 |
- use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
872 |
- html_directory=\"/usr/share/doc/${PF}/html\"" |
873 |
- |
874 |
- LD_LIBRARY_PATH="${S}/lib" \ |
875 |
- /bin/sh postfix-install \ |
876 |
- -non-interactive \ |
877 |
- install_root="${D}" \ |
878 |
- config_directory="/etc/postfix" \ |
879 |
- manpage_directory="/usr/share/man" \ |
880 |
- command_directory="/usr/sbin" \ |
881 |
- mailq_path="/usr/bin/mailq" \ |
882 |
- newaliases_path="/usr/bin/newaliases" \ |
883 |
- sendmail_path="/usr/sbin/sendmail" \ |
884 |
- ${myconf} \ |
885 |
- || die "postfix-install failed" |
886 |
- |
887 |
- # Fix spool removal on upgrade |
888 |
- rm -Rf "${D}"/var |
889 |
- keepdir /var/spool/postfix |
890 |
- |
891 |
- # Install rmail for UUCP, closes bug #19127 |
892 |
- dobin auxiliary/rmail/rmail |
893 |
- |
894 |
- # Provide another link for legacy FSH |
895 |
- dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
896 |
- |
897 |
- # Install qshape and posttls-finger |
898 |
- dobin auxiliary/qshape/qshape.pl |
899 |
- doman man/man1/qshape.1 |
900 |
- dobin bin/posttls-finger |
901 |
- doman man/man1/posttls-finger.1 |
902 |
- |
903 |
- # Performance tuning tools and their manuals |
904 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
905 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
906 |
- |
907 |
- # Set proper permissions on required files/directories |
908 |
- dodir /var/lib/postfix |
909 |
- keepdir /var/lib/postfix |
910 |
- fowners -R postfix:postfix /var/lib/postfix |
911 |
- fperms 0750 /var/lib/postfix |
912 |
- fowners root:postdrop /usr/sbin/post{drop,queue} |
913 |
- fperms 02711 /usr/sbin/post{drop,queue} |
914 |
- |
915 |
- keepdir /etc/postfix |
916 |
- if use mbox; then |
917 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
918 |
- else |
919 |
- mypostconf="home_mailbox=.maildir/" |
920 |
- fi |
921 |
- LD_LIBRARY_PATH="${S}/lib" \ |
922 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
923 |
- -e ${mypostconf} || die "postconf failed" |
924 |
- |
925 |
- insinto /etc/postfix |
926 |
- newins "${FILESDIR}"/smtp.pass saslpass |
927 |
- fperms 600 /etc/postfix/saslpass |
928 |
- |
929 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
930 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
931 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
932 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
933 |
- |
934 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
935 |
- use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
936 |
- |
937 |
- pamd_mimic_system smtp auth account |
938 |
- |
939 |
- if use sasl; then |
940 |
- insinto /etc/sasl2 |
941 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
942 |
- fi |
943 |
- |
944 |
- # header files |
945 |
- insinto /usr/include/postfix |
946 |
- doins include/*.h |
947 |
- |
948 |
- # Keep config_dir clean |
949 |
- rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} |
950 |
- rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} |
951 |
- |
952 |
- if has_version mail-mta/postfix; then |
953 |
- # let the sysadmin decide when to change the compatibility_level |
954 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
955 |
- fi |
956 |
- |
957 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
958 |
-} |
959 |
- |
960 |
-pkg_postinst() { |
961 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
962 |
- ewarn |
963 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
964 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
965 |
- ewarn "work correctly without it." |
966 |
- ewarn |
967 |
- fi |
968 |
- |
969 |
- # configure tls |
970 |
- if use ssl ; then |
971 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
972 |
- elog "To configure client side TLS settings:" |
973 |
- elog "${EROOT}"usr/sbin/postfix tls enable-client |
974 |
- fi |
975 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
976 |
- elog "To configure server side TLS settings:" |
977 |
- elog "${EROOT}"usr/sbin/postfix tls enable-server |
978 |
- fi |
979 |
- fi |
980 |
-} |
981 |
|
982 |
diff --git a/mail-mta/postfix/postfix-3.2.0.ebuild b/mail-mta/postfix/postfix-3.2.0.ebuild |
983 |
deleted file mode 100644 |
984 |
index 0d7b71cde94..00000000000 |
985 |
--- a/mail-mta/postfix/postfix-3.2.0.ebuild |
986 |
+++ /dev/null |
987 |
@@ -1,308 +0,0 @@ |
988 |
-# Copyright 1999-2017 Gentoo Foundation |
989 |
-# Distributed under the terms of the GNU General Public License v2 |
990 |
- |
991 |
-EAPI=6 |
992 |
-inherit flag-o-matic pam systemd toolchain-funcs user |
993 |
- |
994 |
-MY_PV="${PV/_pre/-}" |
995 |
-MY_SRC="${PN}-${MY_PV}" |
996 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
997 |
-RC_VER="2.7" |
998 |
- |
999 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
1000 |
-HOMEPAGE="http://www.postfix.org/" |
1001 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
1002 |
- |
1003 |
-LICENSE="IBM" |
1004 |
-SLOT="0" |
1005 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
1006 |
-IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
1007 |
- |
1008 |
-DEPEND=">=dev-libs/libpcre-3.4 |
1009 |
- dev-lang/perl |
1010 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
1011 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
1012 |
- eai? ( dev-libs/icu:= ) |
1013 |
- ldap? ( net-nds/openldap ) |
1014 |
- ldap-bind? ( net-nds/openldap[sasl] ) |
1015 |
- lmdb? ( >=dev-db/lmdb-0.9.11 ) |
1016 |
- mysql? ( virtual/mysql ) |
1017 |
- pam? ( virtual/pam ) |
1018 |
- postgres? ( dev-db/postgresql:* ) |
1019 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
1020 |
- sqlite? ( dev-db/sqlite:3 ) |
1021 |
- ssl? ( |
1022 |
- !libressl? ( dev-libs/openssl:0 ) |
1023 |
- libressl? ( dev-libs/libressl ) |
1024 |
- )" |
1025 |
- |
1026 |
-RDEPEND="${DEPEND} |
1027 |
- dovecot-sasl? ( net-mail/dovecot ) |
1028 |
- memcached? ( net-misc/memcached ) |
1029 |
- net-mail/mailbase |
1030 |
- !mail-mta/courier |
1031 |
- !mail-mta/esmtp |
1032 |
- !mail-mta/exim |
1033 |
- !mail-mta/mini-qmail |
1034 |
- !mail-mta/msmtp[mta] |
1035 |
- !mail-mta/netqmail |
1036 |
- !mail-mta/nullmailer |
1037 |
- !mail-mta/qmail-ldap |
1038 |
- !mail-mta/sendmail |
1039 |
- !mail-mta/opensmtpd |
1040 |
- !<mail-mta/ssmtp-2.64-r2 |
1041 |
- !>=mail-mta/ssmtp-2.64-r2[mta] |
1042 |
- !net-mail/fastforward |
1043 |
- selinux? ( sec-policy/selinux-postfix )" |
1044 |
- |
1045 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
1046 |
- |
1047 |
-S="${WORKDIR}/${MY_SRC}" |
1048 |
- |
1049 |
-pkg_setup() { |
1050 |
- # Add postfix, postdrop user/group (bug #77565) |
1051 |
- enewgroup postfix 207 |
1052 |
- enewgroup postdrop 208 |
1053 |
- enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
1054 |
-} |
1055 |
- |
1056 |
-src_prepare() { |
1057 |
- default |
1058 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
1059 |
- src/util/sys_defs.h || die "sed failed" |
1060 |
- # change default paths to better comply with portage standard paths |
1061 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
1062 |
- eapply -p0 "${FILESDIR}/${PN}-libressl.patch" |
1063 |
- eapply -p0 "${FILESDIR}/${PN}-libressl-runtime.patch" |
1064 |
-} |
1065 |
- |
1066 |
-src_configure() { |
1067 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
1068 |
- do |
1069 |
- local AUXLIBS_${name}="" |
1070 |
- done |
1071 |
- |
1072 |
- # Make sure LDFLAGS get passed down to the executables. |
1073 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
1074 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
1075 |
- |
1076 |
- use pam && mylibs="${mylibs} -lpam" |
1077 |
- |
1078 |
- if use ldap; then |
1079 |
- mycc="${mycc} -DHAS_LDAP" |
1080 |
- AUXLIBS_LDAP="-lldap -llber" |
1081 |
- fi |
1082 |
- |
1083 |
- if use mysql; then |
1084 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
1085 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
1086 |
- fi |
1087 |
- |
1088 |
- if use postgres; then |
1089 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
1090 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
1091 |
- fi |
1092 |
- |
1093 |
- if use sqlite; then |
1094 |
- mycc="${mycc} -DHAS_SQLITE" |
1095 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
1096 |
- fi |
1097 |
- |
1098 |
- if use ssl; then |
1099 |
- mycc="${mycc} -DUSE_TLS" |
1100 |
- mylibs="${mylibs} -lssl -lcrypto" |
1101 |
- fi |
1102 |
- |
1103 |
- if use lmdb; then |
1104 |
- mycc="${mycc} -DHAS_LMDB" |
1105 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
1106 |
- fi |
1107 |
- |
1108 |
- if ! use eai; then |
1109 |
- mycc="${mycc} -DNO_EAI" |
1110 |
- fi |
1111 |
- |
1112 |
- # broken. and "in other words, not supported" by upstream. |
1113 |
- # Use inet_protocols setting in main.cf |
1114 |
- #if ! use ipv6; then |
1115 |
- # mycc="${mycc} -DNO_IPV6" |
1116 |
- #fi |
1117 |
- |
1118 |
- if use sasl; then |
1119 |
- if use dovecot-sasl; then |
1120 |
- # Set dovecot as default. |
1121 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
1122 |
- fi |
1123 |
- if use ldap-bind; then |
1124 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
1125 |
- fi |
1126 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
1127 |
- mylibs="${mylibs} -lsasl2" |
1128 |
- elif use dovecot-sasl; then |
1129 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
1130 |
- fi |
1131 |
- |
1132 |
- if ! use nis; then |
1133 |
- mycc="${mycc} -DNO_NIS" |
1134 |
- fi |
1135 |
- |
1136 |
- if ! use berkdb; then |
1137 |
- mycc="${mycc} -DNO_DB" |
1138 |
- if use cdb; then |
1139 |
- # change default hash format from Berkeley DB to cdb |
1140 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
1141 |
- fi |
1142 |
- fi |
1143 |
- |
1144 |
- if use cdb; then |
1145 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
1146 |
- # Tinycdb is preferred. |
1147 |
- if has_version dev-db/tinycdb ; then |
1148 |
- einfo "Building with dev-db/tinycdb" |
1149 |
- AUXLIBS_CDB="-lcdb" |
1150 |
- else |
1151 |
- einfo "Building with dev-db/cdb" |
1152 |
- CDB_PATH="/usr/$(get_libdir)" |
1153 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
1154 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
1155 |
- done |
1156 |
- fi |
1157 |
- fi |
1158 |
- |
1159 |
- # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
1160 |
- # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
1161 |
- mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
1162 |
- filter-lfs-flags |
1163 |
- |
1164 |
- # Workaround for bug #76512 |
1165 |
- if use hardened; then |
1166 |
- [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
1167 |
- fi |
1168 |
- |
1169 |
- # Remove annoying C++ comment style warnings - bug #378099 |
1170 |
- append-flags -Wno-comment |
1171 |
- |
1172 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
1173 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
1174 |
- |
1175 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
1176 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
1177 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
1178 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
1179 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
1180 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
1181 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
1182 |
-} |
1183 |
- |
1184 |
-src_install () { |
1185 |
- local myconf |
1186 |
- use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
1187 |
- html_directory=\"/usr/share/doc/${PF}/html\"" |
1188 |
- |
1189 |
- LD_LIBRARY_PATH="${S}/lib" \ |
1190 |
- /bin/sh postfix-install \ |
1191 |
- -non-interactive \ |
1192 |
- install_root="${D}" \ |
1193 |
- config_directory="/etc/postfix" \ |
1194 |
- manpage_directory="/usr/share/man" \ |
1195 |
- command_directory="/usr/sbin" \ |
1196 |
- mailq_path="/usr/bin/mailq" \ |
1197 |
- newaliases_path="/usr/bin/newaliases" \ |
1198 |
- sendmail_path="/usr/sbin/sendmail" \ |
1199 |
- ${myconf} \ |
1200 |
- || die "postfix-install failed" |
1201 |
- |
1202 |
- # Fix spool removal on upgrade |
1203 |
- rm -Rf "${D}"/var |
1204 |
- keepdir /var/spool/postfix |
1205 |
- |
1206 |
- # Install rmail for UUCP, closes bug #19127 |
1207 |
- dobin auxiliary/rmail/rmail |
1208 |
- |
1209 |
- # Provide another link for legacy FSH |
1210 |
- dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
1211 |
- |
1212 |
- # Install qshape and posttls-finger |
1213 |
- dobin auxiliary/qshape/qshape.pl |
1214 |
- doman man/man1/qshape.1 |
1215 |
- dobin bin/posttls-finger |
1216 |
- doman man/man1/posttls-finger.1 |
1217 |
- |
1218 |
- # Performance tuning tools and their manuals |
1219 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
1220 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
1221 |
- |
1222 |
- # Set proper permissions on required files/directories |
1223 |
- dodir /var/lib/postfix |
1224 |
- keepdir /var/lib/postfix |
1225 |
- fowners -R postfix:postfix /var/lib/postfix |
1226 |
- fperms 0750 /var/lib/postfix |
1227 |
- fowners root:postdrop /usr/sbin/post{drop,queue} |
1228 |
- fperms 02711 /usr/sbin/post{drop,queue} |
1229 |
- |
1230 |
- keepdir /etc/postfix |
1231 |
- if use mbox; then |
1232 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
1233 |
- else |
1234 |
- mypostconf="home_mailbox=.maildir/" |
1235 |
- fi |
1236 |
- LD_LIBRARY_PATH="${S}/lib" \ |
1237 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
1238 |
- -e ${mypostconf} || die "postconf failed" |
1239 |
- |
1240 |
- insinto /etc/postfix |
1241 |
- newins "${FILESDIR}"/smtp.pass saslpass |
1242 |
- fperms 600 /etc/postfix/saslpass |
1243 |
- |
1244 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
1245 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
1246 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
1247 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
1248 |
- |
1249 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
1250 |
- use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
1251 |
- |
1252 |
- pamd_mimic_system smtp auth account |
1253 |
- |
1254 |
- if use sasl; then |
1255 |
- insinto /etc/sasl2 |
1256 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
1257 |
- fi |
1258 |
- |
1259 |
- # header files |
1260 |
- insinto /usr/include/postfix |
1261 |
- doins include/*.h |
1262 |
- |
1263 |
- # Keep config_dir clean |
1264 |
- rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} |
1265 |
- rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} |
1266 |
- |
1267 |
- if has_version mail-mta/postfix; then |
1268 |
- # let the sysadmin decide when to change the compatibility_level |
1269 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
1270 |
- fi |
1271 |
- |
1272 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1273 |
-} |
1274 |
- |
1275 |
-pkg_postinst() { |
1276 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
1277 |
- ewarn |
1278 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
1279 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
1280 |
- ewarn "work correctly without it." |
1281 |
- ewarn |
1282 |
- fi |
1283 |
- |
1284 |
- # configure tls |
1285 |
- if use ssl ; then |
1286 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
1287 |
- elog "To configure client side TLS settings:" |
1288 |
- elog "${EROOT}"usr/sbin/postfix tls enable-client |
1289 |
- fi |
1290 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
1291 |
- elog "To configure server side TLS settings:" |
1292 |
- elog "${EROOT}"usr/sbin/postfix tls enable-server |
1293 |
- fi |
1294 |
- fi |
1295 |
-} |
1296 |
|
1297 |
diff --git a/mail-mta/postfix/postfix-3.2.1.ebuild b/mail-mta/postfix/postfix-3.2.1.ebuild |
1298 |
deleted file mode 100644 |
1299 |
index 0d7b71cde94..00000000000 |
1300 |
--- a/mail-mta/postfix/postfix-3.2.1.ebuild |
1301 |
+++ /dev/null |
1302 |
@@ -1,308 +0,0 @@ |
1303 |
-# Copyright 1999-2017 Gentoo Foundation |
1304 |
-# Distributed under the terms of the GNU General Public License v2 |
1305 |
- |
1306 |
-EAPI=6 |
1307 |
-inherit flag-o-matic pam systemd toolchain-funcs user |
1308 |
- |
1309 |
-MY_PV="${PV/_pre/-}" |
1310 |
-MY_SRC="${PN}-${MY_PV}" |
1311 |
-MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
1312 |
-RC_VER="2.7" |
1313 |
- |
1314 |
-DESCRIPTION="A fast and secure drop-in replacement for sendmail" |
1315 |
-HOMEPAGE="http://www.postfix.org/" |
1316 |
-SRC_URI="${MY_URI}/${MY_SRC}.tar.gz" |
1317 |
- |
1318 |
-LICENSE="IBM" |
1319 |
-SLOT="0" |
1320 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
1321 |
-IUSE="+berkdb cdb doc dovecot-sasl +eai hardened ldap ldap-bind libressl lmdb memcached mbox mysql nis pam postgres sasl selinux sqlite ssl" |
1322 |
- |
1323 |
-DEPEND=">=dev-libs/libpcre-3.4 |
1324 |
- dev-lang/perl |
1325 |
- berkdb? ( >=sys-libs/db-3.2:* ) |
1326 |
- cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r4 ) ) |
1327 |
- eai? ( dev-libs/icu:= ) |
1328 |
- ldap? ( net-nds/openldap ) |
1329 |
- ldap-bind? ( net-nds/openldap[sasl] ) |
1330 |
- lmdb? ( >=dev-db/lmdb-0.9.11 ) |
1331 |
- mysql? ( virtual/mysql ) |
1332 |
- pam? ( virtual/pam ) |
1333 |
- postgres? ( dev-db/postgresql:* ) |
1334 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
1335 |
- sqlite? ( dev-db/sqlite:3 ) |
1336 |
- ssl? ( |
1337 |
- !libressl? ( dev-libs/openssl:0 ) |
1338 |
- libressl? ( dev-libs/libressl ) |
1339 |
- )" |
1340 |
- |
1341 |
-RDEPEND="${DEPEND} |
1342 |
- dovecot-sasl? ( net-mail/dovecot ) |
1343 |
- memcached? ( net-misc/memcached ) |
1344 |
- net-mail/mailbase |
1345 |
- !mail-mta/courier |
1346 |
- !mail-mta/esmtp |
1347 |
- !mail-mta/exim |
1348 |
- !mail-mta/mini-qmail |
1349 |
- !mail-mta/msmtp[mta] |
1350 |
- !mail-mta/netqmail |
1351 |
- !mail-mta/nullmailer |
1352 |
- !mail-mta/qmail-ldap |
1353 |
- !mail-mta/sendmail |
1354 |
- !mail-mta/opensmtpd |
1355 |
- !<mail-mta/ssmtp-2.64-r2 |
1356 |
- !>=mail-mta/ssmtp-2.64-r2[mta] |
1357 |
- !net-mail/fastforward |
1358 |
- selinux? ( sec-policy/selinux-postfix )" |
1359 |
- |
1360 |
-REQUIRED_USE="ldap-bind? ( ldap sasl )" |
1361 |
- |
1362 |
-S="${WORKDIR}/${MY_SRC}" |
1363 |
- |
1364 |
-pkg_setup() { |
1365 |
- # Add postfix, postdrop user/group (bug #77565) |
1366 |
- enewgroup postfix 207 |
1367 |
- enewgroup postdrop 208 |
1368 |
- enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
1369 |
-} |
1370 |
- |
1371 |
-src_prepare() { |
1372 |
- default |
1373 |
- sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
1374 |
- src/util/sys_defs.h || die "sed failed" |
1375 |
- # change default paths to better comply with portage standard paths |
1376 |
- sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
1377 |
- eapply -p0 "${FILESDIR}/${PN}-libressl.patch" |
1378 |
- eapply -p0 "${FILESDIR}/${PN}-libressl-runtime.patch" |
1379 |
-} |
1380 |
- |
1381 |
-src_configure() { |
1382 |
- for name in CDB LDAP LMDB MYSQL PCRE PGSQL SDBM SQLITE |
1383 |
- do |
1384 |
- local AUXLIBS_${name}="" |
1385 |
- done |
1386 |
- |
1387 |
- # Make sure LDFLAGS get passed down to the executables. |
1388 |
- local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -ldl" |
1389 |
- AUXLIBS_PCRE="$(pcre-config --libs)" |
1390 |
- |
1391 |
- use pam && mylibs="${mylibs} -lpam" |
1392 |
- |
1393 |
- if use ldap; then |
1394 |
- mycc="${mycc} -DHAS_LDAP" |
1395 |
- AUXLIBS_LDAP="-lldap -llber" |
1396 |
- fi |
1397 |
- |
1398 |
- if use mysql; then |
1399 |
- mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
1400 |
- AUXLIBS_MYSQL="$(mysql_config --libs)" |
1401 |
- fi |
1402 |
- |
1403 |
- if use postgres; then |
1404 |
- mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
1405 |
- AUXLIBS_PGSQL="-L$(pg_config --libdir) -lpq" |
1406 |
- fi |
1407 |
- |
1408 |
- if use sqlite; then |
1409 |
- mycc="${mycc} -DHAS_SQLITE" |
1410 |
- AUXLIBS_SQLITE="-lsqlite3 -lpthread" |
1411 |
- fi |
1412 |
- |
1413 |
- if use ssl; then |
1414 |
- mycc="${mycc} -DUSE_TLS" |
1415 |
- mylibs="${mylibs} -lssl -lcrypto" |
1416 |
- fi |
1417 |
- |
1418 |
- if use lmdb; then |
1419 |
- mycc="${mycc} -DHAS_LMDB" |
1420 |
- AUXLIBS_LMDB="-llmdb -lpthread" |
1421 |
- fi |
1422 |
- |
1423 |
- if ! use eai; then |
1424 |
- mycc="${mycc} -DNO_EAI" |
1425 |
- fi |
1426 |
- |
1427 |
- # broken. and "in other words, not supported" by upstream. |
1428 |
- # Use inet_protocols setting in main.cf |
1429 |
- #if ! use ipv6; then |
1430 |
- # mycc="${mycc} -DNO_IPV6" |
1431 |
- #fi |
1432 |
- |
1433 |
- if use sasl; then |
1434 |
- if use dovecot-sasl; then |
1435 |
- # Set dovecot as default. |
1436 |
- mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
1437 |
- fi |
1438 |
- if use ldap-bind; then |
1439 |
- mycc="${mycc} -DUSE_LDAP_SASL" |
1440 |
- fi |
1441 |
- mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
1442 |
- mylibs="${mylibs} -lsasl2" |
1443 |
- elif use dovecot-sasl; then |
1444 |
- mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
1445 |
- fi |
1446 |
- |
1447 |
- if ! use nis; then |
1448 |
- mycc="${mycc} -DNO_NIS" |
1449 |
- fi |
1450 |
- |
1451 |
- if ! use berkdb; then |
1452 |
- mycc="${mycc} -DNO_DB" |
1453 |
- if use cdb; then |
1454 |
- # change default hash format from Berkeley DB to cdb |
1455 |
- mycc="${mycc} -DDEF_DB_TYPE=\\\"cdb\\\"" |
1456 |
- fi |
1457 |
- fi |
1458 |
- |
1459 |
- if use cdb; then |
1460 |
- mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
1461 |
- # Tinycdb is preferred. |
1462 |
- if has_version dev-db/tinycdb ; then |
1463 |
- einfo "Building with dev-db/tinycdb" |
1464 |
- AUXLIBS_CDB="-lcdb" |
1465 |
- else |
1466 |
- einfo "Building with dev-db/cdb" |
1467 |
- CDB_PATH="/usr/$(get_libdir)" |
1468 |
- for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
1469 |
- AUXLIBS_CDB="${AUXLIBS_CDB} ${CDB_PATH}/${i}" |
1470 |
- done |
1471 |
- fi |
1472 |
- fi |
1473 |
- |
1474 |
- # Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
1475 |
- # Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
1476 |
- mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
1477 |
- filter-lfs-flags |
1478 |
- |
1479 |
- # Workaround for bug #76512 |
1480 |
- if use hardened; then |
1481 |
- [[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
1482 |
- fi |
1483 |
- |
1484 |
- # Remove annoying C++ comment style warnings - bug #378099 |
1485 |
- append-flags -Wno-comment |
1486 |
- |
1487 |
- sed -i -e "/^RANLIB/s/ranlib/$(tc-getRANLIB)/g" "${S}"/makedefs |
1488 |
- sed -i -e "/^AR/s/ar/$(tc-getAR)/g" "${S}"/makedefs |
1489 |
- |
1490 |
- emake makefiles shared=yes dynamicmaps=no pie=yes \ |
1491 |
- shlib_directory="/usr/$(get_libdir)/postfix/MAIL_VERSION" \ |
1492 |
- DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
1493 |
- AUXLIBS_CDB="${AUXLIBS_CDB}" AUXLIBS_LDAP="${AUXLIBS_LDAP}" \ |
1494 |
- AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" \ |
1495 |
- AUXLIBS_PCRE="${AUXLIBS_PCRE}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ |
1496 |
- AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" |
1497 |
-} |
1498 |
- |
1499 |
-src_install () { |
1500 |
- local myconf |
1501 |
- use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
1502 |
- html_directory=\"/usr/share/doc/${PF}/html\"" |
1503 |
- |
1504 |
- LD_LIBRARY_PATH="${S}/lib" \ |
1505 |
- /bin/sh postfix-install \ |
1506 |
- -non-interactive \ |
1507 |
- install_root="${D}" \ |
1508 |
- config_directory="/etc/postfix" \ |
1509 |
- manpage_directory="/usr/share/man" \ |
1510 |
- command_directory="/usr/sbin" \ |
1511 |
- mailq_path="/usr/bin/mailq" \ |
1512 |
- newaliases_path="/usr/bin/newaliases" \ |
1513 |
- sendmail_path="/usr/sbin/sendmail" \ |
1514 |
- ${myconf} \ |
1515 |
- || die "postfix-install failed" |
1516 |
- |
1517 |
- # Fix spool removal on upgrade |
1518 |
- rm -Rf "${D}"/var |
1519 |
- keepdir /var/spool/postfix |
1520 |
- |
1521 |
- # Install rmail for UUCP, closes bug #19127 |
1522 |
- dobin auxiliary/rmail/rmail |
1523 |
- |
1524 |
- # Provide another link for legacy FSH |
1525 |
- dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
1526 |
- |
1527 |
- # Install qshape and posttls-finger |
1528 |
- dobin auxiliary/qshape/qshape.pl |
1529 |
- doman man/man1/qshape.1 |
1530 |
- dobin bin/posttls-finger |
1531 |
- doman man/man1/posttls-finger.1 |
1532 |
- |
1533 |
- # Performance tuning tools and their manuals |
1534 |
- dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
1535 |
- doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
1536 |
- |
1537 |
- # Set proper permissions on required files/directories |
1538 |
- dodir /var/lib/postfix |
1539 |
- keepdir /var/lib/postfix |
1540 |
- fowners -R postfix:postfix /var/lib/postfix |
1541 |
- fperms 0750 /var/lib/postfix |
1542 |
- fowners root:postdrop /usr/sbin/post{drop,queue} |
1543 |
- fperms 02711 /usr/sbin/post{drop,queue} |
1544 |
- |
1545 |
- keepdir /etc/postfix |
1546 |
- if use mbox; then |
1547 |
- mypostconf="mail_spool_directory=/var/spool/mail" |
1548 |
- else |
1549 |
- mypostconf="home_mailbox=.maildir/" |
1550 |
- fi |
1551 |
- LD_LIBRARY_PATH="${S}/lib" \ |
1552 |
- "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
1553 |
- -e ${mypostconf} || die "postconf failed" |
1554 |
- |
1555 |
- insinto /etc/postfix |
1556 |
- newins "${FILESDIR}"/smtp.pass saslpass |
1557 |
- fperms 600 /etc/postfix/saslpass |
1558 |
- |
1559 |
- newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
1560 |
- # do not start mysql/postgres unnecessarily - bug #359913 |
1561 |
- use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
1562 |
- use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
1563 |
- |
1564 |
- dodoc *README COMPATIBILITY HISTORY PORTING RELEASE_NOTES* |
1565 |
- use doc && mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
1566 |
- |
1567 |
- pamd_mimic_system smtp auth account |
1568 |
- |
1569 |
- if use sasl; then |
1570 |
- insinto /etc/sasl2 |
1571 |
- newins "${FILESDIR}"/smtp.sasl smtpd.conf |
1572 |
- fi |
1573 |
- |
1574 |
- # header files |
1575 |
- insinto /usr/include/postfix |
1576 |
- doins include/*.h |
1577 |
- |
1578 |
- # Keep config_dir clean |
1579 |
- rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} |
1580 |
- rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} |
1581 |
- |
1582 |
- if has_version mail-mta/postfix; then |
1583 |
- # let the sysadmin decide when to change the compatibility_level |
1584 |
- sed -i -e /^compatibility_level/"s/^/#/" "${D}"/etc/postfix/main.cf || die |
1585 |
- fi |
1586 |
- |
1587 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1588 |
-} |
1589 |
- |
1590 |
-pkg_postinst() { |
1591 |
- if [[ ! -e /etc/mail/aliases.db ]] ; then |
1592 |
- ewarn |
1593 |
- ewarn "You must edit /etc/mail/aliases to suit your needs" |
1594 |
- ewarn "and then run /usr/bin/newaliases. Postfix will not" |
1595 |
- ewarn "work correctly without it." |
1596 |
- ewarn |
1597 |
- fi |
1598 |
- |
1599 |
- # configure tls |
1600 |
- if use ssl ; then |
1601 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-client; then |
1602 |
- elog "To configure client side TLS settings:" |
1603 |
- elog "${EROOT}"usr/sbin/postfix tls enable-client |
1604 |
- fi |
1605 |
- if "${EROOT}"/usr/sbin/postfix tls all-default-server; then |
1606 |
- elog "To configure server side TLS settings:" |
1607 |
- elog "${EROOT}"usr/sbin/postfix tls enable-server |
1608 |
- fi |
1609 |
- fi |
1610 |
-} |