Subversion Repositories ALCASAR

Rev

Rev 2230 | Go to most recent revision | Blame | Last modification | View Log

Name:           ipt-netflow
Version:        2.2
Release:        %mkrel 11
Summary:        Netflow iptables module for Linux kernel
License:        GPLv2
Packager:       Richard REY (Rexy)
Group:          Development/Kernel
URL:            https://github.com/aabc/ipt-netflow
Source0:        %name-%version.tgz
%define kversion 4.4.65-server-1.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
* Sun May 28 2017 Richard Rey <rexy> 
- Version for the kernel 4.4.68 (alcasar 3.1.2)
* Thu Apr 6 2017 Richard Rey <rexy> 
- Version for the kernel 4.4.59 (alcasar 3.1.1)
* Mon Mar 27 2017 Richard Rey <rexy> 
- Version for the kernel 4.4.55 (alcasar 3.1)
* Sat Oct 29 2016 Richard Rey <rexy> 
- Version for the kernel 4.4.26 (alcasar 3.0)
* Sat May 14 2016 Richard Rey <rexy> 
- Version for the kernel 4.4.13
* Tue Apr 5 2016 Richard Rey <rexy> 
- Initial version of the package