Subversion Repositories ALCASAR

Rev

Blame | Last modification | View Log

Name:           ipt-netflow
Version:        2.2
Release:        %mkrel 1
Summary:        Netflow iptables module for Linux kernel
License:        GPLv2
Group:          Development/Kernel
URL:            https://github.com/aabc/ipt-netflow
Source0:        %name-%version.tgz
%define kversion 4.1.15-server-2.mga5

%description
High performance NetFlow v5, v9, IPFIX flow data export module for Linux kernel.
Created to be useful for highly loaded linux router. It should be used as iptables target.


%prep
%setup -q -n ipt-netflow-%{version}

%build
./configure
%make 

%install
%makeinstall
######### uncoment for 32b #####################
#mkdir -p %{buildroot}/lib/iptables 
#mkdir -p %{buildroot}/lib/modules/%kversion/extra
#cp /lib/iptables/libipt_NETFLOW.so %{buildroot}/lib/iptables/ 
#cp /lib/iptables/libip6t_NETFLOW.so %{buildroot}/lib/iptables/
#cp /lib/modules/%kversion/extra/ipt_NETFLOW.ko %{buildroot}/lib/modules/%kversion/extra/
######### uncoment for 64b #####################
mkdir -p %{buildroot}/lib64/iptables
mkdir -p %{buildroot}/lib/modules/%kversion/extra
cp /lib64/iptables/libipt_NETFLOW.so %{buildroot}/lib64/iptables/
cp /lib64/iptables/libip6t_NETFLOW.so %{buildroot}/lib64/iptables/
cp /lib/modules/%kversion/extra/ipt_NETFLOW.ko %{buildroot}/lib/modules/%kversion/extra/

%post
/sbin/depmod -a %kversion

%postun
/sbin/depmod -a %kversion

%files 
/%{_lib}/iptables/libipt_NETFLOW.so
/%{_lib}/iptables/libip6t_NETFLOW.so
/lib/modules/%kversion/extra/ipt_NETFLOW.ko

%changelog
* Tue Apr 5 2016 Richard Rey <rexy> 
- Initial version of the package