Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

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