Subversion Repositories ALCASAR

Rev

Rev 1809 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
1812 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
1809 richard 10
 
1812 richard 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.
1809 richard 14
 
15
 
16
%prep
1812 richard 17
%setup -q -n ipt-netflow-%{version}
1809 richard 18
 
19
%build
1812 richard 20
./configure
21
%make 
1809 richard 22
 
23
%install
1812 richard 24
%makeinstall
25
mkdir -p %{buildroot}/lib/iptables
26
mkdir -p %{buildroot}/lib/modules/%kversion/extra
27
cp /lib/iptables/libipt_NETFLOW.so %{buildroot}/lib/iptables/
28
cp /lib/iptables/libip6t_NETFLOW.so %{buildroot}/lib/iptables/
29
cp /lib/modules/%kversion/extra/ipt_NETFLOW.ko %{buildroot}/lib/modules/%kversion/extra/
1809 richard 30
 
31
%post
1812 richard 32
/sbin/depmod -a
1809 richard 33
 
34
%postun
1812 richard 35
/sbin/depmod -a
1809 richard 36
 
1812 richard 37
%files 
38
/%{_lib}/iptables/libipt_NETFLOW.so
39
/%{_lib}/iptables/libip6t_NETFLOW.so
40
/%{_lib}/modules/%kversion/extra/ipt_NETFLOW.ko
1809 richard 41
 
42
%changelog
1812 richard 43
* Tue Apr 5 2016 Richard Rey <rexy> 
44
- Initial version of the package