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 84BB6158451 for ; Sat, 13 Jan 2024 07:49:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD233E29F8; Sat, 13 Jan 2024 07:49:20 +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 9BD35E29F8 for ; Sat, 13 Jan 2024 07:49:20 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D4CA63430F4 for ; Sat, 13 Jan 2024 07:49:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4D11C12C8 for ; Sat, 13 Jan 2024 07:49:18 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1705132154.38ee07889aaf2479e8b91ef1d51cf2b4f8aace83.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/opensmtpd/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-mta/opensmtpd/Manifest mail-mta/opensmtpd/metadata.xml mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild X-VCS-Directories: mail-mta/opensmtpd/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 38ee07889aaf2479e8b91ef1d51cf2b4f8aace83 X-VCS-Branch: master Date: Sat, 13 Jan 2024 07:49:18 +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: bdc8e5cf-3b60-4ff0-b567-c1cfed173767 X-Archives-Hash: 14a56b4e6e5bef9079de16989764c9a9 commit: 38ee07889aaf2479e8b91ef1d51cf2b4f8aace83 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Wed Nov 8 19:19:16 2023 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sat Jan 13 07:49:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38ee0788 mail-mta/opensmtpd: add 7.4.0_p1 * Add "virtual/pkgconfig" dependency * Add ${EPREFIX} to --with-path-queue * Add signature verification * Add slot binding operator on "sys-libs/zlib" * Install "CHANGES.md" doc * Move blockers, users and runtime files to RDEPEND * Remove "eautoreconf" call * Remove net-libs/libasr dependency (bundled now) * Remove obsolete QA_CONFIG_IMPL_DECL_SKIP * Use "myeconfargs" array instead of escaping newlines Closes: https://bugs.gentoo.org/916993 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> Closes: https://github.com/gentoo/gentoo/pull/33729 Signed-off-by: Joonas Niilola gentoo.org> mail-mta/opensmtpd/Manifest | 2 + mail-mta/opensmtpd/metadata.xml | 1 + mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild | 111 +++++++++++++++++++++++++++ 3 files changed, 114 insertions(+) diff --git a/mail-mta/opensmtpd/Manifest b/mail-mta/opensmtpd/Manifest index 5c6919669ac9..61d5d4db2e77 100644 --- a/mail-mta/opensmtpd/Manifest +++ b/mail-mta/opensmtpd/Manifest @@ -1 +1,3 @@ DIST opensmtpd-7.3.0p1.tar.gz 849026 BLAKE2B bdb83468df12af2a2b39664a4408acfaf0cd81551074fb3823f7eb1b0d30ce79d812876fcea2ff940ddaac8b1a96700e1f4d2c275beab106fed010b733cff5c2 SHA512 2106de43e4b7435e49df759570ec758672ca8271dc451e30a261c250b41908b6ffe28e571a5f52e2ac14f59af132d1df45b272f8fcafeab04fcfb6bd5db970bb +DIST opensmtpd-7.4.0p1.sum.sig 256 BLAKE2B 312bf5913f7da5178dc6442fa1aa01334a4323252ba6441ba4bf65904f2609332f0da850174306ae7ec8bba6c93a667151c11e2fea84bca4585f402f6ba1d823 SHA512 f7126a1ddc47775d9cf460b2f71267721ee543bdf9f42b712eb22579cf929a07515657551f4e94834b6727c8692d018193e97668749766765a147a0a192016fb +DIST opensmtpd-7.4.0p1.tar.gz 908307 BLAKE2B f3e919b248da1d10d4ffe3073a19f3239ee3db7f58278103a52b50900c4a5b460d27e97ec974ad504cbe758f0a60f8cf2f58b238190e156d60a61b1a4476bc3e SHA512 23aad112ed8f45547e808592823ba8818d8b0ac6ca82d9f83ee33c4a61cfa6326488e10b6beaa3c9e40030eb680478f485b552c15c4ae2835c7a71af509ce94f diff --git a/mail-mta/opensmtpd/metadata.xml b/mail-mta/opensmtpd/metadata.xml index d784c6148ce9..4c7bd6f8a321 100644 --- a/mail-mta/opensmtpd/metadata.xml +++ b/mail-mta/opensmtpd/metadata.xml @@ -10,5 +10,6 @@ OpenSMTPD/OpenSMTPD + mailto:bugs@opensmtpd.org diff --git a/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild b/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild new file mode 100644 index 000000000000..f57fee2e4f3c --- /dev/null +++ b/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_METHOD="signify" +inherit pam systemd verify-sig + +DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD" +HOMEPAGE="https://www.opensmtpd.org" +SRC_URI=" + https://www.opensmtpd.org/archives/${P/_}.tar.gz + verify-sig? ( https://www.opensmtpd.org/archives/${P/_}.sum.sig ) +" +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" + +DEPEND=" + dev-libs/libbsd + dev-libs/libevent:= + dev-libs/openssl:= + sys-libs/zlib:= + virtual/libcrypt:= + berkdb? ( sys-libs/db:= ) + elibc_musl? ( sys-libs/fts-standalone ) + pam? ( sys-libs/pam ) +" +RDEPEND="${DEPEND} + acct-user/smtpd + acct-user/smtpq + app-misc/ca-certificates + net-mail/mailbase + !mail-client/mailx-support + !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] +" +BDEPEND=" + app-alternatives/yacc + virtual/pkgconfig + verify-sig? ( sec-keys/signify-keys-opensmtpd ) +" + +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/signify-keys/${PN}.pub" + +QA_CONFIG_IMPL_DECL_SKIP=( closefrom ) + +DOCS=( {CHANGES,README}.md ) + +src_unpack() { + if use verify-sig; then + # Too many levels of symbolic links + cp "${DISTDIR}"/${P/_}.{sum.sig,tar.gz} "${WORKDIR}" || die + verify-sig_verify_signed_checksums \ + ${P/_}.sum.sig sha256 ${P/_}.tar.gz + fi + default +} + +src_configure() { + local myeconfargs=( + --sysconfdir="${EPREFIX}"/etc/smtpd + --with-path-CAfile="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt + --with-path-empty="${EPREFIX}"/var/empty + --with-path-mbox="${EPREFIX}"/var/spool/mail + --with-path-queue="${EPREFIX}"/var/spool/smtpd + --with-path-pidfile=/run + --with-path-socket=/run + --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 berkdb table-db) + $(use_with pam auth-pam) + ) + + econf "${myeconfargs[@]}" +} + +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 +}