Hello community, here is the log from the commit of package libnet.1516 for openSUSE:12.3:Update checked in at 2013-04-02 16:31:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.3:Update/libnet.1516 (Old) and /work/SRC/openSUSE:12.3:Update/.libnet.1516.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libnet.1516", Maintainer is "" Changes: -------- New Changes file: --- /dev/null 2013-02-26 18:15:11.936010755 +0100 +++ /work/SRC/openSUSE:12.3:Update/.libnet.1516.new/libnet.changes 2013-04-02 16:31:35.000000000 +0200 @@ -0,0 +1,154 @@ +------------------------------------------------------------------- +Thu Mar 28 10:02:32 UTC 2013 - [email protected] + +- correctly detect the presence of PF_PACKET (bnc#810138) + * libnet-detect-presence-of-PF_PACKET.patch + +------------------------------------------------------------------- +Mon Feb 13 10:48:57 UTC 2012 - [email protected] + +- patch license to follow spdx.org standard + +------------------------------------------------------------------- +Sun Nov 20 20:45:32 UTC 2011 - [email protected] + +- Remove redundant/unwanted tags/section (cf. specfile guidelines) + +------------------------------------------------------------------- +Sat Nov 19 20:43:21 UTC 2011 - [email protected] + +- add libtool as buildrequire to avoid implicit dependency + +------------------------------------------------------------------- +Thu May 5 23:05:05 CEST 2011 - [email protected] + +- complete package rename to libnet1 + +------------------------------------------------------------------- +Wed Feb 9 12:18:57 UTC 2011 - [email protected] + +- minor specfile improvements +- removed dead/unused libnet-1.1.5-strict-aliasing-fix.diff + +------------------------------------------------------------------- +Sat Nov 20 16:14:05 UTC 2010 - [email protected] + +- fix requires of devel package + +------------------------------------------------------------------- +Fri Nov 19 12:53:43 UTC 2010 - [email protected] + +- update to 1.1.5 (from libnet-dev.sf.net) a bugfix release + see CHANGELOG for complete list of fixes from 1.1.2.1 +- patches changes: + * remove libnet-endianess-fix.diff + * remove libnet-shared.diff + * remove libnet-1.1.2.1-makefile.diff + * refresh libnet-1.1.5-strict-aliasing-fix.diff + * refresh libnet-1.1.5-arrray-fix.diff +- rename to libnet1 to conforms Shared Library Policy +- split devel files to libnet-devel and documentation to libnet-doc + +------------------------------------------------------------------- +Tue Nov 3 19:09:27 UTC 2009 - [email protected] + +- updated patches to apply with fuzz=0 + +------------------------------------------------------------------- +Tue Sep 9 14:54:14 CEST 2008 - [email protected] + +- after removing static libraries, syslog-ng complains that are + needed, so we move the shared library to /%{_lib} to really fix + the problem + +------------------------------------------------------------------- +Thu Sep 4 11:11:18 CEST 2008 - [email protected] + +- remove "la" file with empty dependency_libs +- disable static libraries +- libpcap is no longer needed for this package +- configure option --with-pf_packet does not exists anymore + +------------------------------------------------------------------- +Wed Mar 14 13:53:59 CET 2007 - [email protected] + +- fixed permissions of man pages [#254335] + +------------------------------------------------------------------- +Fri Feb 17 14:06:34 CET 2006 - [email protected] + +- fixed subscription beyond array and uninitialized variable [#151312] + +------------------------------------------------------------------- +Wed Jan 25 21:37:35 CET 2006 - [email protected] + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Sep 19 13:57:33 CEST 2005 - [email protected] + +- fixed some gcc warnings + +------------------------------------------------------------------- +Thu Nov 18 01:56:50 CET 2004 - [email protected] + +- fixed file list + +------------------------------------------------------------------- +Wed Aug 04 16:11:46 CEST 2004 - [email protected] + +- updated to version 1.1.2.1 + +------------------------------------------------------------------- +Wed Feb 11 13:33:44 CET 2004 - [email protected] + +- removed compiled files from /usr/share/doc/packages/libnet/sample + +------------------------------------------------------------------- +Tue Feb 10 11:20:01 CET 2004 - [email protected] + +- updated to version 1.1.1 +- removed obsoleted patches: autoconf-fix.diff, samples.diff +- fixed code that broke strict aliasing + +------------------------------------------------------------------- +Sun Jan 11 09:41:45 CET 2004 - [email protected] + +- add %run_ldconfig + +------------------------------------------------------------------- +Wed Aug 13 18:59:35 CEST 2003 - [email protected] + +- build also shared library + +------------------------------------------------------------------- +Thu Jul 24 19:37:25 CEST 2003 - [email protected] + +- honor detected endianess. + +------------------------------------------------------------------- +Thu Jul 24 13:51:33 CEST 2003 - [email protected] + +- update to version 1.1.0 + +------------------------------------------------------------------- +Mon Nov 11 12:59:41 CET 2002 - [email protected] + +- fixed deprecated multiline string literals + +------------------------------------------------------------------- +Wed Jan 9 13:02:28 CET 2002 - [email protected] + +- use %{_libdir} + +------------------------------------------------------------------- +Wed Feb 14 12:38:15 CET 2001 - [email protected] + +- update to version 1.0.2a +- clean up spec file + +------------------------------------------------------------------- +Thu Nov 16 22:40:56 CET 2000 - [email protected] + +- initial package (version 1.0.1b) + New: ---- libnet-1.1.2.1-uninitialized-fix.diff libnet-1.1.5-arrray-fix.diff libnet-1.1.5.tar.bz2 libnet-detect-presence-of-PF_PACKET.patch libnet.changes libnet.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libnet.spec ++++++ # # spec file for package libnet # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: libnet Summary: A C Library for Portable Packet Creation License: BSD-3-Clause Group: Development/Libraries/C and C++ Version: 1.1.5 Release: 0 Url: http://sourceforge.net/projects/libnet-dev Source: libnet-%{version}.tar.bz2 Patch1: libnet-1.1.2.1-uninitialized-fix.diff Patch2: libnet-1.1.5-arrray-fix.diff #PATCH-FIX-UPSTREAM: bnc#810138 Patch3: libnet-detect-presence-of-PF_PACKET.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libtool %description Libnet is an API to help with the construction and handling of network packets. It provides a portable framework for low-level network packet writing and handling. Libnet includes packet creation at the IP layer and at the link layer as well as a host of supplementary and complementary functionality. Libnet is very useful for writing network tools and network test code. See the man page and sample test code for more detailed information. %package -n libnet1 Summary: A C Library for Portable Packet Creation Group: Development/Libraries/C and C++ # was last used in openSUSE 11.3 Provides: libnet = 1.1.5 Obsoletes: libnet < 1.1.5 %description -n libnet1 Libnet is an API to help with the construction and handling of network packets. It provides a portable framework for low-level network packet writing and handling. Libnet includes packet creation at the IP layer and at the link layer as well as a host of supplementary and complementary functionality. Libnet is very useful for writing network tools and network test code. See the man page and sample test code for more detailed information. %package devel Summary: Devel files for libnet Group: Development/Libraries/C and C++ Requires: libnet1 = %{version} %description devel Libnet is an API to help with the construction and handling of network packets. This package contains devel files. %package doc Summary: Documentation for libnet Group: Development/Libraries/C and C++ %description doc Libnet is an API to help with the construction and handling of network packets. This package contains documentation. %prep %setup -q %patch1 %patch2 %patch3 -p1 %build autoreconf -fiv CFLAGS="%{optflags} -Wall -Wno-unused" \ %configure --libdir=/%{_lib} --disable-static --with-pic %{__make} %{?_smp_mflags} %install %{makeinstall} install -d -m 755 %{buildroot}/{%{_bindir},%{_mandir}/man3} install -m 755 libnet-config %{buildroot}/%{_bindir} install -m 644 doc/man/man3/*.3 %{buildroot}/%{_mandir}/man3 find doc/ sample/ -name "Makefile*" -o -name ".libs" | xargs rm -rf find sample -name "*.o" -o -type f -perm +111 |xargs rm -rf %{__rm} -v %{buildroot}/%{_lib}/*.la %{__install} -d -m 0755 %{buildroot}%{_libdir} %{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/libnet.so) %{buildroot}%{_libdir}/libnet.so %{__rm} -v %{buildroot}/%{_lib}/libnet.so %post -n libnet1 -p /sbin/ldconfig %postun -n libnet1 -p /sbin/ldconfig %files -n libnet1 %defattr(-,root,root) %doc doc/COPYING /%{_lib}/libnet.so.* %files devel %defattr(-,root,root) %{_bindir}/libnet-config %{_includedir}/libnet* %{_libdir}/libnet.so %doc %{_mandir}/man3/* %files doc %defattr(-,root,root) %doc doc/* sample %changelog ++++++ libnet-1.1.2.1-uninitialized-fix.diff ++++++ --- sample/icmp6_echoreq.c +++ sample/icmp6_echoreq.c @@ -107,6 +107,8 @@ } } + src_ip = libnet_name2addr6(l, "0:0:0:0:0:0:0:1", LIBNET_DONT_RESOLVE); + if (!dst_prt || strncmp((char*)&dst_ip,(char*)&in6addr_error,sizeof(in6addr_error))==0 || !packet_amt) { usage(argv[0]); --- src/libnet_if_addr.c +++ src/libnet_if_addr.c @@ -157,6 +157,7 @@ return(-1); } + ifr = NULL; pifr = NULL; lifr = (struct ifreq *)&ifc.ifc_buf[ifc.ifc_len]; ++++++ libnet-1.1.5-arrray-fix.diff ++++++ --- src/libnet_cq.c | 4 ++-- src/libnet_init.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) Index: src/libnet_cq.c =================================================================== --- src/libnet_cq.c.orig 2010-11-19 11:32:51.750943104 +0100 +++ src/libnet_cq.c 2010-11-19 11:33:29.934865042 +0100 @@ -116,7 +116,7 @@ /* label the context with the user specified string */ strncpy(l->label, label, LIBNET_LABEL_SIZE); - l->label[LIBNET_LABEL_SIZE] = '\0'; + l->label[LIBNET_LABEL_SIZE - 1] = '\0'; l_cq->next = NULL; l_cq->prev = NULL; @@ -147,7 +147,7 @@ /* label the context with the user specified string */ strncpy(l->label, label, LIBNET_LABEL_SIZE); - l->label[LIBNET_LABEL_SIZE] = '\0'; + l->label[LIBNET_LABEL_SIZE - 1] = '\0'; new->next = l_cq; new->prev = NULL; Index: src/libnet_init.c =================================================================== --- src/libnet_init.c.orig 2010-11-19 11:32:51.750943104 +0100 +++ src/libnet_init.c 2010-11-19 11:33:29.986870383 +0100 @@ -71,7 +71,7 @@ l->fd = -1; strncpy(l->label, LIBNET_LABEL_DEFAULT, LIBNET_LABEL_SIZE); - l->label[sizeof(l->label)] = '\0'; + l->label[sizeof(l->label) - 1] = '\0'; switch (l->injection_type) { ++++++ libnet-detect-presence-of-PF_PACKET.patch ++++++ commit 5f5a034d217e6beec837b3aafdb6afbb669f648b Author: Sam Roberts <[email protected]> Date: Tue Aug 23 11:48:06 2011 -0700 Presence of linux's PF_PACKET sockets is now detected. The acinclude.m4 merged in from packetfactory's 1.1.3-rc branch mysteriously assumed that that there was no PF_PACKET if the target OS was linux, which is the opposite of what we want. diff --git a/acinclude.m4 b/acinclude.m4 index 0913021..064b582 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -39,17 +39,10 @@ dnl AC_DEFUN([AC_LIBNET_CHECK_PF_PACKET], [ - AC_MSG_CHECKING(for packet socket (PF_SOCKET)) + AC_MSG_CHECKING(for packet socket (PF_PACKET)) AC_CACHE_VAL(libnet_cv_have_packet_socket, - [case "$target_os" in - - linux*) - libnet_cv_have_packet_socket=no - AC_MSG_RESULT(no) - ;; - *) - + [ cat > pf_packet-test.c << EOF #include <stdio.h> #include <errno.h> @@ -110,8 +103,8 @@ EOF fi rm -f pf_packet-test* core core.pf_packet-test - ;; - esac]) + + ]) if test $libnet_cv_have_packet_socket = yes -o $libnet_cv_have_packet_socket = probably; then AC_DEFINE(HAVE_PACKET_SOCKET, 1, diff --git a/configure.in b/configure.in index 9015696..7d57601 100644 --- a/configure.in +++ b/configure.in @@ -84,7 +84,7 @@ if test -n "${with_link_layer}"; then none) AC_LIBOBJ([libnet_link_none]) ;; *) AC_MSG_ERROR([Invalid link type "${with_link_layer}"]) ;; esac - AC_MSG_RESULT(forced link layer to ${with_link_layer}) + AC_MSG_RESULT(user selected link layer ${with_link_layer}) elif test "${cross_compiling}" != "yes" -a -r /dev/bpf0 ; then AC_LIBOBJ([libnet_link_bpf]) AC_MSG_RESULT(found link layer bpf) -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
