logo

overlay

My (experimental) gentoo overlay
commit: d7a70310f0dddf7da9408ef73e48f1fba6527f6a
parent: 2248edbb24e8bd04e7d9dae306d69cdae11973c7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 22 Feb 2019 03:06:11 +0100

mail-mta/opensmtpd: Bump to 6.4.1_p2

Diffstat:

Mmail-mta/opensmtpd/Manifest1+
Amail-mta/opensmtpd/opensmtpd-6.4.1_p2.ebuild107+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 108 insertions(+), 0 deletions(-)

diff --git a/mail-mta/opensmtpd/Manifest b/mail-mta/opensmtpd/Manifest @@ -1,2 +1,3 @@ DIST opensmtpd-6.0.3p1.tar.gz 699702 BLAKE2B 49f08e8329adc049a562b6ef7efa4c0a39cbcfe8a158cb905cfc726a7302ffe9833ccfb52041340767d55d0f2ae2087e8eac92b7359016c6c76b4d963a334558 SHA512 e579818a0ddbe637deb5a4e40f43eaf797783903ceac18fd89a57581b135b9e407d424e1a70ff7b4b06a0ee50bafb6e8ab2451371917887904b06ff1b55d320f DIST opensmtpd-6.4.0p2.tar.gz 718614 BLAKE2B 183c41a2916436179390d7da554cb81c28a4f09e8e29e7456bcf02762c5bc8025b930da82650f68e01d9351ab3bac4d0c595c950416593ba91295b9299aacd67 SHA512 9b564275aff8c991081f1d9e40c30031d9cec126d7d7d50adf3451fd3bbdcb3700467c03a445d68fb329991eb6336ccb59758a6da8146906707aa6da107b45dc +DIST opensmtpd-6.4.1p2.tar.gz 718862 BLAKE2B 76ca5a41c2badaf06ffe3012d0ff74b4ad482b17656a4f5af5201534eabf9716432e8a6b4c8e6f23e4c2b9e0991a82d9775313657c423c67684a6ba4164f00a6 SHA512 0faba88130af82a9b341fbad15c9a6f851ed4accab1e4f1ef3efc04847765053b47d0725746666ee7bbc571455e2363ea2ba3d0b9c378fc9f1766346859dccf5 diff --git a/mail-mta/opensmtpd/opensmtpd-6.4.1_p2.ebuild b/mail-mta/opensmtpd/opensmtpd-6.4.1_p2.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2018 Gentoo Foundation +# Copyright 2018-2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib user flag-o-matic pam toolchain-funcs autotools systemd + +DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD" +HOMEPAGE="https://www.opensmtpd.org" +SRC_URI="https://www.opensmtpd.org/archives/${P/_}.tar.gz" + +LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" +SLOT="0" +KEYWORDS="~amd64" +IUSE="libressl pam mandoc +mta" + +DEPEND=" + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + sys-libs/zlib + pam? ( virtual/pam ) + elibc_musl? ( sys-libs/fts-standalone ) + mandoc? ( app-text/mandoc ) + 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}/${P/_} + +# PATCHES=( "${FILESDIR}/opensmtpd-6.4.0_p1_missing_object_file_smtpctl.patch" ) + +src_prepare() { + default + + # Use /run instead of /var/run + sed -i -e '/pidfile_path/s:_PATH_VARRUN:"/run/":' openbsd-compat/pidfile.c || die + sed -i -e 's;/usr/libexec/;/usr/libexec/opensmtpd/;g' smtpd/parse.y || die + + append-cflags "-ffunction-sections" + append-ldflags "-Wl,--gc-sections" + + 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 \ + --with-mantype=doc \ + $(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 +}