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 99B7A15800F for ; Mon, 2 Jan 2023 19:38:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7F92E0864; Mon, 2 Jan 2023 19:38:36 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD0B7E0864 for ; Mon, 2 Jan 2023 19:38:36 +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 5331C340CCE for ; Mon, 2 Jan 2023 19:38:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 94C4672B for ; Mon, 2 Jan 2023 19:38:33 +0000 (UTC) From: "Quentin Retornaz" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Quentin Retornaz" Message-ID: <1672688281.d31152e9c9e88e679d24047b89653c82b14f056a.quentin@gentoo> Subject: [gentoo-commits] repo/proj/libressl:master commit in: mail-mta/opensmtpd/, mail-mta/opensmtpd/files/ X-VCS-Repository: repo/proj/libressl X-VCS-Files: mail-mta/opensmtpd/Manifest mail-mta/opensmtpd/files/smtpd.initd mail-mta/opensmtpd/files/smtpd.pam mail-mta/opensmtpd/files/smtpd.service mail-mta/opensmtpd/files/smtpd.socket mail-mta/opensmtpd/metadata.xml mail-mta/opensmtpd/opensmtpd-6.8.0_p2-r2.ebuild X-VCS-Directories: mail-mta/opensmtpd/files/ mail-mta/opensmtpd/ X-VCS-Committer: quentin X-VCS-Committer-Name: Quentin Retornaz X-VCS-Revision: d31152e9c9e88e679d24047b89653c82b14f056a X-VCS-Branch: master Date: Mon, 2 Jan 2023 19:38:33 +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: 7e4edb11-689b-48ab-8e12-7c00b913f009 X-Archives-Hash: eacdf5df5ea93db419bc9584f38fba84 commit: d31152e9c9e88e679d24047b89653c82b14f056a Author: Anna “CyberTailor” sysrq in> AuthorDate: Sun Jan 1 23:22:44 2023 +0000 Commit: Quentin Retornaz retornaz com> CommitDate: Mon Jan 2 19:38:01 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=d31152e9 mail-mta/opensmtpd: new package, add 6.8.0_p2-r2 Signed-off-by: Anna “CyberTailor” sysrq.in> Closes: https://github.com/gentoo/libressl/pull/486 Signed-off-by: Quentin Retornaz retornaz.com> mail-mta/opensmtpd/Manifest | 1 + mail-mta/opensmtpd/files/smtpd.initd | 11 ++++ mail-mta/opensmtpd/files/smtpd.pam | 4 ++ mail-mta/opensmtpd/files/smtpd.service | 10 ++++ mail-mta/opensmtpd/files/smtpd.socket | 8 +++ mail-mta/opensmtpd/metadata.xml | 17 ++++++ mail-mta/opensmtpd/opensmtpd-6.8.0_p2-r2.ebuild | 76 +++++++++++++++++++++++++ 7 files changed, 127 insertions(+) diff --git a/mail-mta/opensmtpd/Manifest b/mail-mta/opensmtpd/Manifest new file mode 100644 index 0000000..f7a170b --- /dev/null +++ b/mail-mta/opensmtpd/Manifest @@ -0,0 +1 @@ +DIST opensmtpd-6.8.0p2.tar.gz 860189 BLAKE2B 603e8516860eddefb1694ea4cb5631cec2df2a19fa3193b25388caf73c41e82d44e57847fc95b5187488cae629542e72ff2d5a17badc15cef1647bdb173d7827 SHA512 48f152b75575146fdd09bdf47123041ea62fefb6e5de33a69826bf91a2126a918f8db1caffadb2f142a1a21de8126d492de88cb65bdf169e61c0b22d3e78d290 diff --git a/mail-mta/opensmtpd/files/smtpd.initd b/mail-mta/opensmtpd/files/smtpd.initd new file mode 100644 index 0000000..cf205a8 --- /dev/null +++ b/mail-mta/opensmtpd/files/smtpd.initd @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command="smtpd" +pidfile="/run/smtpd.pid" +description="SMTP daemon from OpenBSD" + +depend() { + need net +} diff --git a/mail-mta/opensmtpd/files/smtpd.pam b/mail-mta/opensmtpd/files/smtpd.pam new file mode 100644 index 0000000..a85aeae --- /dev/null +++ b/mail-mta/opensmtpd/files/smtpd.pam @@ -0,0 +1,4 @@ +auth required pam_nologin.so +auth include system-auth +account include system-auth +session include system-auth diff --git a/mail-mta/opensmtpd/files/smtpd.service b/mail-mta/opensmtpd/files/smtpd.service new file mode 100644 index 0000000..fd2a650 --- /dev/null +++ b/mail-mta/opensmtpd/files/smtpd.service @@ -0,0 +1,10 @@ +[Unit] +Description=OpenSMTPD +After=network.target + +[Service] +Type=forking +ExecStart=/usr/sbin/smtpd + +[Install] +WantedBy=multi-user.target diff --git a/mail-mta/opensmtpd/files/smtpd.socket b/mail-mta/opensmtpd/files/smtpd.socket new file mode 100644 index 0000000..fb42f85 --- /dev/null +++ b/mail-mta/opensmtpd/files/smtpd.socket @@ -0,0 +1,8 @@ +[Unit] +Description=OpenSMTPD Socket + +[Socket] +ListenStream=/var/run/smtpd.sock + +[Install] +WantedBy=sockets.target diff --git a/mail-mta/opensmtpd/metadata.xml b/mail-mta/opensmtpd/metadata.xml new file mode 100644 index 0000000..12887d4 --- /dev/null +++ b/mail-mta/opensmtpd/metadata.xml @@ -0,0 +1,17 @@ + + + + + OpenSMTPD is an implementation of the server-side SMTP protocol as defined by RFC 5321, with some additional standard extensions. It allows ordinary machines to exchange e-mails with other systems speaking the SMTP protocol. + + + zx2c4@gentoo.org + Jason A. Donenfeld + + + Enable this to install as system-wide MTA + + + OpenSMTPD/OpenSMTPD + + diff --git a/mail-mta/opensmtpd/opensmtpd-6.8.0_p2-r2.ebuild b/mail-mta/opensmtpd/opensmtpd-6.8.0_p2-r2.ebuild new file mode 100644 index 0000000..c41cdef --- /dev/null +++ b/mail-mta/opensmtpd/opensmtpd-6.8.0_p2-r2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit 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" + +LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv x86" +IUSE="berkdb +mta pam split-usr" + +DEPEND=" + acct-user/smtpd + acct-user/smtpq + dev-libs/openssl:= + elibc_musl? ( sys-libs/fts-standalone ) + sys-libs/zlib + pam? ( sys-libs/pam ) + berkdb? ( sys-libs/db:= ) + dev-libs/libevent:= + app-misc/ca-certificates + net-mail/mailbase + net-libs/libasr + virtual/libcrypt:= + !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/_} + +src_configure() { + econf \ + --sysconfdir=/etc/smtpd \ + --with-path-mbox=/var/spool/mail \ + --with-path-empty=/var/empty \ + --with-path-socket=/run \ + --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \ + --with-user-smtpd=smtpd \ + --with-user-queue=smtpq \ + --with-group-queue=smtpq \ + $(use_with pam auth-pam) \ + $(use_with berkdb table-db) +} + +src_install() { + default + newinitd "${FILESDIR}"/smtpd.initd smtpd + systemd_dounit "${FILESDIR}"/smtpd.{service,socket} + 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 + mkdir -p "${ED}"/usr/$(get_libdir) || die + ln -s --relative "${ED}"/usr/sbin/smtpctl "${ED}"/usr/$(get_libdir)/sendmail || die + fi +}