diff options
-rw-r--r-- | mail-mta/opensmtpd/Manifest | 2 | ||||
-rw-r--r-- | mail-mta/opensmtpd/opensmtpd-7.5.0_p0.ebuild | 111 |
2 files changed, 113 insertions, 0 deletions
diff --git a/mail-mta/opensmtpd/Manifest b/mail-mta/opensmtpd/Manifest index 61d5d4db2e77..873e3f73a2cb 100644 --- a/mail-mta/opensmtpd/Manifest +++ b/mail-mta/opensmtpd/Manifest @@ -1,3 +1,5 @@ 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 +DIST opensmtpd-7.5.0p0.sum.sig 256 BLAKE2B 535753841c0bb6201a6dcc7c1659436fa25270ed2b0066b97b4e8e8934c5bc131c51e5337ef97c33661c3086071be92ccc31cdf6cf3a774caa34f62e701d7b53 SHA512 78075cc0170cbbf9367cde1201aaa34c3a86e023b3d4f1f79ffc28bfe90bcb74236b48e2242e3076294b1cb9133b9ecd720c10011b7508a9cc67cb9221d911cd +DIST opensmtpd-7.5.0p0.tar.gz 926333 BLAKE2B 25c5786f423bd3efeae0b00de56ae1737e53b2206c179ba7650012ba7eaaefbfec8d942a3eba43d3b56e83616d8adb7e808f0ff35cb93e64439790f3f7045347 SHA512 1e4bf23e623d40732e4055a8db330b0dc69dbfbd4f3d89ef092ead3359aac4123f8a58feb61661be47d84c58e27d22c706dc308dfa245fa76f1d36ed2bb9a822 diff --git a/mail-mta/opensmtpd/opensmtpd-7.5.0_p0.ebuild b/mail-mta/opensmtpd/opensmtpd-7.5.0_p0.ebuild new file mode 100644 index 000000000000..c5b98eddea63 --- /dev/null +++ b/mail-mta/opensmtpd/opensmtpd-7.5.0_p0.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="/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 +} |