Diff ipt_netflow-2.6-r1 with a ipt_netflow-9999
/usr/portage/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild 2023-10-09 14:52:33.376368448 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
inherit linux-mod-r1 toolchain-funcs |
|
6 |
inherit git-r3 linux-mod-r1 toolchain-funcs |
|
7 | 7 | |
8 | 8 |
DESCRIPTION="Netflow iptables module" |
9 | 9 |
HOMEPAGE=" |
10 | 10 |
https://sourceforge.net/projects/ipt-netflow |
11 | 11 |
https://github.com/aabc/ipt-netflow |
12 | 12 |
" |
13 |
SRC_URI="https://github.com/aabc/ipt-netflow/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|
13 |
EGIT_REPO_URI="https://github.com/aabc/ipt-netflow" |
|
14 | 14 | |
15 | 15 |
LICENSE="GPL-2" |
16 | 16 |
SLOT="0" |
17 |
KEYWORDS="amd64 x86" |
|
18 | ||
19 | 17 |
IUSE="natevents snmp" |
20 | 18 | |
21 | 19 |
RDEPEND=" |
... | ... | |
30 | 28 | |
31 | 29 |
PATCHES=( |
32 | 30 |
"${FILESDIR}/${PN}-2.0-configure.patch" # bug #455984 |
33 |
"${FILESDIR}/${PN}-2.6-gentoo.patch" |
|
34 |
"${FILESDIR}/${P}-ref_module_fix.patch" # bug #781014 |
|
35 |
"${FILESDIR}/${P}-fix-linux-headers-5.14.patch" # bug #813993 |
|
36 | ||
31 |
"${FILESDIR}/${PN}-9999-gentoo.patch" |
|
37 | 32 |
) |
38 | 33 | |
39 | 34 |
pkg_setup() { |
... | ... | |
51 | 46 |
linux-mod-r1_pkg_setup |
52 | 47 |
} |
53 | 48 | |
54 |
src_unpack() { |
|
55 |
default |
|
56 | ||
57 |
mv "${WORKDIR}"/${PN/_/-}-* "${WORKDIR}"/${P} || die |
|
58 |
} |
|
59 | ||
60 | 49 |
src_prepare() { |
61 | 50 |
default |
62 | 51 | |
52 |
# Fix incorrect module version in sources |
|
53 |
sed -i \ |
|
54 |
-e '/IPT_NETFLOW_VERSION/s#"[0-9.]*"#"'${PV}'"#' \ |
|
55 |
ipt_NETFLOW.c || die |
|
56 | ||
63 | 57 |
# Checking for directory is enough |
64 | 58 |
sed -i \ |
65 | 59 |
-e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' \ |