Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
2060 richard 1
Name:		ipt-netflow
2
Version:	2.2
2101 richard 3
Release:	%mkrel 5
2060 richard 4
Summary:	Netflow iptables module for Linux kernel
5
License:	GPLv2
6
Packager:	Richard REY (Rexy)
7
Group:		Development/Kernel
8
URL:		https://github.com/aabc/ipt-netflow
9
Source0:	%name-%version.tgz
2101 richard 10
%define kversion 4.4.36-server-2.mga5
2060 richard 11
 
12
%description
13
High performance NetFlow v5, v9, IPFIX flow data export module for Linux kernel.
14
Created to be useful for highly loaded linux router. It should be used as iptables target.
15
 
16
 
17
%prep
18
%setup -q -n ipt-netflow-%{version}
19
 
20
%build
21
./configure
22
%make 
23
 
24
%install
25
%makeinstall
26
######### uncoment for 32b #####################
27
#mkdir -p %{buildroot}/lib/iptables 
28
#mkdir -p %{buildroot}/lib/modules/%kversion/extra
29
#cp /lib/iptables/libipt_NETFLOW.so %{buildroot}/lib/iptables/ 
30
#cp /lib/iptables/libip6t_NETFLOW.so %{buildroot}/lib/iptables/
31
#cp /lib/modules/%kversion/extra/ipt_NETFLOW.ko %{buildroot}/lib/modules/%kversion/extra/
32
######### uncoment for 64b #####################
33
mkdir -p %{buildroot}/lib64/iptables
34
mkdir -p %{buildroot}/lib/modules/%kversion/extra
35
cp /lib64/iptables/libipt_NETFLOW.so %{buildroot}/lib64/iptables/
36
cp /lib64/iptables/libip6t_NETFLOW.so %{buildroot}/lib64/iptables/
37
cp /lib/modules/%kversion/extra/ipt_NETFLOW.ko %{buildroot}/lib/modules/%kversion/extra/
38
 
39
%post
40
/sbin/depmod -a %kversion
41
 
42
%postun
43
/sbin/depmod -a %kversion
44
 
45
%files 
46
/%{_lib}/iptables/libipt_NETFLOW.so
47
/%{_lib}/iptables/libip6t_NETFLOW.so
48
/lib/modules/%kversion/extra/ipt_NETFLOW.ko
49
 
50
%changelog
2101 richard 51
* Mon Dec 19 2016 Richard Rey <rexy> 
52
- Version for the kernel 4.4.36
2070 richard 53
* Sat Oct 29 2016 Richard Rey <rexy> 
2060 richard 54
- Version for the kernel 4.4.26
2070 richard 55
* Sat May 14 2016 Richard Rey <rexy> 
2060 richard 56
- Version for the kernel 4.4.13
57
* Tue Apr 5 2016 Richard Rey <rexy> 
58
- Initial version of the package