diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-12-22 17:50:42 +0000 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-12-22 17:50:42 +0000 |
commit | 46d2ffcfbb79d2a5c513e4a4359777b12e348b7d (patch) | |
tree | 96f94a66f275ae800bd1c6f5ccaf7458dcc500f9 /net-analyzer/tracebox | |
parent | media-sound/csound: migrate to lua-single.eclass (diff) | |
download | gentoo-46d2ffcfbb79d2a5c513e4a4359777b12e348b7d.tar.gz gentoo-46d2ffcfbb79d2a5c513e4a4359777b12e348b7d.tar.bz2 gentoo-46d2ffcfbb79d2a5c513e4a4359777b12e348b7d.zip |
net-analyzer/tracebox: migrate to lua-single.eclass
Autoconf-based. With the eclass-created wrapper, builds and installs fine
against all Lua implementations currently in the tree.
Closes: https://bugs.gentoo.org/752786
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'net-analyzer/tracebox')
-rw-r--r-- | net-analyzer/tracebox/tracebox-0.4.4-r100.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/net-analyzer/tracebox/tracebox-0.4.4-r100.ebuild b/net-analyzer/tracebox/tracebox-0.4.4-r100.ebuild new file mode 100644 index 000000000000..63a8ba122cbd --- /dev/null +++ b/net-analyzer/tracebox/tracebox-0.4.4-r100.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit autotools lua-single + +DESCRIPTION="A Middlebox Detection Tool" +HOMEPAGE="http://www.tracebox.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="curl sniffer" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="${LUA_DEPS} + >=net-libs/libcrafter-0.3_p20171019 + dev-libs/json-c + net-libs/libpcap + curl? ( net-misc/curl ) + sniffer? ( net-libs/libnetfilter_queue ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + virtual/pkgconfig +" +RESTRICT="test" +PATCHES=( + "${FILESDIR}"/${PN}-0.4.4-deps.patch +) + +src_prepare() { + default + + sed -i -e '/SUBDIRS/s|noinst||g' Makefile.am || die + sed -i -e '/DIST_SUBDIRS.*libcrafter/d' noinst/Makefile.am || die + + sed -i \ + -e '/[[:graph:]]*libcrafter[[:graph:]]*/d' \ + -e '/dist_bin_SCRIPTS/d' \ + src/${PN}/Makefile.am \ + || die + + sed -i \ + -e 's|"crafter.h"|<crafter.h>|g' \ + src/${PN}/PacketModification.h \ + src/${PN}/PartialHeader.h \ + src/${PN}/script.h \ + src/${PN}/${PN}.h \ + || die + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable curl) \ + $(use_enable sniffer) +} |