From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6F6A315800A for ; Sat, 26 Aug 2023 14:22:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 936362BC1AA; Sat, 26 Aug 2023 14:22:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 775AA2BC1AA for ; Sat, 26 Aug 2023 14:22:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C792340D8C for ; Sat, 26 Aug 2023 14:22:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC7C01093 for ; Sat, 26 Aug 2023 14:22:30 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1693059668.1c72dffdc796b9aa428abc9e9d557f817f6f9baa.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/opensmtpd/files/, mail-mta/opensmtpd/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-mta/opensmtpd/Manifest mail-mta/opensmtpd/files/smtpd-r1.service mail-mta/opensmtpd/opensmtpd-7.3.0_p1.ebuild X-VCS-Directories: mail-mta/opensmtpd/ mail-mta/opensmtpd/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 1c72dffdc796b9aa428abc9e9d557f817f6f9baa X-VCS-Branch: master Date: Sat, 26 Aug 2023 14:22:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d96a0231-382e-46ad-86f4-9e8c3a65b77f X-Archives-Hash: 3cf636d4cd6d7c8f8f5f3137d81e42fa commit: 1c72dffdc796b9aa428abc9e9d557f817f6f9baa Author: David Seifert gentoo org> AuthorDate: Sat Aug 26 14:21:08 2023 +0000 Commit: David Seifert gentoo org> CommitDate: Sat Aug 26 14:21:08 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c72dffd mail-mta/opensmtpd: add 7.3.0_p1 Bug: https://bugs.gentoo.org/779076 Bug: https://bugs.gentoo.org/881701 Bug: https://bugs.gentoo.org/899788 Bug: https://bugs.gentoo.org/908836 Signed-off-by: David Seifert gentoo.org> mail-mta/opensmtpd/Manifest | 1 + mail-mta/opensmtpd/files/smtpd-r1.service | 11 ++++ mail-mta/opensmtpd/opensmtpd-7.3.0_p1.ebuild | 91 ++++++++++++++++++++++++++++ 3 files changed, 103 insertions(+) diff --git a/mail-mta/opensmtpd/Manifest b/mail-mta/opensmtpd/Manifest index f7a170bf9339..2b92b99ea427 100644 --- a/mail-mta/opensmtpd/Manifest +++ b/mail-mta/opensmtpd/Manifest @@ -1 +1,2 @@ DIST opensmtpd-6.8.0p2.tar.gz 860189 BLAKE2B 603e8516860eddefb1694ea4cb5631cec2df2a19fa3193b25388caf73c41e82d44e57847fc95b5187488cae629542e72ff2d5a17badc15cef1647bdb173d7827 SHA512 48f152b75575146fdd09bdf47123041ea62fefb6e5de33a69826bf91a2126a918f8db1caffadb2f142a1a21de8126d492de88cb65bdf169e61c0b22d3e78d290 +DIST opensmtpd-7.3.0p1.tar.gz 849026 BLAKE2B bdb83468df12af2a2b39664a4408acfaf0cd81551074fb3823f7eb1b0d30ce79d812876fcea2ff940ddaac8b1a96700e1f4d2c275beab106fed010b733cff5c2 SHA512 2106de43e4b7435e49df759570ec758672ca8271dc451e30a261c250b41908b6ffe28e571a5f52e2ac14f59af132d1df45b272f8fcafeab04fcfb6bd5db970bb diff --git a/mail-mta/opensmtpd/files/smtpd-r1.service b/mail-mta/opensmtpd/files/smtpd-r1.service new file mode 100644 index 000000000000..fccd88f31472 --- /dev/null +++ b/mail-mta/opensmtpd/files/smtpd-r1.service @@ -0,0 +1,11 @@ +[Unit] +Description=OpenSMTPD +After=network.target + +[Service] +Type=forking +ExecStart=/usr/sbin/smtpd +PIDFile=/run/smtpd.pid + +[Install] +WantedBy=multi-user.target diff --git a/mail-mta/opensmtpd/opensmtpd-7.3.0_p1.ebuild b/mail-mta/opensmtpd/opensmtpd-7.3.0_p1.ebuild new file mode 100644 index 000000000000..25cf7cb2f25c --- /dev/null +++ b/mail-mta/opensmtpd/opensmtpd-7.3.0_p1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools pam systemd + +DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD" +HOMEPAGE="https://www.opensmtpd.org" +SRC_URI="https://www.opensmtpd.org/archives/${P/_}.tar.gz" +S="${WORKDIR}/${P/_}" + +LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +IUSE="berkdb +mta pam split-usr" + +RDEPEND=" + acct-user/smtpd + acct-user/smtpq + app-misc/ca-certificates + dev-libs/libbsd + dev-libs/libevent:= + dev-libs/openssl:= + net-libs/libasr + net-mail/mailbase + sys-libs/zlib + virtual/libcrypt:= + berkdb? ( sys-libs/db:= ) + elibc_musl? ( sys-libs/fts-standalone ) + pam? ( sys-libs/pam ) + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/msmtp[mta] + !mail-mta/netqmail + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/sendmail + !mail-mta/ssmtp[mta] +" +DEPEND="${RDEPEND}" +BDEPEND="app-alternatives/yacc" + +QA_CONFIG_IMPL_DECL_SKIP=( + # LibreSSL link check + SSLeay_add_all_algorithms +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --sysconfdir="${EPREFIX}"/etc/smtpd \ + --with-path-mbox="${EPREFIX}"/var/spool/mail \ + --with-path-empty="${EPREFIX}"/var/empty \ + --with-path-socket=/run \ + --with-path-CAfile="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \ + --with-user-smtpd=smtpd \ + --with-user-queue=smtpq \ + --with-group-queue=smtpq \ + --with-libevent="${EPREFIX}"/usr/$(get_libdir) \ + --with-libssl="${EPREFIX}"/usr/$(get_libdir) \ + $(use_with pam auth-pam) \ + $(use_with berkdb table-db) +} + +src_install() { + default + + newinitd "${FILESDIR}"/smtpd.initd smtpd + systemd_newunit "${FILESDIR}"/smtpd-r1.service smtpd.service + + use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd + + dosym smtpctl /usr/sbin/makemap + dosym smtpctl /usr/sbin/newaliases + + if use mta ; then + dodir /usr/sbin + dosym smtpctl /usr/sbin/sendmail + # on USE="-split-usr" system sbin and bin are merged + # so symlink made above will collide with one below + use split-usr && dosym ../sbin/smtpctl /usr/bin/sendmail + dodir /usr/$(get_libdir) + dosym -r /usr/sbin/smtpctl /usr/$(get_libdir)/sendmail + fi +}