Diff ipt_netflow-2.6 with a ipt_netflow-9999

/usr/portage/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild 2021-03-10 04:39:00.000000000 +0300
3 3

  
4 4
EAPI=7
5 5

  
6
inherit linux-info linux-mod toolchain-funcs
6
inherit git-r3 linux-info linux-mod 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="debug 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
31
	"${FILESDIR}/${PN}-9999-gentoo.patch"
35 32
)
36 33

  
37 34
pkg_setup() {
......
55 52
	linux-mod_pkg_setup
56 53
}
57 54

  
58
src_unpack() {
59
	default
60

  
61
	mv "${WORKDIR}"/${PN/_/-}-* "${WORKDIR}"/${P} || die
62
}
63

  
64 55
src_prepare() {
65 56
	default
66 57

  
58
	# Fix incorrect module version in sources
59
	sed -i \
60
		-e '/IPT_NETFLOW_VERSION/s#"[0-9.]*"#"'${PV}'"#' \
61
		ipt_NETFLOW.c || die
62

  
67 63
	# Checking for directory is enough
68
	sed -i -e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' configure || die
64
	sed -i \
65
		-e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' \
66
		configure || die
69 67
}
70 68

  
71 69
do_conf() {
Thank you!