Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=12acce056bc82d48bd2a56fe6aa23a8c686d6315

commit 12acce056bc82d48bd2a56fe6aa23a8c686d6315
Author: Miklos Vajna <[email protected]>
Date:   Sun Mar 25 13:07:43 2012 +0200

libnet-1.1.5-1-x86_64

- version bump

diff --git a/source/lib-extra/libnet/FrugalBuild 
b/source/lib-extra/libnet/FrugalBuild
index 6f9db81..2b3c20a 100644
--- a/source/lib-extra/libnet/FrugalBuild
+++ b/source/lib-extra/libnet/FrugalBuild
@@ -3,31 +3,18 @@
# Maintainer: Miklos Vajna <[email protected]>

pkgname=libnet
-pkgver=1.1.2.1
-pkgrel=4
+pkgver=1.1.5
+pkgrel=1
pkgdesc="A high-level API allowing the application programmer to construct and 
inject network packets."
url="http://www.packetfactory.net/libnet/";
depends=('glibc')
groups=('lib-extra')
archs=('i686' 'x86_64' 'arm')
-up2date="lynx -dump $url | grep 'Latest Stable' | sed 's/.*\]//'"
-source=(http://www.packetfactory.net/libnet/dist/libnet.tar.gz \
-       libnet-1.1.2.1-autotools.patch libnet-1.1.2.1-fix-chksum.patch)
-sha1sums=('760783a2adbd845b731e2000aafa3cd9c3b028d5' \
-          'ce8e043fba6cea7b625efacad1a99954c5dff27c' \
-          '5a2fc6f2a540016edb82743a73cb30fef5fb9f62')
+_F_sourceforge_dirname="libnet-dev"
+Finclude sourceforge
+sha1sums=('a2271762a7d6505c1ff6c4c048bf802e643b6790')
if [ "$CARCH" == "x86_64" ] ; then
CFLAGS="$CFLAGS -fPIC"
fi
-_F_cd_path="$pkgname"
-
-build()
-{
-       Fcd
-       Fpatchall
-       Fautoreconf
-       Fmake
-       Fmakeinstall
-}

# optimization OK
diff --git a/source/lib-extra/libnet/libnet-1.1.2.1-autotools.patch 
b/source/lib-extra/libnet/libnet-1.1.2.1-autotools.patch
deleted file mode 100644
index 0f4c650..0000000
--- a/source/lib-extra/libnet/libnet-1.1.2.1-autotools.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-Patch ripped from Debian.  Add support for building a shared
-libnet library (for PIC loving).  Also fixes typo for installing
-the libnet-config script.
-
-http://bugs.gentoo.org/show_bug.cgi?id=82926
-
---- libnet-1.1.2.1.orig/src/Makefile.am
-+++ libnet-1.1.2.1/src/Makefile.am
-@@ -8,9 +8,9 @@
-
- include $(top_srcdir)/Makefile.am.common
-
--lib_LIBRARIES = libnet.a
-+lib_LTLIBRARIES = libnet.la
-
--libnet_a_SOURCES = libnet_asn1.c \
-+libnet_la_SOURCES = libnet_asn1.c \
-                       libnet_build_802.1q.c \
-                       libnet_build_802.1x.c \
-                       libnet_build_802.2.c \
-@@ -57,15 +57,20 @@
-                       libnet_version.c \
-                       libnet_write.c
-
--EXTRA_libnet_a_SOURCES = libnet_link_bpf.c \
--                      libnet_link_dlpi.c \
--                      libnet_link_linux.c \
--                      libnet_link_nit.c \
--                      libnet_link_none.c \
--                      libnet_link_pf.c \
--                      libnet_link_snit.c \
--                      libnet_link_snoop.c \
--                      libnet_link_win32.c
--
--libnet_a_LIBADD = @LIBOBJS@
-+libnet_la_LIBADD = @LTLIBOBJS@
-
-+#   Here are a set of rules to help you update your library version
-+# information:
-+#
-+#   1. If the library source code has changed at all since the last
-+#      update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
-+#
-+#   2. If any interfaces have been added, removed, or changed since the
-+#      last update, increment CURRENT, and set REVISION to 0.
-+#
-+#   3. If any interfaces have been added since the last public release,
-+#      then increment AGE.
-+#
-+#   4. If any interfaces have been removed since the last public release,
-+#      then set AGE to 0.
-+libnet_la_LDFLAGS = -version-info 4:0:3 # CURRENT[:REVISION[:AGE]]
---- libnet-1.1.2.1.orig/configure.in
-+++ libnet-1.1.2.1/configure.in
-@@ -21,7 +21,7 @@
- dnl
- AC_PROG_CC
- AC_PROG_INSTALL
--AC_PROG_RANLIB
-+AC_PROG_LIBTOOL
-
- AC_CHECK_HEADERS(sys/sockio.h)
-
---- libnet-1.1.2.1.orig/Makefile.am
-+++ libnet-1.1.2.1/Makefile.am
-@@ -12,4 +12,4 @@
-
- EXTRA_DIST = Makefile.am.common
-
--bin_scripts = libnet-config
-+bin_SCRIPTS = libnet-config
---- libnet-1.1.2.1.orig/sample/Makefile.am
-+++ libnet-1.1.2.1/sample/Makefile.am
-@@ -60,4 +60,4 @@
- ip_link_SOURCES               = ip_link.c
- sebek_SOURCES           = sebek.c
-
--LDADD = $(top_srcdir)/src/libnet.a
-+LDADD = $(top_srcdir)/src/libnet.la
diff --git a/source/lib-extra/libnet/libnet-1.1.2.1-fix-chksum.patch 
b/source/lib-extra/libnet/libnet-1.1.2.1-fix-chksum.patch
deleted file mode 100644
index e6f9bbc..0000000
--- a/source/lib-extra/libnet/libnet-1.1.2.1-fix-chksum.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Fix a bug in chksum calculation for odd sized UDP packets.
-
-http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=284729
-
---- libnet-1.1.2.1/src/libnet_checksum.c
-+++ libnet-1.1.2.1/src/libnet_checksum.c
-@@ -42,8 +42,10 @@
- libnet_in_cksum(u_int16_t *addr, int len)
- {
-     int sum;
-+    u_int16_t last_byte;
-
-     sum = 0;
-+    last_byte = 0;
-
-     while (len > 1)
-     {
-@@ -52,7 +54,8 @@
-     }
-     if (len == 1)
-     {
--        sum += *(u_int16_t *)addr;
-+        *(u_int8_t*)&last_byte = *(u_int8_t*)addr;
-+        sum += last_byte;
-     }
-
-     return (sum);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to