commit:     a44a1e60c944538a87c47df7363c71d5af8d9603
Author:     Rolf Eike Beer <eike <AT> sf-mail <DOT> de>
AuthorDate: Thu Feb 24 16:28:44 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 24 19:09:49 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a44a1e60

mail-mta/notqmail: use verify-sig.eclass

Signed-off-by: Rolf Eike Beer <eike <AT> sf-mail.de>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 mail-mta/notqmail/Manifest                |   1 +
 mail-mta/notqmail/notqmail-1.08-r6.ebuild | 201 ++++++++++++++++++++++++++++++
 2 files changed, 202 insertions(+)

diff --git a/mail-mta/notqmail/Manifest b/mail-mta/notqmail/Manifest
index 7944b1c3be37..80377f0a52f7 100644
--- a/mail-mta/notqmail/Manifest
+++ b/mail-mta/notqmail/Manifest
@@ -5,4 +5,5 @@ DIST notqmail-1.08-spp.patch 14304 BLAKE2B 
61cb1cf48e0af93d4928906fa115fe71df888
 DIST notqmail-1.08-tls-20200107.patch 50123 BLAKE2B 
94bbab86bd089c6ac032bfabc300eb89b367c239ae7a60256c417a2abfa583984e6273eae6df22d44b98dcefce4904f6db9625ff2a57f4b30a8fff8c629d374b
 SHA512 
bdccdf98024f811802504872b8e3f3ac3010c1f218a0ec79bb12e635c35bfa15471c2b7e499c14e6bec9b5d3e48f1e584e26ba2ca01f1ce73a347a338de2a304
 DIST notqmail-1.08-tls-spp.patch 64223 BLAKE2B 
d2337017dacd41d975a9ebd4650cce58425c3c6e1ebfaaaf29a222a532cfd246fec16f52997e85eb921ad376235eb69a8580ba8df493bf760f3d8237311411c0
 SHA512 
012cdc62c2361737fb984e750a28bd06f357aefd9fa8d909e2e380e65fc5ae3a2cbef3f592eb60455ad858385dbf8e8b50a2f6358a9ffa3f885aa76250a336a0
 DIST notqmail-1.08.tar.xz 179500 BLAKE2B 
6c774037b257849aea65e7761a6f6c9918079faa490c0ed027d73a8b32de5d5907a54a59162b9b68479229c4b92a23fe28cd2f334123cfe674a94502b90a3635
 SHA512 
c18d09e28c2e580522eea144e5344e814811108b12f3272b4cf10ad58d9d3d8e666616dcfea2f369e226b68db4fe8cf67cbae994b242d36e9e07c289a0539394
+DIST notqmail-1.08.tar.xz.sig 195 BLAKE2B 
0edf3758d24c22e69139a57804b5b39da6c5868c178af511ff5105cd45bf105f5bb903d94093d400c54126e359a259f32d8c8b25c2fb87233efd74fdb05593c1
 SHA512 
2d5e68d1f3d7330b8b58f54235ec22a94adc0811e23f4863fac806c7a3e0110e6388920c3089c68fa3bb438398d64ea6e37240d002225b1cab20460797487604
 DIST qmail-103.patch 2104 BLAKE2B 
23721b3331c719f3b6deca8b2603bf824b66068d3901a84dda9edbe33b506d0c2b6e711364e2426d9e393453a54485f0286d4668f99cf6b9acabf10a5dc59b0a
 SHA512 
b81062bb0b0023f474c0b6af40601926e1c04ad395de480d114809e48a8060c06d99bdbdeb6f44d9e24ae1acedabb094b979193d305371aed958f18fc6eee354

diff --git a/mail-mta/notqmail/notqmail-1.08-r6.ebuild 
b/mail-mta/notqmail/notqmail-1.08-r6.ebuild
new file mode 100644
index 000000000000..2150b53a5175
--- /dev/null
+++ b/mail-mta/notqmail/notqmail-1.08-r6.ebuild
@@ -0,0 +1,201 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+GENQMAIL_PV=20200817
+QMAIL_SPP_PV=0.42
+
+QMAIL_TLS_PV=20200107
+QMAIL_TLS_F=notqmail-1.08-tls-${QMAIL_TLS_PV}.patch
+
+QMAIL_BIGTODO_F=notqmail-1.08-big-todo.patch
+
+QMAIL_LARGE_DNS="qmail-103.patch"
+
+inherit qmail systemd verify-sig
+
+if [[ ${PV} == "9999" ]] ; then
+       EGIT_REPO_URI="https://github.com/notqmail/notqmail.git";
+       inherit git-r3
+else
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 
~sparc ~x86"
+       SRC_URI="
+               
https://github.com/notqmail/notqmail/releases/download/${P}/${P}.tar.xz
+               verify-sig? (
+                       
https://github.com/notqmail/notqmail/releases/download/${P}/${P}.tar.xz.sig
+               )
+       "
+fi
+
+DESCRIPTION="Collaborative open-source successor to qmail"
+HOMEPAGE="
+       https://notqmail.org
+       https://cr.yp.to/qmail.html
+       http://qmail.org
+"
+SRC_URI="${SRC_URI}
+       
https://github.com/DerDakon/genqmail/releases/download/genqmail-${GENQMAIL_PV}/${GENQMAIL_F}
+       https://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS}
+       !vanilla? (
+               highvolume? (
+                       
https://github.com/notqmail/notqmail/commit/3a22b45974ddd1230da0dfa21f886c3401bee020.patch
 -> ${QMAIL_BIGTODO_F}
+               )
+               qmail-spp? (
+                       ssl? (
+                               
https://github.com/notqmail/notqmail/commit/c467ba6880aaecfe1d3f592a7738de88cb5ac79a.patch
 -> ${PN}-1.08-auth.patch
+                               
https://github.com/notqmail/notqmail/commit/d950cc34491afe90432cafcaeda61d1c1a9508e9.patch
 -> ${PN}-1.08-tls-spp.patch
+                       )
+                       !ssl? (
+                               
https://github.com/notqmail/notqmail/commit/b36d52a0dd7315a969f2a9a7455717466e45be23.patch
 -> ${PN}-1.08-spp.patch
+                       )
+               )
+               ssl? (
+                       
https://github.com/notqmail/notqmail/commit/0dc6a3aa9cb3440fe589ca5384ea27d683f05625.patch
 -> ${QMAIL_TLS_F}
+               )
+               !ssl? (
+                       
https://github.com/notqmail/notqmail/commit/c467ba6880aaecfe1d3f592a7738de88cb5ac79a.patch
 -> ${PN}-1.08-auth.patch
+               )
+       )
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/notqmail.asc
+
+LICENSE="public-domain"
+SLOT="0"
+IUSE="authcram gencertdaily highvolume pop3 qmail-spp ssl test vanilla 
verify-sig"
+REQUIRED_USE="vanilla? ( !ssl !qmail-spp !highvolume !authcram !gencertdaily ) 
gencertdaily? ( ssl )"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       verify-sig? ( sec-keys/openpgp-keys-notqmail )
+"
+DEPEND="
+       net-dns/libidn2
+       net-mail/queue-repair
+       sys-apps/gentoo-functions
+       ssl? ( >=dev-libs/openssl-1.1:0= )
+       test? ( dev-libs/check )
+"
+RDEPEND="${DEPEND}
+       acct-group/nofiles
+       acct-group/qmail
+       acct-user/alias
+       acct-user/qmaild
+       acct-user/qmaill
+       acct-user/qmailp
+       acct-user/qmailq
+       acct-user/qmailr
+       acct-user/qmails
+       sys-apps/ucspi-tcp
+       authcram? ( >=net-mail/cmd5checkpw-0.30 )
+       ssl? (
+               pop3? ( sys-apps/ucspi-ssl )
+       )
+       !mail-mta/courier
+       !mail-mta/esmtp
+       !mail-mta/exim
+       !mail-mta/msmtp[mta]
+       !mail-mta/nullmailer
+       !mail-mta/opensmtpd
+       !mail-mta/postfix
+       !mail-mta/qmail-ldap
+       !mail-mta/netqmail
+       !mail-mta/sendmail
+       !mail-mta/ssmtp[mta]
+"
+PDEPEND="
+       virtual/daemontools
+"
+
+src_unpack() {
+       genqmail_src_unpack
+
+       [[ ${PV} == "9999" ]] && git-r3_src_unpack
+       if [[ ${PV} != "9999" ]]; then
+               default
+               if use verify-sig; then
+                       verify-sig_verify_detached 
"${DISTDIR}"/${P}.tar.xz{,.sig}
+               fi
+       fi
+}
+
+PATCHES=(
+       "${DISTDIR}/${QMAIL_LARGE_DNS}"
+)
+
+src_prepare() {
+       if ! use vanilla; then
+               if use qmail-spp; then
+                       PATCHES+=( "${DISTDIR}/${P}-auth.patch" )
+               elif use ssl; then
+                       PATCHES+=( "${DISTDIR}/${QMAIL_TLS_F}" )
+               else
+                       PATCHES+=( "${DISTDIR}/${P}-auth.patch" )
+               fi
+               use highvolume && PATCHES+=( "${DISTDIR}/${QMAIL_BIGTODO_F}" )
+
+               if use qmail-spp; then
+                       if use ssl; then
+                               PATCHES+=( 
"${DISTDIR}/${PN}-1.08-tls-spp.patch" )
+                       else
+                               PATCHES+=( "${DISTDIR}/${PN}-1.08-spp.patch" )
+                       fi
+               fi
+       fi
+
+       default
+
+       qmail_src_postunpack
+
+       if ! use authcram; then
+               einfo "Disabled CRAM_MD5 support"
+               sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c || 
die
+       else
+               einfo "Enabled CRAM_MD5 support"
+       fi
+
+       ht_fix_file Makefile*
+}
+
+src_compile() {
+       qmail_src_compile NROFF=true
+       emake qmail-send.service
+       use qmail-spp && qmail_spp_src_compile
+}
+
+src_install() {
+       qmail_src_install
+       systemd_dounit "${S}"/qmail-send.service
+}
+
+src_test() {
+       emake test
+}
+
+pkg_postinst() {
+       qmail_queue_setup
+       qmail_rootmail_fixup
+       qmail_tcprules_build
+
+       qmail_config_notice
+       qmail_supervise_config_notice
+       elog
+       elog "If you are looking for documentation, check those links:"
+       elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail";
+       elog "  -- qmail/vpopmail Virtual Mail Hosting System Guide"
+       elog "http://www.lifewithqmail.com/";
+       elog "  -- Life with qmail"
+       elog
+}
+
+pkg_config() {
+       # avoid some weird locale problems
+       export LC_ALL=C
+
+       qmail_config_fast
+       qmail_tcprules_config
+       qmail_tcprules_build
+
+       use ssl && qmail_ssl_generate
+}

Reply via email to