diff --git a/net-libs/libtins/Manifest b/net-libs/libtins/Manifest new file mode 100644 index 000000000..7a552ed26 --- /dev/null +++ b/net-libs/libtins/Manifest @@ -0,0 +1 @@ +DIST libtins-3.5.tar.gz 347630 SHA256 1b0624b2eea3ce077a86f3abd3e625661760c4cfd21cd8f3d3cd3622229ff2cd SHA512 68bfadca38813de62c69641977c0befefb487c91f23a64ad757b88ef5e6369864ee1b7b77408e7de92a34a48a75fc27f3345de9d338c318dea87f4a24a4d6187 WHIRLPOOL 745563e5175cb43f483c27eae33e9d73c84296b3722a1fe62910b9c5eb3c299bb4904f89d3bef7b6f07eb7910e54be33dad9d177909a02a5010e04e052088f88 diff --git a/net-libs/libtins/libtins-3.5.ebuild b/net-libs/libtins/libtins-3.5.ebuild new file mode 100644 index 000000000..f07cc7248 --- /dev/null +++ b/net-libs/libtins/libtins-3.5.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils + +DESCRIPTION="High-level, multiplatform C++ network packet sniffing and crafting library." +HOMEPAGE="https://libtins.github.io/" +SRC_URI="https://github.com/mfontanini/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+cxx11 +ack-tracker +wpa2 +dot11 static-libs" + +REQUIRED_USE=" + wpa2? ( dot11 ) +" + +DEPEND=" + ack-tracker? ( dev-libs/boost ) + wpa2? ( dev-libs/openssl:0 ) +" +RDEPEND="${DEPEND} + net-libs/libpcap +" + +RESTRICT="mirror" + +src_configure() { + local mycmakeargs=( + -DLIBTINS_ENABLE_CXX11="$(usex cxx11)" + -DLIBTINS_ENABLE_ACK_TRACKER="$(usex ack-tracker)" + -DLIBTINS_ENABLE_WPA2="$(usex wpa2)" + -DLIBTINS_ENABLE_DOT11="$(usex dot11)" + -DLIBTINS_BUILD_SHARED="$(usex !static-libs)" + ) + + cmake-utils_src_configure +} diff --git a/net-libs/libtins/metadata.xml b/net-libs/libtins/metadata.xml new file mode 100644 index 000000000..9b86794e4 --- /dev/null +++ b/net-libs/libtins/metadata.xml @@ -0,0 +1,19 @@ + + + + +aptx945@gmail.com +Owen Chia + + +libtins is a high-level, multiplatform C++ network packet sniffing and crafting library. + +Its main purpose is to provide the C++ developer an easy, efficient, platform and endianess-independent way to create tools which need to send, receive and manipulate specially crafted packets. + + +C++11 support +TCP ACK tracking support +WPA2 decryption support +IEEE 802.11 support + +