commit:     c5b8658d48ea4f0c605c1904244fb6e374e8c954
Author:     Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 12 11:55:37 2016 +0000
Commit:     Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Wed Oct 12 11:57:24 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5b8658d

mail-mta/opensmtpd: bump

Package-Manager: portage-2.3.2

 mail-mta/opensmtpd/Manifest                  |  1 +
 mail-mta/opensmtpd/opensmtpd-6.0.1_p1.ebuild | 95 ++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)

diff --git a/mail-mta/opensmtpd/Manifest b/mail-mta/opensmtpd/Manifest
index aa620d1..026806a 100644
--- a/mail-mta/opensmtpd/Manifest
+++ b/mail-mta/opensmtpd/Manifest
@@ -1,2 +1,3 @@
 DIST opensmtpd-201607021504p1.tar.gz 693317 SHA256 
8d858acc5395d3bc1267f2cf7e03639c8228e2cb7915e58b5708bee55deb9277 SHA512 
c42767cb9f6d0ec0ae646c4e89638e899eecc4ee5ae22c5628c240fb713fa265130a8604f6f42078ae97cb958d7ef4be82832fc861bed80d5b29873d6cadb94c
 WHIRLPOOL 
ef4f4f746bd003a76c3ae6d256a7b0df0662d031d844920ebf87473bdff5cf1617f1ef724086748347979efbe3772689a54fdf2f123c059d8bda7510e27ddd37
 DIST opensmtpd-5.9.2p1.tar.gz 681855 SHA256 
3522f273c1630c781facdb2b921228e338ed4e651909316735df775d6a70a71d SHA512 
99ca15101557848aa6d642f0c0171b152d805192e6839a97410b19431c981a21a5c0dc011e2c8cd91f3e6f6acb37a77f0f4c8e68114bf9808240392fe2b5d375
 WHIRLPOOL 
4d50474eb9f845633d152c065a0e70f3d41fba97134b33d3eb5164d39bdc58eeb4133b2f951a1815143a468144fb631f5f0b2960f57e7ba18a65321413fb5b6f
+DIST opensmtpd-6.0.1p1.tar.gz 695482 SHA256 
4cd61cd2d668715570896338c81d71eb64e6f90b3f88c5639b378db7b1af864a SHA512 
4c28e60da9145691ea01ac164857e424d3ffb0633007d61cfbcdf919ebd5827d7bac9241a506903d618eb401957d8633e96886d4795257360a5192d780dafa1d
 WHIRLPOOL 
67bdd2f79457f57c81ec9df6059d8700e9564797f9f2e17202a9407451ba91bb8bfebfb71a4dc8d6ce1d9d6cd4dafd2382763a142e4b7c2665a8b8e8b077a1be

diff --git a/mail-mta/opensmtpd/opensmtpd-6.0.1_p1.ebuild 
b/mail-mta/opensmtpd/opensmtpd-6.0.1_p1.ebuild
new file mode 100644
index 00000000..9999795
--- /dev/null
+++ b/mail-mta/opensmtpd/opensmtpd-6.0.1_p1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib user flag-o-matic eutils pam toolchain-funcs autotools 
systemd versionator
+
+DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD"
+HOMEPAGE="http://www.opensmtpd.org/";
+MY_P="${P}"
+if [ $(get_last_version_component_index) -eq 4 ]; then
+       MY_P="${PN}-$(get_version_component_range 4-)"
+fi
+SRC_URI="https://www.opensmtpd.org/archives/${MY_P/_}.tar.gz";
+
+LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="libressl pam +mta"
+
+DEPEND="!libressl? ( dev-libs/openssl:0 )
+               libressl? ( dev-libs/libressl )
+               sys-libs/zlib
+               pam? ( virtual/pam )
+               sys-libs/db:=
+               dev-libs/libevent
+               app-misc/ca-certificates
+               net-mail/mailbase
+               net-libs/libasr
+               !mail-mta/courier
+               !mail-mta/esmtp
+               !mail-mta/exim
+               !mail-mta/mini-qmail
+               !mail-mta/msmtp[mta]
+               !mail-mta/netqmail
+               !mail-mta/nullmailer
+               !mail-mta/postfix
+               !mail-mta/qmail-ldap
+               !mail-mta/sendmail
+               !mail-mta/ssmtp[mta]
+"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P/_}
+
+src_prepare() {
+       # Use /run instead of /var/run
+       sed -i -e '/pidfile_path/s:_PATH_VARRUN:"/run/":' 
openbsd-compat/pidfile.c || die
+       epatch_user
+       eautoreconf
+}
+
+src_configure() {
+       tc-export AR
+       AR="$(which "$AR")" econf \
+               --with-table-db \
+               --with-user-smtpd=smtpd \
+               --with-user-queue=smtpq \
+               --with-group-queue=smtpq \
+               --with-path-socket=/run \
+               --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \
+               --sysconfdir=/etc/opensmtpd \
+               $(use_with pam auth-pam)
+}
+
+src_install() {
+       default
+       newinitd "${FILESDIR}"/smtpd.initd smtpd
+       systemd_dounit "${FILESDIR}"/smtpd.{service,socket}
+       use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd
+       dosym /usr/sbin/smtpctl /usr/sbin/makemap
+       dosym /usr/sbin/smtpctl /usr/sbin/newaliases
+       if use mta ; then
+               dodir /usr/sbin
+               dosym /usr/sbin/smtpctl /usr/sbin/sendmail
+               dosym /usr/sbin/smtpctl /usr/bin/sendmail
+               dosym /usr/sbin/smtpctl /usr/$(get_libdir)/sendmail
+       fi
+}
+
+pkg_preinst() {
+       enewgroup smtpd 25
+       enewuser smtpd 25 -1 /var/empty smtpd
+       enewgroup smtpq 252
+       enewuser smtpq 252 -1 /var/empty smtpq
+}
+
+pkg_postinst() {
+       einfo
+       einfo "Plugins for SQLite, MySQL, PostgreSQL, LDAP, socketmaps,"
+       einfo "Redis, and many other useful addons and filters are"
+       einfo "available in the mail-filter/opensmtpd-extras package."
+       einfo
+}

Reply via email to