]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/commitdiff
libnet: Update to version 1.1.6
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 19 Jun 2016 17:55:24 +0000 (13:55 -0400)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Sep 2016 16:23:09 +0000 (12:23 -0400)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
libnet/libnet.nm
libnet/patches/libnet-1.1.4-capability.patch [deleted file]

index 01c84dce11403b77e0b0915b5d1e371f57ade615..8717ef1ff3c1cccc9f6f789322a50f9c7b5f0ef0 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = libnet
-version    = 1.1.4
+version    = 1.1.6
 release    = 1
 
 groups     = System/Libraries
@@ -21,7 +21,7 @@ description
        as well as a host of supplementary and complementary functionality.
 end
 
-source_dl  =
+source_dl  = https://sourceforge.net/projects/libnet-dev/files/
 
 packages
        package %{name}
diff --git a/libnet/patches/libnet-1.1.4-capability.patch b/libnet/patches/libnet-1.1.4-capability.patch
deleted file mode 100644 (file)
index a29dce2..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-Patch by Robert Scheck <robert@fedoraproject.org> for libnet >= 1.1.4, which backports
-capability support instead of explicitly checking for UID 0. Further information can be
-found at the following links:
-
- - https://bugzilla.redhat.com/show_bug.cgi?id=589770
- - http://github.com/sam-github/libnet/commit/671742244c20804c9e935326e3649dac3382f17a
-
---- libnet-1.1.4/src/libnet_init.c                     2009-06-05 02:31:44.000000000 +0200
-+++ libnet-1.1.4/src/libnet_init.c.capability          2010-07-09 22:57:10.000000000 +0200
-@@ -44,14 +44,7 @@
- {
-     libnet_t *l = NULL;
--#if !defined(__WIN32__)
--    if (getuid() && geteuid())
--    {
--        snprintf(err_buf, LIBNET_ERRBUF_SIZE,
--                "%s(): UID or EUID of 0 required\n", __func__);
--        goto bad;
--    }
--#else
-+#if defined(__WIN32__)
-     WSADATA wsaData;
-     if ((WSAStartup(0x0202, &wsaData)) != 0)
---- libnet-1.1.4/src/libnet_link_linux.c               2009-06-05 02:31:44.000000000 +0200
-+++ libnet-1.1.4/src/libnet_link_linux.c.capability    2010-07-09 22:58:33.000000000 +0200
-@@ -90,8 +90,15 @@
-     if (ioctl(l->fd, SIOCGIFHWADDR, &ifr) < 0 )
-     {
--        snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,
--                "SIOCGIFHWADDR: %s", strerror(errno));
-+        if (errno == EPERM) {
-+            snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,
-+                     "%s(): UID/EUID 0 or capability CAP_NET_RAW required",
-+                     __func__);
-+
-+        } else {
-+            snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,
-+                     "socket: %s", strerror(errno));
-+        }
-         goto bad;
-     }