Subversion Repositories ALCASAR

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
2060 richard 1
Name:		ipt-netflow
2
Version:	2.2
3
Release:	%mkrel 3
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
10
%define kversion 4.4.26-server-1.mga5
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
51
* Fri Oct 29 2016 Richard Rey <rexy> 
52
- Version for the kernel 4.4.26
53
* Tue May 14 2016 Richard Rey <rexy> 
54
- Version for the kernel 4.4.13
55
* Tue Apr 5 2016 Richard Rey <rexy> 
56
- Initial version of the package