summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2023-11-09 00:19:16 +0500
committerJoonas Niilola <juippis@gentoo.org>2024-01-13 09:49:14 +0200
commit38ee07889aaf2479e8b91ef1d51cf2b4f8aace83 (patch)
tree1057ccd2153221c1e29c7446553dd65ed93bf359 /mail-mta
parentsec-keys/signify-keys-opensmtpd: new package, add 20181026 (diff)
downloadgentoo-38ee07889aaf2479e8b91ef1d51cf2b4f8aace83.tar.gz
gentoo-38ee07889aaf2479e8b91ef1d51cf2b4f8aace83.tar.bz2
gentoo-38ee07889aaf2479e8b91ef1d51cf2b4f8aace83.zip
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 <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo/pull/33729 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/opensmtpd/Manifest2
-rw-r--r--mail-mta/opensmtpd/metadata.xml1
-rw-r--r--mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild111
3 files changed, 114 insertions, 0 deletions
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 @@
</use>
<upstream>
<remote-id type="github">OpenSMTPD/OpenSMTPD</remote-id>
+ <bugs-to>mailto:bugs@opensmtpd.org</bugs-to>
</upstream>
</pkgmetadata>
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
+}