1 |
commit: 540cb390969c38221992f04bcc576025d113a8c3 |
2 |
Author: Jonathan Davies <jpds <AT> protonmail <DOT> com> |
3 |
AuthorDate: Fri Dec 25 22:40:58 2020 +0000 |
4 |
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 26 12:18:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=540cb390 |
7 |
|
8 |
mail-mta/opensmtpd: version bump to 6.8.0p2 |
9 |
|
10 |
Signed-off-by: Jonathan Davies <jpds <AT> protonmail.com> |
11 |
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org> |
12 |
|
13 |
mail-mta/opensmtpd/Manifest | 1 + |
14 |
mail-mta/opensmtpd/opensmtpd-6.8.0_p2.ebuild | 74 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 75 insertions(+) |
16 |
|
17 |
diff --git a/mail-mta/opensmtpd/Manifest b/mail-mta/opensmtpd/Manifest |
18 |
index 588a36db085..a8cc73f5ef8 100644 |
19 |
--- a/mail-mta/opensmtpd/Manifest |
20 |
+++ b/mail-mta/opensmtpd/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST opensmtpd-6.7.1p1.tar.gz 859364 BLAKE2B 5b4002e8f15ab31810c9a4ccf22a0efc240f9db8bd14b8bb78aedf853b9c9db77cc4d6602a8d4b8d73904682cb1b345cb34aee69d10152d5be5cdf8d6cd37b96 SHA512 403952e77b360f42d8dc8ae7cd7faeced831b9e37bffd7c67d338b7208f7471d50f3594c3475a9282d18cb17435efd305ec8c05f89eaeab5d363ddb1c4d54a2e |
23 |
+DIST opensmtpd-6.8.0p2.tar.gz 860189 BLAKE2B 603e8516860eddefb1694ea4cb5631cec2df2a19fa3193b25388caf73c41e82d44e57847fc95b5187488cae629542e72ff2d5a17badc15cef1647bdb173d7827 SHA512 48f152b75575146fdd09bdf47123041ea62fefb6e5de33a69826bf91a2126a918f8db1caffadb2f142a1a21de8126d492de88cb65bdf169e61c0b22d3e78d290 |
24 |
|
25 |
diff --git a/mail-mta/opensmtpd/opensmtpd-6.8.0_p2.ebuild b/mail-mta/opensmtpd/opensmtpd-6.8.0_p2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..d93aa1e499e |
28 |
--- /dev/null |
29 |
+++ b/mail-mta/opensmtpd/opensmtpd-6.8.0_p2.ebuild |
30 |
@@ -0,0 +1,74 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit pam systemd |
37 |
+ |
38 |
+DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD" |
39 |
+HOMEPAGE="https://www.opensmtpd.org" |
40 |
+SRC_URI="https://www.opensmtpd.org/archives/${P/_}.tar.gz" |
41 |
+ |
42 |
+LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
45 |
+IUSE="libressl pam +mta berkdb" |
46 |
+ |
47 |
+DEPEND=" |
48 |
+ acct-user/smtpd |
49 |
+ acct-user/smtpq |
50 |
+ !libressl? ( >=dev-libs/openssl-1.1:0= ) |
51 |
+ libressl? ( dev-libs/libressl:0= ) |
52 |
+ elibc_musl? ( sys-libs/fts-standalone ) |
53 |
+ sys-libs/zlib |
54 |
+ pam? ( sys-libs/pam ) |
55 |
+ berkdb? ( sys-libs/db:= ) |
56 |
+ dev-libs/libevent |
57 |
+ app-misc/ca-certificates |
58 |
+ net-mail/mailbase |
59 |
+ net-libs/libasr |
60 |
+ !mail-mta/courier |
61 |
+ !mail-mta/esmtp |
62 |
+ !mail-mta/exim |
63 |
+ !mail-mta/mini-qmail |
64 |
+ !mail-mta/msmtp[mta] |
65 |
+ !mail-mta/netqmail |
66 |
+ !mail-mta/nullmailer |
67 |
+ !mail-mta/postfix |
68 |
+ !mail-mta/qmail-ldap |
69 |
+ !mail-mta/sendmail |
70 |
+ !mail-mta/ssmtp[mta] |
71 |
+" |
72 |
+RDEPEND="${DEPEND}" |
73 |
+ |
74 |
+S=${WORKDIR}/${P/_} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ econf \ |
78 |
+ --sysconfdir=/etc/smtpd \ |
79 |
+ --with-path-mbox=/var/spool/mail \ |
80 |
+ --with-path-empty=/var/empty \ |
81 |
+ --with-path-socket=/run \ |
82 |
+ --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \ |
83 |
+ --with-user-smtpd=smtpd \ |
84 |
+ --with-user-queue=smtpq \ |
85 |
+ --with-group-queue=smtpq \ |
86 |
+ $(use_with pam auth-pam) \ |
87 |
+ $(use_with berkdb table-db) |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ default |
92 |
+ newinitd "${FILESDIR}"/smtpd.initd smtpd |
93 |
+ systemd_dounit "${FILESDIR}"/smtpd.{service,socket} |
94 |
+ use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd |
95 |
+ dosym smtpctl /usr/sbin/makemap |
96 |
+ dosym smtpctl /usr/sbin/newaliases |
97 |
+ if use mta ; then |
98 |
+ dodir /usr/sbin |
99 |
+ dosym smtpctl /usr/sbin/sendmail |
100 |
+ dosym ../sbin/smtpctl /usr/bin/sendmail |
101 |
+ mkdir -p "${ED}"/usr/$(get_libdir) || die |
102 |
+ ln -s --relative "${ED}"/usr/sbin/smtpctl "${ED}"/usr/$(get_libdir)/sendmail || die |
103 |
+ fi |
104 |
+} |