Gentoo Archives: gentoo-commits

From: Jason Donenfeld <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/opensmtpd/
Date: Fri, 14 Oct 2016 02:27:12
Message-Id: 1476412007.729d3ba212f555535996e947ee01a44da6b441fc.zx2c4@gentoo
1 commit: 729d3ba212f555535996e947ee01a44da6b441fc
2 Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 14 02:25:42 2016 +0000
4 Commit: Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 14 02:26:47 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=729d3ba2
7
8 mail-mta/opensmtpd: new stable version
9
10 Package-Manager: portage-2.3.2
11
12 mail-mta/opensmtpd/opensmtpd-5.9.2_p1-r1.ebuild | 94 ---------------------
13 mail-mta/opensmtpd/opensmtpd-5.9.2_p1-r2.ebuild | 95 ----------------------
14 ...4_p1-r1.ebuild => opensmtpd-6.0.2_p1-r1.ebuild} | 0
15 mail-mta/opensmtpd/opensmtpd-6.0.2_p1.ebuild | 7 +-
16 4 files changed, 3 insertions(+), 193 deletions(-)
17
18 diff --git a/mail-mta/opensmtpd/opensmtpd-5.9.2_p1-r1.ebuild b/mail-mta/opensmtpd/opensmtpd-5.9.2_p1-r1.ebuild
19 deleted file mode 100644
20 index eec682c..00000000
21 --- a/mail-mta/opensmtpd/opensmtpd-5.9.2_p1-r1.ebuild
22 +++ /dev/null
23 @@ -1,94 +0,0 @@
24 -# Copyright 1999-2016 Gentoo Foundation
25 -# Distributed under the terms of the GNU General Public License v2
26 -# $Id$
27 -
28 -EAPI=5
29 -
30 -inherit multilib user flag-o-matic eutils pam toolchain-funcs autotools systemd versionator
31 -
32 -DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD"
33 -HOMEPAGE="http://www.opensmtpd.org/"
34 -MY_P="${P}"
35 -if [ $(get_last_version_component_index) -eq 4 ]; then
36 - MY_P="${PN}-$(get_version_component_range 4-)"
37 -fi
38 -SRC_URI="https://www.opensmtpd.org/archives/${MY_P/_}.tar.gz"
39 -
40 -LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
41 -SLOT="0"
42 -KEYWORDS="amd64 x86"
43 -IUSE="pam +mta"
44 -
45 -DEPEND="dev-libs/openssl:0
46 - sys-libs/zlib
47 - pam? ( virtual/pam )
48 - sys-libs/db:=
49 - dev-libs/libevent
50 - app-misc/ca-certificates
51 - net-mail/mailbase
52 - net-libs/libasr
53 - !mail-mta/courier
54 - !mail-mta/esmtp
55 - !mail-mta/exim
56 - !mail-mta/mini-qmail
57 - !mail-mta/msmtp[mta]
58 - !mail-mta/netqmail
59 - !mail-mta/nullmailer
60 - !mail-mta/postfix
61 - !mail-mta/qmail-ldap
62 - !mail-mta/sendmail
63 - !mail-mta/ssmtp[mta]
64 -"
65 -RDEPEND="${DEPEND}"
66 -
67 -S=${WORKDIR}/${MY_P/_}
68 -
69 -src_prepare() {
70 - # Use /run instead of /var/run
71 - sed -i -e '/pidfile_path/s:_PATH_VARRUN:"/run/":' openbsd-compat/pidfile.c || die
72 - epatch_user
73 - eautoreconf
74 -}
75 -
76 -src_configure() {
77 - tc-export AR
78 - AR="$(which "$AR")" econf \
79 - --with-table-db \
80 - --with-user-smtpd=smtpd \
81 - --with-user-queue=smtpq \
82 - --with-group-queue=smtpq \
83 - --with-path-socket=/run \
84 - --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \
85 - --sysconfdir=/etc/opensmtpd \
86 - $(use_with pam auth-pam)
87 -}
88 -
89 -src_install() {
90 - default
91 - newinitd "${FILESDIR}"/smtpd.initd smtpd
92 - systemd_dounit "${FILESDIR}"/smtpd.{service,socket}
93 - use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd
94 - dosym /usr/sbin/smtpctl /usr/sbin/makemap
95 - dosym /usr/sbin/smtpctl /usr/sbin/newaliases
96 - if use mta ; then
97 - dodir /usr/sbin
98 - dosym /usr/sbin/smtpctl /usr/sbin/sendmail
99 - dosym /usr/sbin/smtpctl /usr/bin/sendmail
100 - dosym /usr/sbin/smtpctl /usr/$(get_libdir)/sendmail
101 - fi
102 -}
103 -
104 -pkg_preinst() {
105 - enewgroup smtpd 25
106 - enewuser smtpd 25 -1 /var/empty smtpd
107 - enewgroup smtpq 252
108 - enewuser smtpq 252 -1 /var/empty smtpq
109 -}
110 -
111 -pkg_postinst() {
112 - einfo
113 - einfo "Plugins for SQLite, MySQL, PostgreSQL, LDAP, socketmaps,"
114 - einfo "Redis, and many other useful addons and filters are"
115 - einfo "available in the mail-filter/opensmtpd-extras package."
116 - einfo
117 -}
118
119 diff --git a/mail-mta/opensmtpd/opensmtpd-5.9.2_p1-r2.ebuild b/mail-mta/opensmtpd/opensmtpd-5.9.2_p1-r2.ebuild
120 deleted file mode 100644
121 index 9999795..00000000
122 --- a/mail-mta/opensmtpd/opensmtpd-5.9.2_p1-r2.ebuild
123 +++ /dev/null
124 @@ -1,95 +0,0 @@
125 -# Copyright 1999-2016 Gentoo Foundation
126 -# Distributed under the terms of the GNU General Public License v2
127 -# $Id$
128 -
129 -EAPI=5
130 -
131 -inherit multilib user flag-o-matic eutils pam toolchain-funcs autotools systemd versionator
132 -
133 -DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD"
134 -HOMEPAGE="http://www.opensmtpd.org/"
135 -MY_P="${P}"
136 -if [ $(get_last_version_component_index) -eq 4 ]; then
137 - MY_P="${PN}-$(get_version_component_range 4-)"
138 -fi
139 -SRC_URI="https://www.opensmtpd.org/archives/${MY_P/_}.tar.gz"
140 -
141 -LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
142 -SLOT="0"
143 -KEYWORDS="~amd64 ~x86"
144 -IUSE="libressl pam +mta"
145 -
146 -DEPEND="!libressl? ( dev-libs/openssl:0 )
147 - libressl? ( dev-libs/libressl )
148 - sys-libs/zlib
149 - pam? ( virtual/pam )
150 - sys-libs/db:=
151 - dev-libs/libevent
152 - app-misc/ca-certificates
153 - net-mail/mailbase
154 - net-libs/libasr
155 - !mail-mta/courier
156 - !mail-mta/esmtp
157 - !mail-mta/exim
158 - !mail-mta/mini-qmail
159 - !mail-mta/msmtp[mta]
160 - !mail-mta/netqmail
161 - !mail-mta/nullmailer
162 - !mail-mta/postfix
163 - !mail-mta/qmail-ldap
164 - !mail-mta/sendmail
165 - !mail-mta/ssmtp[mta]
166 -"
167 -RDEPEND="${DEPEND}"
168 -
169 -S=${WORKDIR}/${MY_P/_}
170 -
171 -src_prepare() {
172 - # Use /run instead of /var/run
173 - sed -i -e '/pidfile_path/s:_PATH_VARRUN:"/run/":' openbsd-compat/pidfile.c || die
174 - epatch_user
175 - eautoreconf
176 -}
177 -
178 -src_configure() {
179 - tc-export AR
180 - AR="$(which "$AR")" econf \
181 - --with-table-db \
182 - --with-user-smtpd=smtpd \
183 - --with-user-queue=smtpq \
184 - --with-group-queue=smtpq \
185 - --with-path-socket=/run \
186 - --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \
187 - --sysconfdir=/etc/opensmtpd \
188 - $(use_with pam auth-pam)
189 -}
190 -
191 -src_install() {
192 - default
193 - newinitd "${FILESDIR}"/smtpd.initd smtpd
194 - systemd_dounit "${FILESDIR}"/smtpd.{service,socket}
195 - use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd
196 - dosym /usr/sbin/smtpctl /usr/sbin/makemap
197 - dosym /usr/sbin/smtpctl /usr/sbin/newaliases
198 - if use mta ; then
199 - dodir /usr/sbin
200 - dosym /usr/sbin/smtpctl /usr/sbin/sendmail
201 - dosym /usr/sbin/smtpctl /usr/bin/sendmail
202 - dosym /usr/sbin/smtpctl /usr/$(get_libdir)/sendmail
203 - fi
204 -}
205 -
206 -pkg_preinst() {
207 - enewgroup smtpd 25
208 - enewuser smtpd 25 -1 /var/empty smtpd
209 - enewgroup smtpq 252
210 - enewuser smtpq 252 -1 /var/empty smtpq
211 -}
212 -
213 -pkg_postinst() {
214 - einfo
215 - einfo "Plugins for SQLite, MySQL, PostgreSQL, LDAP, socketmaps,"
216 - einfo "Redis, and many other useful addons and filters are"
217 - einfo "available in the mail-filter/opensmtpd-extras package."
218 - einfo
219 -}
220
221 diff --git a/mail-mta/opensmtpd/opensmtpd-5.9.2.201607021504_p1-r1.ebuild b/mail-mta/opensmtpd/opensmtpd-6.0.2_p1-r1.ebuild
222 similarity index 100%
223 rename from mail-mta/opensmtpd/opensmtpd-5.9.2.201607021504_p1-r1.ebuild
224 rename to mail-mta/opensmtpd/opensmtpd-6.0.2_p1-r1.ebuild
225
226 diff --git a/mail-mta/opensmtpd/opensmtpd-6.0.2_p1.ebuild b/mail-mta/opensmtpd/opensmtpd-6.0.2_p1.ebuild
227 index 9999795..eec682c 100644
228 --- a/mail-mta/opensmtpd/opensmtpd-6.0.2_p1.ebuild
229 +++ b/mail-mta/opensmtpd/opensmtpd-6.0.2_p1.ebuild
230 @@ -16,11 +16,10 @@ SRC_URI="https://www.opensmtpd.org/archives/${MY_P/_}.tar.gz"
231
232 LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
233 SLOT="0"
234 -KEYWORDS="~amd64 ~x86"
235 -IUSE="libressl pam +mta"
236 +KEYWORDS="amd64 x86"
237 +IUSE="pam +mta"
238
239 -DEPEND="!libressl? ( dev-libs/openssl:0 )
240 - libressl? ( dev-libs/libressl )
241 +DEPEND="dev-libs/openssl:0
242 sys-libs/zlib
243 pam? ( virtual/pam )
244 sys-libs/db:=