Hello community,
here is the log from the commit of package libnetfilter_queue for
openSUSE:Factory checked in at 2012-10-23 19:39:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libnetfilter_queue (Old)
and /work/SRC/openSUSE:Factory/.libnetfilter_queue.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libnetfilter_queue", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/libnetfilter_queue/libnetfilter_queue.changes
2012-01-04 07:24:53.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.libnetfilter_queue.new/libnetfilter_queue.changes
2012-10-23 19:39:18.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Oct 8 12:25:39 UTC 2012 - [email protected]
+
+- Update to new upstream release 1.0.2
+* This release provides new interfaces to interact with libmnl.
+
+-------------------------------------------------------------------
Old:
----
libnetfilter_queue-1.0.1.tar.bz2
libnetfilter_queue-1.0.1.tar.bz2.sig
New:
----
libnetfilter_queue-1.0.2.tar.bz2
libnetfilter_queue-1.0.2.tar.bz2.sig
rhel6-iptos.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libnetfilter_queue.spec ++++++
--- /var/tmp/diff_new_pack.TxiSn7/_old 2012-10-23 19:39:24.000000000 +0200
+++ /var/tmp/diff_new_pack.TxiSn7/_new 2012-10-23 19:39:24.000000000 +0200
@@ -16,23 +16,32 @@
#
-
Name: libnetfilter_queue
-%define libsoname %{name}1
-Version: 1.0.1
-Release: 1
+%define lname %{name}1
+Version: 1.0.2
+Release: 0
+Summary: Userspace library for packets that have been queued by the
kernel packet filter
License: GPL-2.0
Group: Productivity/Networking/Security
Url: http://netfilter.org/projects/libnetfilter_queue/
#Git-Clone: git://git.netfilter.org/libnetfiler_queue
-Source:
ftp://ftp.netfilter.org/pub/libnetfilter_queue/%name-%version.tar.bz2
-Source2:
ftp://ftp.netfilter.org/pub/libnetfilter_queue/%name-%version.tar.bz2.sig
+#DL-URL: http://netfilter.org/projects/libnetfilter_queue/files/
+Source:
http://netfilter.org/projects/libnetfilter_queue/files/%name-%version.tar.bz2
+Source2:
http://netfilter.org/projects/libnetfilter_queue/files/%name-%version.tar.bz2.sig
Source3: baselibs.conf
+Patch1: rhel6-iptos.diff
+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: autoconf automake >= 1.6 libtool
-BuildRequires: pkgconfig >= 0.23 pkgconfig(libnfnetlink) >= 0.0.41
-Summary: Userspace library for packets that have been queued by the
kernel packet filter
+#BuildRequires: libtool
+BuildRequires: pkgconfig >= 0.21
+%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
+BuildRequires: pkgconfig(libmnl) >= 1.0.3
+BuildRequires: pkgconfig(libnfnetlink) >= 0.0.41
+%else
+BuildRequires: libmnl-devel >= 1.0.3
+BuildRequires: libnfnetlink-devel >= 0.0.41
+%endif
%description
libnetfilter_queue is a userspace library providing an API to packets
@@ -41,11 +50,11 @@
libnetfilter_queue has been previously known as libnfnetlink_queue.
-%package -n %libsoname
-Group: System/Libraries
+%package -n %lname
Summary: Userspace library for packets that have been queued by the
kernel packet filter
+Group: System/Libraries
-%description -n %libsoname
+%description -n %lname
libnetfilter_queue is a userspace library providing an API to packets
that have been queued by the kernel packet filter. It is is part of a
system that deprecates the old ip_queue / libipq mechanism.
@@ -53,9 +62,10 @@
libnetfilter_queue has been previously known as libnfnetlink_queue.
%package devel
-Group: Development/Libraries/C and C++
-Requires: %libsoname = %version, libnfnetlink-devel
+Requires: %lname = %version
+Requires: libnfnetlink-devel
Summary: Userspace library for packets that have been queued by the
kernel packet filter
+Group: Development/Libraries/C and C++
%description devel
libnetfilter_queue is a userspace library providing an API to packets
@@ -66,29 +76,27 @@
%prep
%setup -q
+%patch -P 1 -p1
%build
-if [ ! -e configure ]; then
- ./autogen.sh;
-fi;
%configure --disable-static --includedir=%_includedir/%name-%version
-make %{?_smp_mflags}
+make %{?_smp_mflags} KERNELDIR="ignore";
%install
-%makeinstall
+make install DESTDIR="%buildroot" KERNELDIR="ignore";
rm -f "%buildroot/%_libdir"/*.la;
-%post -n %libsoname -p /sbin/ldconfig
+%post -n %lname -p /sbin/ldconfig
-%postun -n %libsoname -p /sbin/ldconfig
+%postun -n %lname -p /sbin/ldconfig
-%files -n %libsoname
+%files -n %lname
%defattr(-,root,root)
%_libdir/libnetfilter_queue.so.1*
%files devel
%defattr(-,root,root)
-%_includedir/libnetfilter_queue*
+%_includedir/%name-%version
%_libdir/libnetfilter_queue.so
%_libdir/pkgconfig/libnetfilter_queue.pc
++++++ libnetfilter_queue-1.0.1.tar.bz2 -> libnetfilter_queue-1.0.2.tar.bz2
++++++
++++ 33972 lines of diff (skipped)
++++++ rhel6-iptos.diff ++++++
From: Jan Engelhardt <[email protected]>
Date: 2012-10-09 02:46:29.418099680 +0200
Upstream: never
glibc before version 2.13 has a bug in netinet/ip.h:
#define IPTOS_CLASS(class) ((tos) & IPTOS_CLASS_MASK)
Namely, it does not use "class", but "tos". And þe olde RHEL 6
even ships that... bleh.
---
src/extra/ipv4.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: libnetfilter_queue-1.0.2/src/extra/ipv4.c
===================================================================
--- libnetfilter_queue-1.0.2.orig/src/extra/ipv4.c
+++ libnetfilter_queue-1.0.2/src/extra/ipv4.c
@@ -133,12 +133,13 @@ int nfq_ip_snprintf(char *buf, size_t si
int ret;
struct in_addr src = { iph->saddr };
struct in_addr dst = { iph->daddr };
+ unsigned int tos = iph->tos;
ret = snprintf(buf, size, "SRC=%s DST=%s LEN=%u TOS=0x%X "
"PREC=0x%X TTL=%u ID=%u PROTO=%u ",
inet_ntoa(src), inet_ntoa(dst),
ntohs(iph->tot_len), IPTOS_TOS(iph->tos),
- IPTOS_PREC(iph->tos), iph->ttl, ntohs(iph->id),
+ IPTOS_PREC(tos), iph->ttl, ntohs(iph->id),
iph->protocol);
return ret;
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]