mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-15 21:02:30 +01:00
libtins-4.3.ebuild
This commit is contained in:
parent
4efd948f04
commit
332e75e868
2 changed files with 48 additions and 0 deletions
|
|
@ -1,2 +1,3 @@
|
|||
DIST libtins-4.1.tar.gz 369274 BLAKE2B cda42919d4ff6bd42bac2713395adca36bceafa1e7afc36a317978b6b4b5819fa8d43944500a78c14fe9e47717ba73ecf7b2b266009c0d2cbf0f436d66e54da4 SHA512 240058ccceab0f1a4df1b6a6fef05b3476b02a75996cc606353ecc30cd934e5c37c7e2bbf600a8a30e3ca669239542925f0b91bc79c46a4719b6ce68165f2594
|
||||
DIST libtins-4.2.tar.gz 371117 BLAKE2B e7bc605d7690d427e057ea15d334b15f50a15ff821e24e7cf9078fc8dabc513aecdc09949460933d7f15100a5e0a930b643f300729fbab2dea5cd598d352eb6a SHA512 46d07712604c780e418135c996f195046fd85a9e1411962c9bcee3c8d0fc64f494aa50164236ffd1e77ff8a398e9617bbf040b3e01a5771c5621c0faa1ce312f
|
||||
DIST libtins-4.3.tar.gz 371764 BLAKE2B 133e8bcb8fffe2bf7372d6952c110a7c200b492bf1314fb10af4126100ed65f8eaf440eb061f7cc49666e748c74a12108d7eefc9f48d252d8648c15653728c47 SHA512 29d606004fe9a440c9a53eede42fd5c6dbd049677d2cca2c5cfd26311ee2ca4c64ca3e665fbc81efd5bfab5577a5181ed0754c617e139317d9ae0cabba05aff7
|
||||
|
|
|
|||
47
net-libs/libtins/libtins-4.3.ebuild
Normal file
47
net-libs/libtins/libtins-4.3.ebuild
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
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_prepare() {
|
||||
sed -i '/CMAKE_INSTALL_LIBDIR lib/d' CMakeLists.txt || die
|
||||
cmake-utils_src_prepare
|
||||
eapply_user
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
Reference in a new issue