Subversion Repositories ALCASAR

Compare Revisions

Regard whitespace Rev 2519 → Rev 2520

/rpms/ipt-netflow-2.2.spec
File deleted
/rpms/ipt-netflow-2.2.tgz
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/ipt-netflow-2.3.spec
0,0 → 1,66
Name: ipt-netflow
Version: 2.3
Release: %mkrel 1
Summary: Netflow iptables module for Linux kernel
License: GPLv2
Packager: Richard REY (Rexy)
Group: Development/Kernel
URL: https://github.com/aabc/ipt-netflow
BuildRequires: iptables-devel
Source0: %name-%version.tgz
%define kversion 4.14.30-server-3.mga6
 
%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
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/
 
%clean
rm -rf %{buildroot}
 
%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
* Mon Apr 01 2018 Richard REY <Rexy> - 2.3
- Version for the kernel 4.14.30 (ALCASAR 3.2.1)
* Mon Feb 26 2018 Tom Houdayer - 2.2
- Version for the kernel 4.14.20 (ALCASAR 3.2.1)
* Wed Oct 11 2017 Tom Houdayer - 2.2
- Version for the kernel 4.9.50 (ALCASAR 3.2)
* Mon Jul 03 2017 Richard Rey <rexy> - 2.1
- Version for the kernel 4.4.74 (alcasar 3.1.3)
* Sun May 28 2017 Richard Rey <rexy>
- Version for the kernel 4.4.68 (alcasar 3.1.2)
* Thu Apr 06 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 05 2016 Richard Rey <rexy>
- Initial version of the package
/rpms/ipt-netflow-2.3.tgz
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
/rpms/rpm-build-howto
1,13 → 1,16
By Rexy
 
ALCASAR need the following programs that don't be included as RPM in Mageia :
- coovachilli
- havp
- netflow kernel module
- coovachilli (the captive portal)
- havp (http antivirus proxy)
- ipt_netflow kernel module (netflow log system)
- wkhtmltopdf (html to pdf renderer)
- nfdump (collector & processor for netflow data)
 
This howto explains how to build RPM of these programs in order to keep the distribution clean
 
**** Prepare the RPM creation structure ***
- upadate your system : urpmi --auto-update
- install the following RPMs "kernel-userspace-headers", "rpm-build", "gengetopt", "libtool" packages
- create directories structure in your home : mkdir -p ~/rpmbuild/{SRPMS,SOURCES,SPECS,tmp}
- Option : find the ".rpmmacros" file on mageia wiki (https://wiki.mageia.org/en/Packagers_RPM_tutorial) and copy it in your home directory
34,10 → 37,10
**** ipt_netflow ****
- Must be complied on a system which runs the target kernel. So install manually the target kernel and reboot (ipt_NETFLOW will not load during this process)
- 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 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 without errors
- 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
- download, uncompress and test the compilation 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 (depmod + modprobe ipt_NETFLOW), "lsmod|grep ipt_NETFLOW" to verify that it's loaded, "alcasar-iptables.sh" to to reload netfilter rules (no errors should appear)
- if all is ok, copy the tarball in rpmbuild/SOURCES. Copy the .spec in rpmbuild/SPECS. In this file, adapt the kernel number.
- change to the directory ~/pmbuild/SPEC and run "rpmbuild -bb ****.spec"
 
**** wkhtmltopdf ****
- download the archive of the binaries of the last version (https://wkhtmltopdf.org/downloads.html) in ~/rpmbuild/SOURCES/wkhtmltox-%{version}_linux-generic-amd64.tar.xz.
/rpms/x86_64/ipt-netflow-2.2-18.mga6.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.3-1.mga6.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