diff options
author | Cédric Krier <cedk@gentoo.org> | 2024-11-17 12:10:02 +0100 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2024-11-17 12:10:32 +0100 |
commit | 748b56a4359a3edb64cc37b5ca69da4570bef9a0 (patch) | |
tree | bd78d2f34639005fc368568b2105d2fe3ed295ca /mail-mta | |
parent | www-client/chromium: update ppc64 handling in 133 (diff) | |
download | gentoo-748b56a4359a3edb64cc37b5ca69da4570bef9a0.tar.gz gentoo-748b56a4359a3edb64cc37b5ca69da4570bef9a0.tar.bz2 gentoo-748b56a4359a3edb64cc37b5ca69da4570bef9a0.zip |
mail-mta/opensmtpd: add 7.6.0_p1
Signed-off-by: Cédric Krier <cedk@gentoo.org>
Diffstat (limited to 'mail-mta')
-rw-r--r-- | mail-mta/opensmtpd/Manifest | 2 | ||||
-rw-r--r-- | mail-mta/opensmtpd/metadata.xml | 4 | ||||
-rw-r--r-- | mail-mta/opensmtpd/opensmtpd-7.6.0_p1.ebuild | 112 |
3 files changed, 117 insertions, 1 deletions
diff --git a/mail-mta/opensmtpd/Manifest b/mail-mta/opensmtpd/Manifest index 873e3f73a2cb..44bfcb7e61e5 100644 --- a/mail-mta/opensmtpd/Manifest +++ b/mail-mta/opensmtpd/Manifest @@ -3,3 +3,5 @@ DIST opensmtpd-7.4.0p1.sum.sig 256 BLAKE2B 312bf5913f7da5178dc6442fa1aa01334a432 DIST opensmtpd-7.4.0p1.tar.gz 908307 BLAKE2B f3e919b248da1d10d4ffe3073a19f3239ee3db7f58278103a52b50900c4a5b460d27e97ec974ad504cbe758f0a60f8cf2f58b238190e156d60a61b1a4476bc3e SHA512 23aad112ed8f45547e808592823ba8818d8b0ac6ca82d9f83ee33c4a61cfa6326488e10b6beaa3c9e40030eb680478f485b552c15c4ae2835c7a71af509ce94f DIST opensmtpd-7.5.0p0.sum.sig 256 BLAKE2B 535753841c0bb6201a6dcc7c1659436fa25270ed2b0066b97b4e8e8934c5bc131c51e5337ef97c33661c3086071be92ccc31cdf6cf3a774caa34f62e701d7b53 SHA512 78075cc0170cbbf9367cde1201aaa34c3a86e023b3d4f1f79ffc28bfe90bcb74236b48e2242e3076294b1cb9133b9ecd720c10011b7508a9cc67cb9221d911cd DIST opensmtpd-7.5.0p0.tar.gz 926333 BLAKE2B 25c5786f423bd3efeae0b00de56ae1737e53b2206c179ba7650012ba7eaaefbfec8d942a3eba43d3b56e83616d8adb7e808f0ff35cb93e64439790f3f7045347 SHA512 1e4bf23e623d40732e4055a8db330b0dc69dbfbd4f3d89ef092ead3359aac4123f8a58feb61661be47d84c58e27d22c706dc308dfa245fa76f1d36ed2bb9a822 +DIST opensmtpd-7.6.0p1.sum.sig 256 BLAKE2B 8a15e253f22b3f653d5175b781fba83e1ca97c49d4b3a7b87d70adee46b4d8ce9eb7a8178b00770af8f647f9a2c466e331f4c99260bfcd3e06b60d9ee8d25a09 SHA512 20b6ac2df808ce17e058e8d10a8c30c73f51f723c570233cff9471707950a3c31edb01f00914bf085bac21a98d0d9f006c053a04bb53a9169532f4e800837593 +DIST opensmtpd-7.6.0p1.tar.gz 933649 BLAKE2B 15a392c411d19741963de6910f929c5528205a5d16ea3bb6bd8e4a1afa51f8f4b6ff541346c41d142e0a6d97b3817f67977988b33f5014c20084bdb251e64af7 SHA512 1e5ff894635f4b91a6b61aecafba588e58dda73cf17dc8595cd96120523e5efa479b5d888a363158f7e9cb73f15d5084f413cef1a6eb48f533c61cc350e0d328 diff --git a/mail-mta/opensmtpd/metadata.xml b/mail-mta/opensmtpd/metadata.xml index 4c7bd6f8a321..97a0308126a8 100644 --- a/mail-mta/opensmtpd/metadata.xml +++ b/mail-mta/opensmtpd/metadata.xml @@ -1,7 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person"> + <email>cedk@gentoo.org</email> + </maintainer> <longdescription lang="en"> 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. </longdescription> diff --git a/mail-mta/opensmtpd/opensmtpd-7.6.0_p1.ebuild b/mail-mta/opensmtpd/opensmtpd-7.6.0_p1.ebuild new file mode 100644 index 000000000000..9614979c4621 --- /dev/null +++ b/mail-mta/opensmtpd/opensmtpd-7.6.0_p1.ebuild @@ -0,0 +1,112 @@ +# 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="/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) + --with-libz=="${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 +} |