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 08ED8138350 for ; Tue, 14 Apr 2020 08:38:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49040E0C86; Tue, 14 Apr 2020 08:38:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 1CDECE0C86 for ; Tue, 14 Apr 2020 08:38:05 +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 080B934F0BB for ; Tue, 14 Apr 2020 08:38:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BC7421D6 for ; Tue, 14 Apr 2020 08:38:02 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1586853481.b137b40b299708bba64448cd151df9b2c02c1331.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/daq/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/daq/Manifest net-libs/daq/daq-2.0.7.ebuild X-VCS-Directories: net-libs/daq/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: b137b40b299708bba64448cd151df9b2c02c1331 X-VCS-Branch: master Date: Tue, 14 Apr 2020 08:38:02 +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: 4f532d29-f721-4007-bf29-a1948549b9e3 X-Archives-Hash: 2fd48cc623a77eef9198303ea2b40787 commit: b137b40b299708bba64448cd151df9b2c02c1331 Author: Jeroen Roovers gentoo org> AuthorDate: Tue Apr 14 08:33:08 2020 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Tue Apr 14 08:38:01 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b137b40b net-libs/daq: Version 2.0.7 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Jeroen Roovers gentoo.org> net-libs/daq/Manifest | 1 + net-libs/daq/daq-2.0.7.ebuild | 82 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/net-libs/daq/Manifest b/net-libs/daq/Manifest index ada29e95cb7..a1e28f4600a 100644 --- a/net-libs/daq/Manifest +++ b/net-libs/daq/Manifest @@ -1 +1,2 @@ DIST daq-2.0.6.tar.gz 518013 BLAKE2B 702ab20c776b9047230bb1ac36574068e461a850ed5d15959c314d62b0b828c792cf23d19cdb411ba8c067348ae74dd2f011376ccbe0376c44536ad58fa1bba9 SHA512 61dd5408c587e57999445b9549ac539ffc5bb16ddc179601de1065fc5e251c1893536d8aa2251096e34b54093529d3578e7b5d97e3514cb2bbf4de113639b08c +DIST daq-2.0.7.tar.gz 520287 BLAKE2B 799a8e240c9e359a08ac74ef4fe0d92882d4635f270beaf5f5077bb20cc200d6cf8c55e2c68a59ecabac361ce00619d66ddeb4d7e9a25094b16b3a858673099f SHA512 9bedddbc2d952526ab4e1d65f4507eb914507f8b3b5702ecf7137f8a210c690703469162a117a76cb8376a5639db46bd767fc48789ba7294a0bad26d4cd0ede2 diff --git a/net-libs/daq/daq-2.0.7.ebuild b/net-libs/daq/daq-2.0.7.ebuild new file mode 100644 index 00000000000..9abd8473323 --- /dev/null +++ b/net-libs/daq/daq-2.0.7.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" +inherit autotools multilib + +DESCRIPTION="Data Acquisition library, for packet I/O" +HOMEPAGE="https://www.snort.org/" +SRC_URI="https://www.snort.org/downloads/snort/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="ipv6 +afpacket +dump +pcap nfq ipq static-libs" + +PCAP_DEPEND=">=net-libs/libpcap-1.0.0" +IPT_DEPEND=" + >=net-firewall/iptables-1.4.10 + dev-libs/libdnet + net-libs/libnetfilter_queue + +" +DEPEND=" + dump? ( ${PCAP_DEPEND} ) + ipq? ( ${IPT_DEPEND} ) + nfq? ( ${IPT_DEPEND} ) + pcap? ( ${PCAP_DEPEND} ) +" +RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}"/${PN}-2.0.6-parallel-grammar.patch #673390 + "${FILESDIR}"/${PN}-2.0.6-static-libs.patch +) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + # We forced libpcap to 1.x, so we can set this cache var so + # cross-compiling doesn't break on us. + daq_cv_libpcap_version_1x=yes \ + econf \ + $(use_enable afpacket afpacket-module) \ + $(use_enable dump dump-module) \ + $(use_enable ipq ipq-module) \ + $(use_enable ipv6) \ + $(use_enable nfq nfq-module) \ + $(use_enable pcap pcap-module) \ + $(use_enable static-libs static) \ + --disable-bundled-modules \ + --disable-ipfw-module \ + --enable-shared +} + +DOCS=( ChangeLog README ) + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die + + # If not using static-libs don't install the static libraries + # This has been bugged upstream + if ! use static-libs; then + for z in libdaq_static libdaq_static_modules; do + rm "${D}"/usr/$(get_libdir)/${z}.a + done + fi +} + +pkg_postinst() { + einfo "The Data Acquisition library (DAQ) for packet I/O replaces direct" + einfo "calls to PCAP functions with an abstraction layer that facilitates" + einfo "operation on a variety of hardware and software interfaces without" + einfo "requiring changes to application such as Snort." + einfo + einfo "Please see the README file for DAQ for information about specific" + einfo "DAQ modules." +}