Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 2059 → Rev 2060

/rpms/ipt-netflow.spec
File deleted
/rpms/ipt-netflow-2.2.spec
0,0 → 1,56
Name: ipt-netflow
Version: 2.2
Release: %mkrel 3
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.26-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
* Fri Oct 29 2016 Richard Rey <rexy>
- Version for the kernel 4.4.26
* Tue 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
/rpms/rpm-build-howto
34,7 → 34,7
**** ipt_netflow ****
- Must be complied on a system which runs the target kernel !
- install the RPMs "kernel-server-devel", "lib64iptables-devel (or libiptables-devel in 32b arch)"
- download, uncompress and test the conpilation of the last version of ipt-netflow (configure, make all install). The module is compiled in the same directory. The lib is copied in the /lib64/iptables
- download, uncompress and test the conpilation of the last version of ipt-netflow (configure, make all install). The module is compiled in the same directory. The libs are copied in the /lib64/iptables (libip6t_NETFLOW.so & libipt_NETFLOW.so)
- test the module : go to the directory of source and try to load it (modprobe ipt_NETFLOW), "lsmod" to verify that it's loaded, "alcasar-iptables.sh" to test the iptables rules
- if all is ok, copy the tarball in rpmbuild/SOURCES. Copy the .spec in rpmbuild/SPECS. In this file, change the kernel number and uncoment the lines to match the architecture.
- rpmbuild -bb ****.spec
/rpms/x86_64/ipt-netflow-2.2-2.mga5.x86_64.rpm
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/rpms/x86_64/ipt-netflow-2.2-3.mga5.x86_64.rpm
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property