Diff spamassassin-3.4.6-r2 with a spamassassin-4.0.0-r3

/usr/portage/mail-filter/spamassassin/spamassassin-4.0.0-r3.ebuild 2023-10-09 14:52:31.584368403 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit perl-functions systemd toolchain-funcs
6
inherit perl-functions systemd toolchain-funcs verify-sig autotools
7 7

  
8 8
MY_P="Mail-SpamAssassin-${PV//_/-}"
9
S="${WORKDIR}/${MY_P}"
10 9
DESCRIPTION="An extensible mail filter which can identify and tag spam"
11 10
HOMEPAGE="https://spamassassin.apache.org/"
12
SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2"
11
SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2
12
	verify-sig? (
13
		https://downloads.apache.org/spamassassin/source/${MY_P}.tar.bz2.asc
14
	)
15
"
16
S="${WORKDIR}/${MY_P}"
13 17

  
14 18
LICENSE="Apache-2.0 GPL-2"
15 19
SLOT="0"
......
26 30
	dev-perl/HTML-Parser
27 31
	dev-perl/Net-DNS
28 32
	dev-perl/NetAddr-IP
29
	virtual/perl-Archive-Tar
30 33
	virtual/perl-Digest-SHA
31
	virtual/perl-IO-Zlib
32
	virtual/perl-Time-HiRes
33 34
	ssl? (
34 35
		dev-libs/openssl:0=
35 36
	)"
......
43 44
# We still need the old Digest-SHA1 because razor2 has not been ported
44 45
# to Digest-SHA.
45 46
OPTDEPEND="app-crypt/gnupg
47
	dev-perl/Archive-Zip
46 48
	dev-perl/BSD-Resource
47 49
	dev-perl/Digest-SHA1
50
	dev-perl/Email-Address-XS
48 51
	dev-perl/Encode-Detect
49 52
	|| ( dev-perl/GeoIP2 dev-perl/Geo-IP )
50
	dev-perl/HTTP-Date
53
	dev-perl/IO-String
51 54
	dev-perl/Mail-DKIM
55
	dev-perl/Mail-DMARC
52 56
	dev-perl/Mail-SPF
53 57
	dev-perl/Net-Patricia
54
	dev-perl/Net-CIDR-Lite
58
	dev-perl/Net-LibIDN2
55 59
	dev-util/re2c
56 60
	|| ( net-misc/wget[ssl] net-misc/curl[ssl] )
57 61
	virtual/perl-MIME-Base64
......
79 83
		virtual/perl-Test-Harness
80 84
	)"
81 85
RDEPEND="${REQDEPEND} ${OPTDEPEND}"
86
BDEPEND="${RDEPEND}
87
	verify-sig? ( sec-keys/openpgp-keys-spamassassin )"
88

  
89
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/spamassassin.apache.org.asc
82 90

  
83 91
PATCHES=(
84 92
	"${FILESDIR}/mention-geoip.cf-in-init.pre.patch"
85
	"${FILESDIR}/3.4.6-configure-clang16.patch"
93
	"${FILESDIR}/4.0.0-tests-dnsbl_subtests.t.patch"
94
	"${FILESDIR}/4.0.0-tests-strip2.t.patch"
95
	"${FILESDIR}/4.0.0-DnsResolver-udpsize.patch"
86 96
)
87 97

  
88
# There are a few renames and use-dependent ones in src_istall as well.
98
# There are a few renames and use-dependent ones in src_install as well.
89 99
DOCS=(
90 100
	NOTICE TRADEMARK CREDITS UPGRADE USAGE sql/README.bayes
91 101
	sql/README.awl procmailrc.example sample-nonspam.txt
......
141 151
		|| die 'failed to create a Makefile using Makefile.PL'
142 152

  
143 153
	# Now configure spamc.
154

  
155
	# Run autoreconf to avoid some issues caused by a standard test in the
156
	# current autoconf.  Expected to be fixed in next autoconf release, so
157
	# these next 3 lines might not be needed for long.  See bug #899782.
158
	pushd spamc >/dev/null
159
	eautoreconf
160
	popd >/dev/null
144 161
	emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile
145 162
}
146 163

  
......
183 200
	newdoc ldap/README README.ldap
184 201

  
185 202
	insinto /etc/mail/spamassassin/
186
	doins "${FILESDIR}"/geoip.cf
203
	newins "${FILESDIR}"/geoip-4.0.0.cf geoip.cf
187 204
	insopts -m0400
188 205
	newins "${FILESDIR}"/secrets.cf secrets.cf.example
189 206

  
Thank you!