diff options
author | Zero_Chaos <zerochaos@gentoo.org> | 2016-10-05 23:02:48 -0400 |
---|---|---|
committer | Zero_Chaos <zerochaos@gentoo.org> | 2016-10-05 23:19:27 -0400 |
commit | 72a90fb5e3be95860ad213920a9a7d33d9e33149 (patch) | |
tree | 4dc086d61f0dddad8d69584e9e38d1c1a8849a90 /net-analyzer/ipv6toolkit | |
parent | dev-libs/boost: Correct find command to delete non-empty dirs (diff) | |
download | gentoo-72a90fb5e3be95860ad213920a9a7d33d9e33149.tar.gz gentoo-72a90fb5e3be95860ad213920a9a7d33d9e33149.tar.bz2 gentoo-72a90fb5e3be95860ad213920a9a7d33d9e33149.zip |
net-analyzer/ipv6toolkit: rename ipv6-toolkit and bump/cleanup
Package-Manager: portage-2.3.1
Diffstat (limited to 'net-analyzer/ipv6toolkit')
-rw-r--r-- | net-analyzer/ipv6toolkit/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/ipv6toolkit/ipv6toolkit-1.4.1.ebuild | 50 | ||||
-rw-r--r-- | net-analyzer/ipv6toolkit/ipv6toolkit-2.0_pre20160422.ebuild | 48 | ||||
-rw-r--r-- | net-analyzer/ipv6toolkit/metadata.xml | 11 |
4 files changed, 111 insertions, 0 deletions
diff --git a/net-analyzer/ipv6toolkit/Manifest b/net-analyzer/ipv6toolkit/Manifest new file mode 100644 index 000000000000..9a258a96ef80 --- /dev/null +++ b/net-analyzer/ipv6toolkit/Manifest @@ -0,0 +1,2 @@ +DIST ipv6toolkit-2.0_pre20160422.tar.gz 796716 SHA256 eea52d414ec1439e39afcf0199db8f73ee20f4618efa83ba7fcf75eba46de1a2 SHA512 532d6b76159fca03bdcebe341540a4071d2381dd3046469d0dfa5e8eecda5ffb4182d40658ef14c67bd11b781773bff1192e96d0ac4210c5ca095c6475d6c26d WHIRLPOOL 1accd014cc47171bb8627ccfd962c2736f51858f711e916b065d72513cbfb9a694246c98b1de78854a0652eb1611280dacd792b74c948b66d29311ed3cb0acfd +DIST ipv6toolkit-v1.4.1.tar.gz 469374 SHA256 facf4ff7ff962644fcd37c04273000a480f3270eeb16b21e0c701032d2861b4f SHA512 50a3f66a02a417f07c5f8befb684629ea027fac6835866b957febf35581ddc0f611a8981030cade4dd10757dafc87b0a3d19384edee0f58f2fd713f23003a57d WHIRLPOOL ae6664863372e2b4aef8ce8efbaa179b8775def44efe35ad7540349a109e7d109ffd047389d37def93c9632dc55df252c28fd035a409a40ba38d272ca7c11b8a diff --git a/net-analyzer/ipv6toolkit/ipv6toolkit-1.4.1.ebuild b/net-analyzer/ipv6toolkit/ipv6toolkit-1.4.1.ebuild new file mode 100644 index 000000000000..fa39f4f54272 --- /dev/null +++ b/net-analyzer/ipv6toolkit/ipv6toolkit-1.4.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils + +DESCRIPTION="Set of IPv6 security/trouble-shooting tools to send arbitrary IPv6-based packets" +HOMEPAGE="http://www.si6networks.com/tools/ipv6toolkit/" +MY_PN="ipv6toolkit" +MY_P="${MY_PN}-v${PV}" +SRC_URI="http://www.si6networks.com/tools/ipv6toolkit/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="net-libs/libpcap[ipv6(+)]" +RDEPEND="${DEPEND} + sys-apps/hwids" + +S="${WORKDIR}/${MY_P}" + +HWIDS_OUI_PATH=/usr/share/misc/oui.txt + +src_prepare() { + #patch it not needed per upstream + #https://github.com/fgont/ipv6toolkit/issues/44 + #epatch "${FILESDIR}"/${PN}-1.4.1-oui-path.patch + sed -i "s,/usr/share/[^[:space:]\"']*/?oui.txt,${HWIDS_OUI_PATH},g" \ + manuals/ipv6toolkit.conf.5 \ + || die "failed to sed out oui path" +} + +src_compile() { + emake CFLAGS="-Wall ${CFLAGS}" OUI_DATABASE="${HWIDS_OUI_PATH}" PREFIX=/usr +} + +src_install() { + dodir /etc + emake install DESTDIR="${D}" OUI_DATABASE="${HWIDS_OUI_PATH}" PREFIX=/usr + rm -f "${D}"/usr/share/ipv6toolkit/oui.txt + rmdir "${D}"/usr/share/ipv6toolkit + dodoc CHANGES.TXT CONTRIB.TXT README* +} +pkg_postinst() { + einfo "Upstream change: ${PN}-1.4: PDF/ODF documentation is now manpages only (same content)." +} diff --git a/net-analyzer/ipv6toolkit/ipv6toolkit-2.0_pre20160422.ebuild b/net-analyzer/ipv6toolkit/ipv6toolkit-2.0_pre20160422.ebuild new file mode 100644 index 000000000000..ca04eb19573f --- /dev/null +++ b/net-analyzer/ipv6toolkit/ipv6toolkit-2.0_pre20160422.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Set of IPv6 security/trouble-shooting tools to send arbitrary IPv6-based packets" +HOMEPAGE="http://www.si6networks.com/tools/ipv6toolkit/" + +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/fgont/ipv6toolkit.git" + inherit git-r3 + KEYWORDS="" +else + KEYWORDS="~amd64 ~x86" + SNAPSHOT="d14d90969e88a455e4ca8ea0ea7d88c9b7fb5c9f" + SRC_URI="https://github.com/fgont/ipv6toolkit/archive/${SNAPSHOT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}"/"${PN}"-"${SNAPSHOT}" +fi + +DEPEND="net-libs/libpcap[ipv6(+)]" +RDEPEND="${DEPEND} + sys-apps/hwids" + +HWIDS_OUI_PATH=/usr/share/misc/oui.txt + +src_prepare() { + sed -i "s#/usr/share/ipv6toolkit/oui.txt#${HWIDS_OUI_PATH}#" \ + manuals/ipv6toolkit.conf.5 +} +src_compile() { + emake CFLAGS="${CFLAGS}" PREFIX=/usr +} + +src_install() { + dodir /etc + emake install DESTDIR="${ED}" PREFIX=/usr + #remove the included oui file + rm -f "${D}"/usr/share/ipv6toolkit/oui.txt + #fix the conf file to use the one from sys-apps/hwids + sed -i "s#/usr/share/ipv6toolkit/oui.txt#${HWIDS_OUI_PATH}#" \ + "${ED}"/etc/ipv6toolkit.conf + dodoc CHANGES.TXT README.TXT +} diff --git a/net-analyzer/ipv6toolkit/metadata.xml b/net-analyzer/ipv6toolkit/metadata.xml new file mode 100644 index 000000000000..d6a6e9d55aba --- /dev/null +++ b/net-analyzer/ipv6toolkit/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> +</maintainer> +<longdescription> + The SI6 Networks' IPv6 toolkit is a set of IPv6 security/trouble-shooting tools, that can send arbitrary IPv6-based packets. +</longdescription> +</pkgmetadata> |