SPECS: ipp2p.spec - use new kernel macros - fix --as-needed (thx j...
shadzik
shadzik at pld-linux.org
Sun Mar 25 18:07:00 CEST 2007
Author: shadzik Date: Sun Mar 25 16:07:00 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use new kernel macros
- fix --as-needed (thx japhy)
- remove smp stuff and bconds ('up' too)
---- Files affected:
SPECS:
ipp2p.spec (1.57 -> 1.58)
---- Diffs:
================================================================
Index: SPECS/ipp2p.spec
diff -u SPECS/ipp2p.spec:1.57 SPECS/ipp2p.spec:1.58
--- SPECS/ipp2p.spec:1.57 Fri Mar 16 00:01:58 2007
+++ SPECS/ipp2p.spec Sun Mar 25 18:06:55 2007
@@ -3,8 +3,6 @@
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
%bcond_without kernel # don't build kernel modules
-%bcond_without up # don't build UP module
-%bcond_without smp # don't build SMP module
%bcond_without userspace # don't build userspace module
%bcond_with verbose # verbose build (V=1)
%bcond_with grsec_kernel # build for kernel-grsecurity
@@ -34,14 +32,10 @@
BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7
%endif
%endif
-BuildRequires: rpmbuild(macros) >= 1.330
+BuildRequires: rpmbuild(macros) >= 1.379
BuildRequires: sed >= 4.0
Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%ifarch sparc
-%undefine with_smp
-%endif
-
%description
IPP2P is a netfilter extension to identify P2P filesharing traffic.
The main goal for developing IPP2P was giving the adminstrator a
@@ -73,7 +67,7 @@
Summary(pl.UTF-8): IPP2P - rozszerzenie filtra pakietów identyfikujące ruch P2P
Release: %{_rel}@%{_kernel_ver_str}
Group: Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel_up}
+%{?with_dist_kernel:%requires_releq_kernel}
Requires(post,postun): /sbin/depmod
%description -n kernel%{_alt_kernel}-net-ipp2p
@@ -106,44 +100,6 @@
Ten pakiet zawiera moduł jądra Linuksa.
-%package -n kernel%{_alt_kernel}-smp-net-ipp2p
-Summary: IPP2P - a netfilter extension to identify P2P filesharing traffic
-Summary(pl.UTF-8): IPP2P - rozszerzenie filtra pakietów identyfikujące ruch P2P
-Release: %{_rel}@%{_kernel_ver_str}
-Group: Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel_smp}
-Requires(post,postun): /sbin/depmod
-
-%description -n kernel%{_alt_kernel}-smp-net-ipp2p
-IPP2P is a netfilter extension to identify P2P filesharing traffic.
-The main goal for developing IPP2P was giving the adminstrator a
-dynamic tool to filter the traffic in an intelligent way. So it
-doesn't aim at prohibiting all P2P traffic but make it possible to
-shape this traffic to a given rate. For this purpose IPP2P searchs the
-payload of TCP packets for signaling patterns of P2P networks. As
-these patterns are not being present in all P2P packets we had to use
-some other netfilter extensions in order to get the whole IPP2P
-package working as already described. IPP2P works together with
-connection tracking and connection marking - in that way you can catch
-the bigger part of all P2P packets and limit the bandwidth rate.
-
-This package contains Linux SMP kernel module.
-
-%description -n kernel%{_alt_kernel}-smp-net-ipp2p -l pl.UTF-8
-IPP2P to rozszerzenie netfiltra służące do identyfikowania ruchu
-związanego z dzieleniem plików P2P. Głównym celem tworzenia IPP2P jest
-udostępnienie administratorowi dynamicznego narzędzia do filtrowania
-ruchu w inteligentny sposób. Nie jest nim zablokowanie całego ruchu
-P2P, ale umożliwienie ograniczenia tego ruchu do danej przepustowości.
-W tym celu IPP2P przeszukuje zawartość (payload) pakietów TCP pod
-kątem wzorców sygnalizujących sieci P2P. Jeśli tych wzorców nie ma w
-pakietach, muszą być użyte inne rozszerzenia netfiltra, aby IPP2P
-działało zgodnie z opisem. IPP2P współpracuje ze śledzeniem oraz
-znakowaniem połączeń - w ten sposób można wychwycić większą część
-pakietów P2P i ograniczyć wykorzystanie łącza przez nie.
-
-Ten pakiet zawiera moduł jądra Linuksa SMP.
-
%package -n iptables-ipp2p
Summary: IPP2P - a netfilter extension to identify P2P filesharing traffic
Summary(pl.UTF-8): IPP2P - rozszerzenie filtra pakietów identyfikujące ruch P2P
@@ -193,7 +149,7 @@
IPTABLES_VERSION="%{iptables_ver}"
%{__cc} %{rpmcflags} -DIPTABLES_VERSION=\"$IPTABLES_VERSION\" -fPIC -c libipt_ipp2p.c
#vim: "
-ld %{rpmldflags} -shared -o libipt_ipp2p.so libipt_ipp2p.o
+ld --as-needed -shared -o libipt_ipp2p.so libipt_ipp2p.o
%endif
%if %{with kernel}
@@ -222,26 +178,12 @@
%postun -n kernel%{_alt_kernel}-net-ipp2p
%depmod %{_kernel_ver}
-%post -n kernel%{_alt_kernel}-smp-net-ipp2p
-%depmod %{_kernel_ver}smp
-
-%postun -n kernel%{_alt_kernel}-smp-net-ipp2p
-%depmod %{_kernel_ver}smp
-
%if %{with kernel}
%files -n kernel%{_alt_kernel}-net-ipp2p
%defattr(644,root,root,755)
-%if %{with up} || %{without dist_kernel}
/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter/ipt_%{name}.ko*
%endif
-%if %{with smp} && %{with dist_kernel}
-%files -n kernel%{_alt_kernel}-smp-net-ipp2p
-%defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}smp/kernel/net/ipv4/netfilter/ipt_%{name}.ko*
-%endif
-%endif
-
%if %{with userspace}
%files -n iptables-ipp2p
%defattr(644,root,root,755)
@@ -254,6 +196,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.58 2007/03/25 16:06:55 shadzik
+- use new kernel macros
+- fix --as-needed (thx japhy)
+- remove smp stuff and bconds ('up' too)
+
Revision 1.57 2007/03/15 23:01:58 glen
- up bcond
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/ipp2p.spec?r1=1.57&r2=1.58&f=u
More information about the pld-cvs-commit
mailing list