blob: b72ebf6929c41f4ce031382138103ae81e41bcfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="100% Open-Source Packet Capture Agent for HEP"
HOMEPAGE="https://sipcapture.org/ https://github.com/sipcapture/captagent"
SRC_URI="https://github.com/sipcapture/captagent/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ipv6 mysql pcre redis ssl"
PATCHES=(
# https://github.com/sipcapture/captagent/pull/239 (merged).
"${FILESDIR}/${P}-gcc10.patch"
# https://github.com/sipcapture/captagent/pull/245 (merged).
"${FILESDIR}/${PN}-6.3.1-r1-clang.patch"
# Already upstreamed for next version.
"${FILESDIR}/${P}-configure.patch"
)
DEPEND="dev-libs/json-c
net-libs/libpcap
dev-libs/libuv
mysql? ( dev-db/mysql-connector-c )
pcre? ( dev-libs/libpcre )
redis? ( dev-db/redis )
ssl? ( dev-libs/openssl:= )"
RDEPEND="${DEPEND}"
src_prepare() {
default
eautoreconf
}
src_configure() {
econf --enable-compression \
--disable-epan \
$(use_enable ipv6) \
$(use_enable mysql) \
$(use_enable pcre) \
$(use_enable redis) \
$(use_enable ssl tls) \
$(use_enable ssl)
}
|