From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9E9D41382C5 for ; Tue, 22 Dec 2020 17:52:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1DDD2BC001; Tue, 22 Dec 2020 17:52:18 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B8BF92BC001 for ; Tue, 22 Dec 2020 17:52:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 665613414C7 for ; Tue, 22 Dec 2020 17:52:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E3CAFCB for ; Tue, 22 Dec 2020 17:52:15 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1608659442.46d2ffcfbb79d2a5c513e4a4359777b12e348b7d.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/tracebox/, profiles/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/tracebox/tracebox-0.4.4-r100.ebuild profiles/package.mask X-VCS-Directories: profiles/ net-analyzer/tracebox/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 46d2ffcfbb79d2a5c513e4a4359777b12e348b7d X-VCS-Branch: master Date: Tue, 22 Dec 2020 17:52:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 13024973-fed9-4517-a628-766234b85069 X-Archives-Hash: 1479eb54a80ccbf90ca9e2cca3ca4bf4 commit: 46d2ffcfbb79d2a5c513e4a4359777b12e348b7d Author: Marek Szuba gentoo org> AuthorDate: Tue Dec 22 17:50:42 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Tue Dec 22 17:50:42 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46d2ffcf 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 gentoo.org> net-analyzer/tracebox/tracebox-0.4.4-r100.ebuild | 66 ++++++++++++++++++++++++ profiles/package.mask | 1 + 2 files changed, 67 insertions(+) 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 00000000000..63a8ba122cb --- /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"||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) +} diff --git a/profiles/package.mask b/profiles/package.mask index 14a289043e2..9aa573146ec 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -548,6 +548,7 @@ kde-apps/kdebase-meta:5 >=net-analyzer/rrdtool-1.7.2-r100 >=net-analyzer/snort-2.9.16-r100 >=net-analyzer/suricata-6.0.1-r100 +>=net-analyzer/tracebox-0.4.4-r100 >=net-analyzer/wireshark-3.4.2-r100 >=net-dns/dnsmasq-2.82-r100 >=net-im/prosody-0.11.7-r100