Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/daq/
Date: Mon, 10 Dec 2018 16:45:27
Message-Id: 1544460302.f9682018fc6f442bdda0be892199576c186300a3.whissi@gentoo
1 commit: f9682018fc6f442bdda0be892199576c186300a3
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 10 16:33:55 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 10 16:45:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9682018
7
8 net-libs/daq: bump to v2.0.6
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 net-libs/daq/Manifest | 1 +
14 net-libs/daq/daq-2.0.6.ebuild | 77 +++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 78 insertions(+)
16
17 diff --git a/net-libs/daq/Manifest b/net-libs/daq/Manifest
18 index 71be401e32e..13a86802343 100644
19 --- a/net-libs/daq/Manifest
20 +++ b/net-libs/daq/Manifest
21 @@ -1,3 +1,4 @@
22 DIST daq-0.6.2.tar.gz 451581 BLAKE2B 64eebeb669eefc6715b206de19e823708a8e4255d5898d5f6d4b80889360611950764432c941a2a930582ab9b8c2300cfdb41784f008f4ef1c248f3469819d4e SHA512 da19034f210d9c202f5e3ba7ddf60645498ed8bdaf28410811922ebb1338b56c55c8e992e46e1c7b9b89de6148b471129826a02ab2a45c7232bc4091a4e53125
23 DIST daq-2.0.0.tar.gz 480030 BLAKE2B ab25ce133833babbdaecd74c79d319739e5bfa34bfa100d35c19569c935fe58b425ea817a12f6d2fc1ff47a6e8097b822e2d5ac5dc295cdde516811f139accff SHA512 aa79e06473592c0ee57a3a2da60f01f35e6268a126fcb3a992ee7c6da48a079cf359db7439be3778997e774c340630d768712c9efea10c570feb4961f9a00b3c
24 DIST daq-2.0.2.tar.gz 474447 BLAKE2B fa80d435056d672eaa15f003649d90dba91986780f372cd4e953b676e414232516c5fc43065f5497d38299e0309c58b2734458f9e5aa1b93cdfa29dfe72b622d SHA512 b2a47e174155f21cb1c6f1e1c431ea7cca6aa9f7371228e77def3c526a67fd42d0e26e4c94263195e041b203cdf0c2aaef14f9035afb23dde0bd5df3bf422cbd
25 +DIST daq-2.0.6.tar.gz 518013 BLAKE2B 702ab20c776b9047230bb1ac36574068e461a850ed5d15959c314d62b0b828c792cf23d19cdb411ba8c067348ae74dd2f011376ccbe0376c44536ad58fa1bba9 SHA512 61dd5408c587e57999445b9549ac539ffc5bb16ddc179601de1065fc5e251c1893536d8aa2251096e34b54093529d3578e7b5d97e3514cb2bbf4de113639b08c
26
27 diff --git a/net-libs/daq/daq-2.0.6.ebuild b/net-libs/daq/daq-2.0.6.ebuild
28 new file mode 100644
29 index 00000000000..42db1344051
30 --- /dev/null
31 +++ b/net-libs/daq/daq-2.0.6.ebuild
32 @@ -0,0 +1,77 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="7"
37 +inherit autotools multilib
38 +
39 +DESCRIPTION="Data Acquisition library, for packet I/O"
40 +HOMEPAGE="https://www.snort.org/"
41 +SRC_URI="https://www.snort.org/downloads/snort/${P}.tar.gz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
46 +IUSE="ipv6 +afpacket +dump +pcap nfq ipq static-libs"
47 +
48 +PCAP_DEPEND=">=net-libs/libpcap-1.0.0"
49 +IPT_DEPEND="
50 + >=net-firewall/iptables-1.4.10
51 + dev-libs/libdnet
52 + net-libs/libnetfilter_queue
53 +
54 +"
55 +DEPEND="
56 + dump? ( ${PCAP_DEPEND} )
57 + ipq? ( ${IPT_DEPEND} )
58 + nfq? ( ${IPT_DEPEND} )
59 + pcap? ( ${PCAP_DEPEND} )
60 +"
61 +RDEPEND="${DEPEND}"
62 +
63 +src_prepare() {
64 + default
65 +
66 + eautoreconf
67 +}
68 +
69 +src_configure() {
70 + # We forced libpcap to 1.x, so we can set this cache var so
71 + # cross-compiling doesn't break on us.
72 + daq_cv_libpcap_version_1x=yes \
73 + econf \
74 + $(use_enable ipv6) \
75 + $(use_enable pcap pcap-module) \
76 + $(use_enable afpacket afpacket-module) \
77 + $(use_enable dump dump-module) \
78 + $(use_enable nfq nfq-module) \
79 + $(use_enable ipq ipq-module) \
80 + $(use_enable static-libs static) \
81 + --disable-ipfw-module \
82 + --disable-bundled-modules
83 +}
84 +
85 +DOCS=( ChangeLog README )
86 +
87 +src_install() {
88 + default
89 +
90 + find "${ED}" -name '*.la' -delete || die
91 +
92 + # If not using static-libs don't install the static libraries
93 + # This has been bugged upstream
94 + if ! use static-libs; then
95 + for z in libdaq_static libdaq_static_modules; do
96 + rm "${D}"usr/$(get_libdir)/${z}.a
97 + done
98 + fi
99 +}
100 +
101 +pkg_postinst() {
102 + einfo "The Data Acquisition library (DAQ) for packet I/O replaces direct"
103 + einfo "calls to PCAP functions with an abstraction layer that facilitates"
104 + einfo "operation on a variety of hardware and software interfaces without"
105 + einfo "requiring changes to application such as Snort."
106 + einfo
107 + einfo "Please see the README file for DAQ for information about specific"
108 + einfo "DAQ modules."
109 +}