net-libs/libtins: add new package

This commit is contained in:
Owen Chia 2017-06-12 15:40:18 +08:00
parent d50b2b4f3a
commit 34c519ffe9
3 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST libtins-3.5.tar.gz 347630 SHA256 1b0624b2eea3ce077a86f3abd3e625661760c4cfd21cd8f3d3cd3622229ff2cd SHA512 68bfadca38813de62c69641977c0befefb487c91f23a64ad757b88ef5e6369864ee1b7b77408e7de92a34a48a75fc27f3345de9d338c318dea87f4a24a4d6187 WHIRLPOOL 745563e5175cb43f483c27eae33e9d73c84296b3722a1fe62910b9c5eb3c299bb4904f89d3bef7b6f07eb7910e54be33dad9d177909a02a5010e04e052088f88

View file

@ -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
}

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>aptx945@gmail.com</email>
<name>Owen Chia</name>
</maintainer>
<longdescription lang="en">
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.
</longdescription>
<use>
<flag name="cxx11">C++11 support</flag>
<flag name="ack-tracker">TCP ACK tracking support</flag>
<flag name="wpa2">WPA2 decryption support</flag>
<flag name="dot11">IEEE 802.11 support</flag>
</use>
</pkgmetadata>