From ad60cb92689dacbad80daf57860717f103d4f1e3 Mon Sep 17 00:00:00 2001 From: icedphoenix Date: Thu, 30 Aug 2012 16:42:02 +0400 Subject: [PATCH] update to 1.3.0 --- .abf.yml | 2 +- libpcap-1.1.1.tar.gz.sig | Bin 72 -> 0 bytes libpcap-1.3.0.tar.gz.sig | 9 ++++ libpcap-man.patch | 12 +++++ libpcap-multilib.patch | 61 +++++++++++++++++++++ libpcap.spec | 100 ++++++++++++++++++----------------- lpthread-1.3.0-libpcap.patch | 13 +++++ 7 files changed, 147 insertions(+), 50 deletions(-) delete mode 100644 libpcap-1.1.1.tar.gz.sig create mode 100644 libpcap-1.3.0.tar.gz.sig create mode 100644 libpcap-man.patch create mode 100644 libpcap-multilib.patch create mode 100644 lpthread-1.3.0-libpcap.patch diff --git a/.abf.yml b/.abf.yml index 4663c2f..0b55f7f 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,2 @@ sources: - "libpcap-1.1.1.tar.gz": 18581af5e78a40b7b2c9a6cd8ce40e7cb1cd9c63 + "libpcap-1.3.0.tar.gz": 90aa2f0fcfb4bf79fc50ccdaa70f484d96295be3 diff --git a/libpcap-1.1.1.tar.gz.sig b/libpcap-1.1.1.tar.gz.sig deleted file mode 100644 index e6da8d87810742dd8aac6c949ff23443e80b8439..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 72 zcmV-O0Jr~$Mg#y60ssaD0!zA`A^-{r5JpWr>xt= %{version}-%{release} Provides: pcap-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{mklibname pcap -d 0} @@ -80,68 +76,79 @@ compile applications such as tcpdump, etc. %prep %setup -q -n %{name}-%{version} -#%patch0 -p0 -#%patch1 -p1 -#%patch2 -p0 +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 + + +#sparc needs -fPIC +%ifarch %{sparc} +sed -i -e 's|-fpic|-fPIC|g' configure +%endif %build -%serverbuild +export CFLAGS="%{optflags} -fno-strict-aliasing" +#export CFLAGS="%{optflags} -fPIC" %configure2_5x \ - --enable-ipv6 + --enable-ipv6 \ + --enable-bluetooth -%make "CCOPT=$CFLAGS -fPIC" all -%make "CCOPT=$CFLAGS -fPIC" shared +%make +# LIBS='-lpthread' %install -rm -rf %{buildroot} - install -d %{buildroot}%{_bindir} -make DESTDIR=%{buildroot} install -make DESTDIR=%{buildroot} install-shared - -ln -snf libpcap.so.%{major} %{buildroot}%{_libdir}/libpcap.so +%makeinstall_std # install additional headers install -m0644 pcap-int.h %{buildroot}%{_includedir}/ install -m0644 pcap/bluetooth.h %{buildroot}%{_includedir}/pcap/ -%if %mdkversion < 200900 -%post -n %{libname} -p /sbin/ldconfig -%endif - -%if %mdkversion < 200900 -%postun -n %{libname} -p /sbin/ldconfig -%endif - -%clean -rm -rf %{buildroot} +# nuke the statis lib +rm -f %{buildroot}%{_libdir}/libpcap.a %files -n %{libname} -%defattr(-,root,root) %doc README* CREDITS INSTALL.txt LICENSE %{_libdir}/libpcap.so.%{major}* %files doc -%defattr(-,root,root) %{_mandir}/man?/* - %files -n %{develname} -%defattr(-,root,root) %doc CHANGES TODO %{_bindir}/pcap-config %dir %{_includedir}/pcap %{_includedir}/pcap/*.h %{_includedir}/*.h %{_libdir}/libpcap.so -%{_libdir}/libpcap.a - %changelog -* Mon May 02 2011 Oden Eriksson 1.1.1-4mdv2011.0 +* Wed Jun 20 2012 Alexander Khrukin 1.3.0-1 ++ Revision: 806293 +- version update 1.3.0 + +* Mon Mar 26 2012 Bernhard Rosenkraenzer 1.2.1-2 ++ Revision: 787040 +- Rebuild in current environment + +* Tue Jan 10 2012 Alexander Khrukin 1.2.1-1 ++ Revision: 759358 +- version update 1.2.1 + +* Mon Nov 28 2011 Oden Eriksson 1.2.0-1 ++ Revision: 734889 +- 1.2.0 +- fix deps (still needs netfilter headers though?) +- various cleanups +- make pcap-config "arch safe" ;) + + + Matthew Dawkins + - properly commented out patches + +* Mon May 02 2011 Oden Eriksson 1.1.1-4 + Revision: 661514 - mass rebuild @@ -207,7 +214,7 @@ rm -rf %{buildroot} + Pixel - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers - + Olivier Blin + + Olivier Blin - restore BuildRoot + Thierry Vignaud @@ -239,11 +246,6 @@ rm -rf %{buildroot} + Revision: 43309 - using -fstack-protector - -* Wed Nov 22 2006 Oden Eriksson 0.9.5-1mdv2007.0 -+ Revision: 86095 -- Import libpcap - * Wed Nov 22 2006 Oden Eriksson 0.9.5-1mdv2007.1 - 0.9.5 diff --git a/lpthread-1.3.0-libpcap.patch b/lpthread-1.3.0-libpcap.patch new file mode 100644 index 0000000..f3d284f --- /dev/null +++ b/lpthread-1.3.0-libpcap.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.in b/Makefile.in +index 772cc7d..8065973 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -52,7 +52,7 @@ INCLS = -I. @V_INCLS@ + DEFS = @DEFS@ @V_DEFS@ + ADDLOBJS = @ADDLOBJS@ + ADDLARCHIVEOBJS = @ADDLARCHIVEOBJS@ +-LIBS = @LIBS@ ++LIBS = @LIBS@ -lpthread + CFLAGS = @CFLAGS@ + LDFLAGS = @LDFLAGS@ + DYEXT = @DYEXT@