Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1812 → Rev 1811

/conf/rpms/rpm-build-howto
18,10 → 18,10
- all is in the /usr/local". Remove the instaled files ("make uninstall") and the binaries ("make clean").
- Compress the directory (ie : coova-chilli-1.3.0.tar.gz). Copy this tarball in the directory ~/rpmbuild/SOURCES/.
- copy the SPEC file from the ALCASAR archive to the directory ~/rpmbuild/SPEC
- change to the directory ~/pmbuild/SPEC and run the RPM build process excluding 'ssl' : "rpmbuild -bb coova-chilli.spec --without ssl" (rpmbuild -ba to create also the SRPMS)
- change to the directory ~/pmbuild/SPEC and run the RPM build process excluding 'ssl' (rpmbuild -ba coova-chilli.spec --without ssl)
 
INFO : .spec modifications since Redhat RPM :
- ajouter en première ligne "%define _disable_ld_no_undefined 1" pour éviter les erreurs liées au variables non unitisées
- ajouter en première ligne "%define _disable_ld_no_undefined 1"
- pour la version 64b, ajouter 2 lignes intégrant le répertoire "lib64" lors de la suppression des binaires statiques (rm -rf $RPM_BUILD_ROOT/usr/lib/*.la)
- exclure de l'archive les fichiers inutiles pour ALCASAR (wpad.dat, wwwdir, etc. via la directive '%exclude')
 
31,7 → 31,7
- adaptation du fichier .spec (version, packager, commentaires, etc.)
 
**** ipt_netflow ****
- install the RPMs "kernel-server-devel", "lib64iptables-devel (or libiptables-devel in 32b arch)"
- install the RPMs "kernel-server-devel-x.y", "lib64iptables-devel (or libiptables-devel in 32b arch)"
- download, decompress 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
- 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
/conf/rpms/ipt-netflow-rexy.spec
0,0 → 1,34
rexyName: 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
 
 
%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
 
%find_lang %name
 
%files -n %name
/%{_lib}/iptables/libipt_NETFLOW.so
/usr/src/%{module_name}-%{version}-%{release}
 
%changelog
* Tue Sep 10 2016 Richard Rey <rexy> 2.2.mga5
- Initial version of the package
/conf/rpms/ipt-netflow.spec
1,44 → 1,75
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
%define module_name ipt-netflow
%define module_version 1.7.1
%define module_release alt1
 
%define kversion 2.6.32
%define krelease alt31
%define flavour el-smp
 
%define module_dir /lib/modules/%kversion-%flavour-%krelease/kernel/net/ipv4/netfilter/
 
Summary: ipt_NETFLOW linux 2.6 kernel module
Name: kernel-modules-%module_name-%flavour
Version: 1.0.%module_version
Release: %module_release.132640.31
License: GPL
Group: System/Kernel and hardware
 
Packager: Kernel Maintainer Team <kernel@packages.altlinux.org>
 
ExclusiveOS: Linux
URL: sourceforge.net/projects/ipt-netflow/
BuildRequires(pre): rpm-build-kernel
BuildRequires: kernel-headers-modules-%flavour = %kversion-%krelease
BuildRequires: kernel-headers-%flavour = %kversion-%krelease
BuildRequires: kernel-source-%module_name = %module_version
 
BuildRequires: iptables iptables-devel
 
Provides: kernel-modules-%module_name-%kversion-%flavour-%krelease = %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease < %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease > %version-%release
 
Prereq: coreutils
Prereq: kernel-image-%flavour = %kversion-%krelease
Requires(postun): kernel-image-%flavour = %kversion-%krelease
 
ExclusiveArch: %ix86 x86_64
 
%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.
Ipt-netflow is very fast and effective Netflow exporting module
for Linux kernel (up to 2.6.37). Designed for Linux router with
heavy network load.
 
 
%prep
%setup -q -n ipt-netflow-%{version}
rm -rf kernel-source-%module_name-%module_version
tar -jxvf %kernel_src/kernel-source-%module_name-%module_version.tar.bz2
%setup -D -T -n kernel-source-%module_name-%module_version
 
%build
./configure
%make
./configure \
--kver="%kversion" \
--kdir="%_usrsrc/linux-%kversion-%flavour" \
#
%make_build all
 
%install
%makeinstall
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/
mkdir -p $RPM_BUILD_ROOT/%module_dir
install -p -m644 ipt_NETFLOW.ko $RPM_BUILD_ROOT/%module_dir
 
%post
/sbin/depmod -a
%post_kernel_modules %kversion-%flavour-%krelease
 
%postun
/sbin/depmod -a
%postun_kernel_modules %kversion-%flavour-%krelease
 
%files
/%{_lib}/iptables/libipt_NETFLOW.so
/%{_lib}/iptables/libip6t_NETFLOW.so
/%{_lib}/modules/%kversion/extra/ipt_NETFLOW.ko
%files
%defattr(644,root,root,755)
%module_dir
 
%changelog
* Tue Apr 5 2016 Richard Rey <rexy>
- Initial version of the package
* Tue Jan 24 2012 Vitaly Kuznetsov <vitty at altlinux.ru> 1.0.1.7.1-alt1.132640.31
- Build for kernel-image-el-smp-2.6.32-alt31.
 
* Thu May 26 2011 Anton Protopopov <aspsk at altlinux.org> 1.0.1.7.1-alt1
- Initial build for ALT
/conf/rpms/i586/ipt-netflow-2.2-1.mga5.i586.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