commit: ec5c2e8dd121012aff3ce057bf84b0c404a80451 Author: Philippe Chaintreuil <gentoo_bugs_peep <AT> parallaxshift <DOT> com> AuthorDate: Mon Dec 26 13:53:56 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Dec 27 10:20:43 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec5c2e8d
mail-filter/spamassassin: Add verify-sig support to 4.0.0 Closes: https://github.com/gentoo/gentoo/pull/28828 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep <AT> parallaxshift.com> Signed-off-by: Sam James <sam <AT> gentoo.org> mail-filter/spamassassin/Manifest | 1 + mail-filter/spamassassin/spamassassin-4.0.0.ebuild | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/mail-filter/spamassassin/Manifest b/mail-filter/spamassassin/Manifest index 4da4c6f57b92..29f8917f8c96 100644 --- a/mail-filter/spamassassin/Manifest +++ b/mail-filter/spamassassin/Manifest @@ -1,2 +1,3 @@ DIST Mail-SpamAssassin-3.4.6.tar.bz2 6166807 BLAKE2B aa25c9e81f570d35e8594ba6d6da70c7b846737513bd4d6d2d410872c58ab7cbe7ade6a109a71bdbb6dbaf7aee8eb48520e7de929b27e83546401f3692aeb0c3 SHA512 bb53ba928917b02071b2e6690a11240e1af503334f292c870a8c49c24b0a58b44c78f827e2f43e71a3ce920481fa0e1e62b78a39452658c57d18f4e11daeb593 DIST Mail-SpamAssassin-4.0.0.tar.bz2 6371055 BLAKE2B 86f2167f6250a10a6bf871cc291f63ee9ee2d853b4183a637b4267e6979209196155be1b26e5e5b1093cf63841f9819a249de65e7002414a7e790ee1b67e5206 SHA512 a0fe5f6953c9df355bfa011e8a617101687eb156831a057504656921fe76c2a4eb37b5383861aac579e66a20c4454068e81a39826a35eb0266148771567bad5f +DIST Mail-SpamAssassin-4.0.0.tar.bz2.asc 833 BLAKE2B 44170d411d9eb656d67bf4080807ad3c3fd9eff9f2eadadadbfde828e542bc57b5cdcfb062c7f210be4d721bdf9cf85aec9b1fb491076165453b000b47990f0d SHA512 b87a80d2b0b802f52df75e485878c53cc4fad52935ca2b14b1b06e46d334b52c673e66d61cc2155b5e812fa6a486f8e61f6a87794be2524acea1fd8ac42e7d6a diff --git a/mail-filter/spamassassin/spamassassin-4.0.0.ebuild b/mail-filter/spamassassin/spamassassin-4.0.0.ebuild index c4cc36b5754f..791fc6f3e7f4 100644 --- a/mail-filter/spamassassin/spamassassin-4.0.0.ebuild +++ b/mail-filter/spamassassin/spamassassin-4.0.0.ebuild @@ -3,12 +3,16 @@ EAPI=8 -inherit perl-functions systemd toolchain-funcs +inherit perl-functions systemd toolchain-funcs verify-sig MY_P="Mail-SpamAssassin-${PV//_/-}" DESCRIPTION="An extensible mail filter which can identify and tag spam" HOMEPAGE="https://spamassassin.apache.org/" -SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2" +SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2 + verify-sig? ( + https://downloads.apache.org/spamassassin/source/${MY_P}.tar.bz2.asc + ) +" S="${WORKDIR}/${MY_P}" LICENSE="Apache-2.0 GPL-2" @@ -79,12 +83,16 @@ DEPEND="${REQDEPEND} virtual/perl-Test-Harness )" RDEPEND="${REQDEPEND} ${OPTDEPEND}" +BDEPEND="${RDEPEND} + verify-sig? ( sec-keys/openpgp-keys-spamassassin )" + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/spamassassin.apache.org.asc PATCHES=( "${FILESDIR}/mention-geoip.cf-in-init.pre.patch" ) -# There are a few renames and use-dependent ones in src_istall as well. +# There are a few renames and use-dependent ones in src_install as well. DOCS=( NOTICE TRADEMARK CREDITS UPGRADE USAGE sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt