You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
MODULE_AUTHOR=JMEHNLE
MODULE_SECTION=mail-spf
MODULE_VERSION=v2.9.0
inherit perl-module
DESCRIPTION="An object-oriented implementation of Sender Policy Framework"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 sparc x86 ~x86-fbsd"
IUSE="test"
RESTRICT=test
RDEPEND="
dev-perl/Error
>=dev-perl/Net-DNS-0.620.0
>=dev-perl/NetAddr-IP-4
>=dev-perl/URI-1.130.0
>=dev-perl/Net-DNS-Resolver-Programmable-0.3.0
virtual/perl-version
!!dev-perl/Mail-SPF-Query
"
DEPEND="${RDEPEND}
>=dev-perl/Module-Build-0.280.500
>=dev-perl/Net-DNS-Resolver-Programmable-0.3.0
test? ( virtual/perl-Test-Simple )
"
SRC_TEST="do parallel"
PERL_RM_FILES=(
t/90-author-pod-validation.t
)
src_prepare() {
perl-module_src_prepare
sed -i -e "s:spfquery:spfquery.pl:" Build.PL || die "sed failed"
mv "${S}"/bin/spfquery "${S}"/bin/spfquery.pl || die "renaming spfquery failed"
}
pkg_postinst() {
elog "The spfquery script was renamed to spfquery.pl because of file collisions."
}