1 |
commit: c5b8658d48ea4f0c605c1904244fb6e374e8c954 |
2 |
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 12 11:55:37 2016 +0000 |
4 |
Commit: Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 12 11:57:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5b8658d |
7 |
|
8 |
mail-mta/opensmtpd: bump |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
mail-mta/opensmtpd/Manifest | 1 + |
13 |
mail-mta/opensmtpd/opensmtpd-6.0.1_p1.ebuild | 95 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 96 insertions(+) |
15 |
|
16 |
diff --git a/mail-mta/opensmtpd/Manifest b/mail-mta/opensmtpd/Manifest |
17 |
index aa620d1..026806a 100644 |
18 |
--- a/mail-mta/opensmtpd/Manifest |
19 |
+++ b/mail-mta/opensmtpd/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST opensmtpd-201607021504p1.tar.gz 693317 SHA256 8d858acc5395d3bc1267f2cf7e03639c8228e2cb7915e58b5708bee55deb9277 SHA512 c42767cb9f6d0ec0ae646c4e89638e899eecc4ee5ae22c5628c240fb713fa265130a8604f6f42078ae97cb958d7ef4be82832fc861bed80d5b29873d6cadb94c WHIRLPOOL ef4f4f746bd003a76c3ae6d256a7b0df0662d031d844920ebf87473bdff5cf1617f1ef724086748347979efbe3772689a54fdf2f123c059d8bda7510e27ddd37 |
22 |
DIST opensmtpd-5.9.2p1.tar.gz 681855 SHA256 3522f273c1630c781facdb2b921228e338ed4e651909316735df775d6a70a71d SHA512 99ca15101557848aa6d642f0c0171b152d805192e6839a97410b19431c981a21a5c0dc011e2c8cd91f3e6f6acb37a77f0f4c8e68114bf9808240392fe2b5d375 WHIRLPOOL 4d50474eb9f845633d152c065a0e70f3d41fba97134b33d3eb5164d39bdc58eeb4133b2f951a1815143a468144fb631f5f0b2960f57e7ba18a65321413fb5b6f |
23 |
+DIST opensmtpd-6.0.1p1.tar.gz 695482 SHA256 4cd61cd2d668715570896338c81d71eb64e6f90b3f88c5639b378db7b1af864a SHA512 4c28e60da9145691ea01ac164857e424d3ffb0633007d61cfbcdf919ebd5827d7bac9241a506903d618eb401957d8633e96886d4795257360a5192d780dafa1d WHIRLPOOL 67bdd2f79457f57c81ec9df6059d8700e9564797f9f2e17202a9407451ba91bb8bfebfb71a4dc8d6ce1d9d6cd4dafd2382763a142e4b7c2665a8b8e8b077a1be |
24 |
|
25 |
diff --git a/mail-mta/opensmtpd/opensmtpd-6.0.1_p1.ebuild b/mail-mta/opensmtpd/opensmtpd-6.0.1_p1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..9999795 |
28 |
--- /dev/null |
29 |
+++ b/mail-mta/opensmtpd/opensmtpd-6.0.1_p1.ebuild |
30 |
@@ -0,0 +1,95 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+inherit multilib user flag-o-matic eutils pam toolchain-funcs autotools systemd versionator |
38 |
+ |
39 |
+DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD" |
40 |
+HOMEPAGE="http://www.opensmtpd.org/" |
41 |
+MY_P="${P}" |
42 |
+if [ $(get_last_version_component_index) -eq 4 ]; then |
43 |
+ MY_P="${PN}-$(get_version_component_range 4-)" |
44 |
+fi |
45 |
+SRC_URI="https://www.opensmtpd.org/archives/${MY_P/_}.tar.gz" |
46 |
+ |
47 |
+LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="libressl pam +mta" |
51 |
+ |
52 |
+DEPEND="!libressl? ( dev-libs/openssl:0 ) |
53 |
+ libressl? ( dev-libs/libressl ) |
54 |
+ sys-libs/zlib |
55 |
+ pam? ( virtual/pam ) |
56 |
+ sys-libs/db:= |
57 |
+ dev-libs/libevent |
58 |
+ app-misc/ca-certificates |
59 |
+ net-mail/mailbase |
60 |
+ net-libs/libasr |
61 |
+ !mail-mta/courier |
62 |
+ !mail-mta/esmtp |
63 |
+ !mail-mta/exim |
64 |
+ !mail-mta/mini-qmail |
65 |
+ !mail-mta/msmtp[mta] |
66 |
+ !mail-mta/netqmail |
67 |
+ !mail-mta/nullmailer |
68 |
+ !mail-mta/postfix |
69 |
+ !mail-mta/qmail-ldap |
70 |
+ !mail-mta/sendmail |
71 |
+ !mail-mta/ssmtp[mta] |
72 |
+" |
73 |
+RDEPEND="${DEPEND}" |
74 |
+ |
75 |
+S=${WORKDIR}/${MY_P/_} |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ # Use /run instead of /var/run |
79 |
+ sed -i -e '/pidfile_path/s:_PATH_VARRUN:"/run/":' openbsd-compat/pidfile.c || die |
80 |
+ epatch_user |
81 |
+ eautoreconf |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ tc-export AR |
86 |
+ AR="$(which "$AR")" econf \ |
87 |
+ --with-table-db \ |
88 |
+ --with-user-smtpd=smtpd \ |
89 |
+ --with-user-queue=smtpq \ |
90 |
+ --with-group-queue=smtpq \ |
91 |
+ --with-path-socket=/run \ |
92 |
+ --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \ |
93 |
+ --sysconfdir=/etc/opensmtpd \ |
94 |
+ $(use_with pam auth-pam) |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ default |
99 |
+ newinitd "${FILESDIR}"/smtpd.initd smtpd |
100 |
+ systemd_dounit "${FILESDIR}"/smtpd.{service,socket} |
101 |
+ use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd |
102 |
+ dosym /usr/sbin/smtpctl /usr/sbin/makemap |
103 |
+ dosym /usr/sbin/smtpctl /usr/sbin/newaliases |
104 |
+ if use mta ; then |
105 |
+ dodir /usr/sbin |
106 |
+ dosym /usr/sbin/smtpctl /usr/sbin/sendmail |
107 |
+ dosym /usr/sbin/smtpctl /usr/bin/sendmail |
108 |
+ dosym /usr/sbin/smtpctl /usr/$(get_libdir)/sendmail |
109 |
+ fi |
110 |
+} |
111 |
+ |
112 |
+pkg_preinst() { |
113 |
+ enewgroup smtpd 25 |
114 |
+ enewuser smtpd 25 -1 /var/empty smtpd |
115 |
+ enewgroup smtpq 252 |
116 |
+ enewuser smtpq 252 -1 /var/empty smtpq |
117 |
+} |
118 |
+ |
119 |
+pkg_postinst() { |
120 |
+ einfo |
121 |
+ einfo "Plugins for SQLite, MySQL, PostgreSQL, LDAP, socketmaps," |
122 |
+ einfo "Redis, and many other useful addons and filters are" |
123 |
+ einfo "available in the mail-filter/opensmtpd-extras package." |
124 |
+ einfo |
125 |
+} |