diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-15 17:25:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-15 17:25:28 +0000 |
commit | 6b933047f46efec1aa747570f945344254227457 (patch) | |
tree | a12a4b87b38f954c4de435272cf4b90d721df5e8 /dev-perl/Net-ARP/Net-ARP-1.0.9-r1.ebuild | |
parent | f45955e60d4da9b7f4a1088c98042f9c06669039 (diff) |
gentoo resync : 15.12.2017
Diffstat (limited to 'dev-perl/Net-ARP/Net-ARP-1.0.9-r1.ebuild')
-rw-r--r-- | dev-perl/Net-ARP/Net-ARP-1.0.9-r1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-perl/Net-ARP/Net-ARP-1.0.9-r1.ebuild b/dev-perl/Net-ARP/Net-ARP-1.0.9-r1.ebuild new file mode 100644 index 000000000000..30628f62959b --- /dev/null +++ b/dev-perl/Net-ARP/Net-ARP-1.0.9-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=CRAZYDJ +DIST_VERSION=1.0.9 +DIST_A_EXT=tgz +inherit perl-module + +DESCRIPTION="Perl extension for creating ARP packets" + +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="dev-perl/Net-Pcap" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" + +PATCHES=( + "${FILESDIR}/1.0.9-header.diff" + "${FILESDIR}/${PN}-1.0.9-perl-5.26.patch" + "${FILESDIR}/${PN}-1.0.9-tests.patch" +) + +src_prepare() { + perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile();' + perl-module_src_prepare +} + +src_test() { + if [[ $EUID != 0 || -z $TEST_ARP_IF ]]; then + elog "Comprehensive testing needs additional configuration (and root)." + elog "For details, see:" + elog "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}" + fi + perl-module_src_test +} |