SPECS: libpcap_mmap.spec (NEW) - libpcap_mmap is an libpcap replac...

mguevara mguevara at pld-linux.org
Fri Feb 17 19:09:48 CET 2006


Author: mguevara                     Date: Fri Feb 17 18:09:48 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- libpcap_mmap is an libpcap replacement which, additionaly to the standard 
  way, implements shared memory ring buffer to speed up capture of data.
  Look at the following URL for more info:
  http://www.snort.org/docs/snort_htmanuals/htmanual_2.4/rc1/node27.html

---- Files affected:
SPECS:
   libpcap_mmap.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/libpcap_mmap.spec
diff -u /dev/null SPECS/libpcap_mmap.spec:1.1
--- /dev/null	Fri Feb 17 19:09:48 2006
+++ SPECS/libpcap_mmap.spec	Fri Feb 17 19:09:42 2006
@@ -0,0 +1,237 @@
+# $Revision$, $Date$
+Summary:	Libpcap provides promiscuous mode access to network interfaces
+Summary(es):	libpcap ofrece acceso a modo promiscuo en interfaces de red
+Summary(pl):	Libpcap pozwala na bezpośredni dostęp do interfejsów sieciowych
+Summary(pt_BR):	A libpcap fornece acesso ao modo promíscuo em interfaces de rede
+Summary(ru):	đŇĹÄĎÓÔÁ×ĚŃĹÔ ÄĎÓÔŐĐ Ë ÓĹÔĹ×ŮÍ ÉÎÔĹŇĆĹĘÓÁÍ × promiscuous-ŇĹÖÉÍĹ
+Summary(uk):	îÁÄÁ¤ ÄĎÓÔŐĐ ÄĎ ÍĹŇĹÖĹ×ÉČ ŚÎÔĹŇĆĹĘÓŚ× × promiscuous-ŇĹÖÉÍŚ
+%define		_name	libpcap
+%define		_ver	0.9.3
+Name:		%{_name}_mmap
+Version:	0.9.20050810b
+Release:	1
+#Epoch:		0
+License:	BSD
+Group:		Libraries
+Source0:	http://public.lanl.gov/cpw/%{_name}-%{version}.tar.gz
+# Source0-md5:	bfe7a1a9c8b38acef86f114639b150d1
+BuildRequires:	autoconf >= 2.53
+BuildRequires:	automake
+BuildRequires:	bison
+BuildRequires:	flex
+# beware of tar 1.13.9[12] madness (tarball contains libpcap-0.8.3/./* paths)
+BuildRequires:	tar >= 1:1.13.93
+Obsoletes:	%{_name}0
+Obsoletes:	%{_name}
+Provides:	%{_name}
+Provides:	%{_name}.so.0
+Provides:	%{_name}.so.%{_ver}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libpcap is a system-independent interface for user-level packet
+capture. Libpcap provides a portable framework for low-level network
+monitoring. Applications include network statistics collection,
+security monitoring, network debugging, etc. Libpcap has
+system-independent API that is used by several applications, including
+tcpdump and arpwatch.
+
+A libpcap version which supports MMAP mode on the linux kernel 
+2.[46].x.
+
+%description -l es
+libpcap es una interface independiente de sistema para captura de
+paquetes en modo usuario. Ofrece un esquema portátil para el control
+de la red en bajo nivel. Se utiliza para colecta de estadísticas de
+red, Control de seguridad, depuración de la red, etc. Tiene una API
+independiente de sistema que se usa por varias aplicaciones, entre
+ellas tcpdump y arpwatch.
+
+%description -l pl
+libpcap to niezależny od systemu interfejs do przechwytywania pakietów
+z poziomu użytkownika.
+
+Wersja ta obsługuje tryb MMAP obsługiwany przez kernele 2.4 i 2.6
+
+%description -l pt_BR
+A libpcap é uma interface independente de sistema para captura de
+pacotes em modo usuário. Fornece um esquema portátil para monitoraçăo
+da rede em baixo nível. É utilizada para coleta de estatísticas de
+rede, monitoramento de segurança, depuraçăo da rede, etc. Tem uma API
+independente de sistema que é usada por várias aplicaçőes, entre elas
+tcpdump e arpwatch.
+
+%description -l ru
+Libpcap - ÜÔĎ ÓÉÓÔĹÍÎĎÎĹÚÁ×ÉÓÉÍŮĘ ÉÎÔĹŇĆĹĘÓ ÄĚŃ ÚÁČ×ÁÔÁ ĐÁËĹÔĎ× Ó
+ĐĎĚŘÚĎ×ÁÔĹĚŘÓËĎÇĎ ŐŇĎ×ÎŃ É ÎÉÚËĎŐŇĎ×ÎĹ×ĎÇĎ ÓĹÔĹ×ĎÇĎ ÍĎÎÉÔĎŇÉÎÇÁ.
+÷ĎÚÍĎÖÎŮĹ ĐŇÉÍĹÎĹÎÉŃ ×ËĚŔŢÁŔÔ ÓÂĎŇ ÓĹÔĹ×ĎĘ ÓÔÁÔÉÓÔÉËÉ, ÎÁÂĚŔÄĹÎÉĹ ÚÁ
+ÂĹÚĎĐÁÓÎĎÓÔŘŔ, ĎÔĚÁÄËÁ ÓĹÔÉ É Ô.Ä. Libpcap ÉÍĹĹÔ ÓÉÓÔĹÍÎĎÎĹÚÁ×ÉÓÉÍŮĘ
+API, ÉÓĐĎĚŘÚŐĹÍŮĘ ÍÎĎÇÉÍÉ ĐŇÉĚĎÖĹÎÉŃÍÉ, ×ËĚŔŢÁŃ tcpdump É arpwatch.
+
+%description -l uk
+Libpcap - ĂĹ ÓÉÓÔĹÍÎĎÎĹÚÁĚĹÖÎÉĘ ŚÎÔĹŇĆĹĘÓ ÄĚŃ ÚÁČ×ÁÔŐ ĐÁËĹÔŚ× Ú ŇŚ×ÎŃ
+ËĎŇÉÓÔŐ×ÁŢÁ ÔÁ ÎŚÚËĎŇŚ×ÎĹ×ĎÇĎ ÍĎÎŚÔĎŇÉÎÇŐ ÍĹŇĹÖŚ. íĎÖĚÉ׌ ×ÉËĎŇÉÓÔÁÎÎŃ
+×ËĚŔŢÁŔÔŘ ÚÂŚŇ ÓÔÁÔÉÓÔÉËÉ ÍĹŇĹÖŚ, ÓĐĎÓÔĹŇĹÖĹÎÎŃ ÚÁ ÂĹÚĐĹËĎŔ, ׌ÄĚÁÄËÁ
+ÍĹŇĹÖŚ Ś Ô.Ś. Libpcap ÍÁ¤ ÓÉÓÔĹÍÎĎÎĹÚÁĚĹÖÎÉĘ API ÝĎ ×ÉËĎŇÉÓÔĎ×Ő¤ÔŘÓŃ
+ÂÁÇÁÔŘÍÁ ĐŇĎÇŇÁÍÁÍÉ, ÔÁËÉÍÉ ŃĚ tcpdump, arpwatch ÔÁ trafshow.
+
+%package devel
+Summary:	Header files and develpment documentation for libpcap
+Summary(es):	Arquivos de cabeçalho e bibliotecas de desenvolvimento para libpcap
+Summary(pl):	Pliki nagłówkowe i dokumetacja do libpcap
+Summary(pt_BR):	Bibliotecas e arquivos de inclusăo para a libpcap
+Summary(ru):	čĹÄĹŇŮ É ÂÉÂĚÉĎÔĹËÉ ĐŇĎÇŇÁÍÉÓÔÁ ÄĚŃ libpcap
+Summary(uk):	čĹÄĹŇÉ ÔÁ ÂŚÂĚŚĎÔĹËÉ ĐŇĎÇŇÁÍŚÓÔÁ ÄĚŃ libpcap
+Group:		Development/Libraries
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+Obsoletes:	%{_name}0-devel
+
+%description devel
+Libpcap provides a portable framework for low-level network
+monitoring. Libpcap can provide network statistics collection,
+security monitoring and network debugging. Since almost every system
+vendor provides a different interface for packet capture, the libpcap
+authors created this system-independent API to ease in porting and to
+alleviate the need for several system-dependent packet capture modules
+in each application.
+
+Install libpcap if you need to do low-level network traffic monitoring
+on your network.
+
+%description devel -l pl
+Pliki nagłówkowe i dokumentacja do libpcap.
+
+%description devel -l pt_BR
+Tcpdump imprime os cabeçalhos dos pacotes em uma interface de rede.
+Ele é muito prático para resolver problemas na rede e para operaçőes
+de segurança.
+
+%description devel -l ru
+čĹÄĹŇŮ É ÂÉÂĚÉĎÔĹËÉ ĐŇĎÇŇÁÍÉÓÔÁ, ÎĹĎÂČĎÄÉÍŮĹ ÄĚŃ ĐŇĎÇŇÁÍÍÉŇĎ×ÁÎÉŃ Ó
+libpcap.
+
+%description devel -l uk
+čĹÄĹŇÉ ÔÁ ÂŚÂĚŚĎÔĹËÉ ĐŇĎÇŇÁÍŚÓÔÁ, ÎĹĎÂČŚÄÎŚ ÄĚŃ ĐŇĎÇŇÁÍŐ×ÁÎÎŃ Ú
+libpcap.
+
+%package static
+Summary:	Static libpcap library
+Summary(es):	Biblioteca estática usada no desenvolvimento de aplicativos com libpcap
+Summary(pl):	Biblioteka statyczna libpcap
+Summary(pt_BR):	Biblioteca estática de desenvolvimento
+Summary(ru):	óÔÁÔÉŢĹÓËÁŃ ÂÉÂĚÉĎÔĹËÁ libpcap
+Summary(uk):	óÔÁÔÉŢÎÁ ÂŚÂĚŚĎÔĹËÁ libpcap
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
+
+%description static
+Libpcap provides a portable framework for low-level network
+monitoring. Libpcap can provide network statistics collection,
+security monitoring and network debugging. Since almost every system
+vendor provides a different interface for packet capture, the libpcap
+authors created this system-independent API to ease in porting and to
+alleviate the need for several system-dependent packet capture modules
+in each application.
+
+This package contains the static library used for development.
+
+%description static -l pt_BR
+Tcpdump imprime os cabeçalhos dos pacotes em uma interface de rede.
+Ele é muito prático para resolver problemas na rede e para operaçőes
+de segurança.
+
+%description static -l pl
+Biblioteka statyczna libpcap.
+
+%description static -l ru
+óÔÁÔÉŢĹÓËÁŃ ÂÉÂĚÉĎÔĹËÁ, ÎĹĎÂČĎÄÉÍÁŃ ÄĚŃ ĐŇĎÇŇÁÍÍÉŇĎ×ÁÎÉŃ Ó libpcap.
+
+%description static -l uk
+óÔÁÔÉŢÎÁ ÂŚÂĚŚĎÔĹËÁ, ÎĹĎÂČŚÄÎÁ ÄĚŃ ĐŇĎÇŇÁÍŐ×ÁÎÎŃ Ú libpcap.
+
+%prep
+%setup -q -n %{_name}-%{version}
+#%patch0 -p1
+
+%build
+cp -f /usr/share/automake/config.sub .
+%{__autoconf}
+%configure \
+	--enable-shared \
+	--prefix=%{_prefix}
+	
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+mkdir -p $RPM_BUILD_ROOT/%{_libdir}
+mkdir -p $RPM_BUILD_ROOT/%{_includedir}
+mkdir -p $RPM_BUILD_ROOT/%{_includedir}/net
+mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3
+mkdir -p $RPM_BUILD_ROOT/%{_docdir}
+
+install pcap.3 		$RPM_BUILD_ROOT/%{_mandir}/man3
+
+install pcap.h 		$RPM_BUILD_ROOT/%{_includedir}
+install pcap-bpf.h 	$RPM_BUILD_ROOT/%{_includedir}/net
+install pcap-int.h	$RPM_BUILD_ROOT/%{_includedir}
+install pcap-namedb.h	$RPM_BUILD_ROOT/%{_includedir}
+install pcap-septel.h	$RPM_BUILD_ROOT/%{_includedir}
+install pcap-dag.h	$RPM_BUILD_ROOT/%{_includedir}
+install pcap-ring.h	$RPM_BUILD_ROOT/%{_includedir}
+
+# some packages want it... but sanitize somehow
+# (don't depend on HAVE_{STRLCPY,SNPRINTF,VSNPRINTF} defines)
+sed -e '262,268d;271,280d' pcap-int.h > $RPM_BUILD_ROOT%{_includedir}/pcap-int.h
+
+#install doc/pcap.*	$RPM_BUILD_ROOT/%{_docdir}
+
+install .libs/%{_name}-%{_ver}.so	$RPM_BUILD_ROOT/%{_libdir}
+install .libs/%{_name}.a		$RPM_BUILD_ROOT/%{_libdir}
+
+cd $RPM_BUILD_ROOT/%{_libdir}
+
+mv -f %{_name}-%{_ver}.so 	%{_name}.so.%{_ver}
+ln -s %{_name}.so.%{_ver}	%{_name}.so.0
+ln -s %{_name}.so.%{_ver}       %{_name}.so.0.5
+ln -s %{_name}.so.%{_ver}       %{_name}.so.0.6
+ln -s %{_name}.so.%{_ver}       %{_name}.so.0.7
+ln -s %{_name}.so.%{_ver}       %{_name}.so.0.8
+ln -s %{_name}.so.%{_ver}       %{_name}.so.0.9
+ln -s %{_name}.so.%{_ver}	%{_name}.so
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES CREDITS LICENSE README README.ring README.linux README.dag README.septel VERSION REVISION doc/pcap.*
+%attr(755,root,root) %{_libdir}/lib*.so.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/*.h
+%{_includedir}/net/*.h
+%{_mandir}/man?/*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/02/17 18:09:42  mguevara
+- libpcap_mmap is an libpcap replacement which, additionaly to the standard
+  way, implements shared memory ring buffer to speed up capture of data.
+  Look at the following URL for more info:
+  http://www.snort.org/docs/snort_htmanuals/htmanual_2.4/rc1/node27.html
+
================================================================


More information about the pld-cvs-commit mailing list