From f159ae4c023d2d0bb49ccea4a98e2ac301cad966 Mon Sep 17 00:00:00 2001 From: tripolar Date: Sun, 10 Nov 2013 18:09:22 +0000 Subject: [PATCH] [packages] libnids: update to 1.24 Signed-off-by: Peter Wagner git-svn-id: svn://svn.openwrt.org/openwrt/packages@38708 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/libnids/Makefile | 9 +++++---- .../libnids/patches/001-no_asm_for_i386.patch | 13 ++++++------- libs/libnids/patches/002-configure.patch | 19 +++++++++---------- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/libs/libnids/Makefile b/libs/libnids/Makefile index 21c0de1e5..821542cf7 100644 --- a/libs/libnids/Makefile +++ b/libs/libnids/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libnids -PKG_VERSION:=1.18 +PKG_VERSION:=1.24 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=http://www.packetfactory.net/projects/libnids/dist/ -PKG_MD5SUM:=9ee6dcdfac97bae6fe611aa27d2594a5 +PKG_SOURCE_URL:=@SF/libnids +PKG_MD5SUM:=72d37c79c85615ffe158aa524d649610 include $(INCLUDE_DIR)/package.mk @@ -22,7 +22,7 @@ define Package/libnids CATEGORY:=Libraries DEPENDS:=+libnet0 TITLE:=A network intrusion detection library - URL:=http://www.packetfactory.net/projects/libnids/ + URL:=http://libnids.sourceforge.net/ endef define Package/libnids/description @@ -36,6 +36,7 @@ define Build/Configure --enable-static \ --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \ --with-libpcap="$(STAGING_DIR)/usr" \ + --disable-libglib \ , \ CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \ ) diff --git a/libs/libnids/patches/001-no_asm_for_i386.patch b/libs/libnids/patches/001-no_asm_for_i386.patch index ff6fde7b1..548f30dc5 100644 --- a/libs/libnids/patches/001-no_asm_for_i386.patch +++ b/libs/libnids/patches/001-no_asm_for_i386.patch @@ -1,10 +1,9 @@ -diff -ruN libnids-1.18-orig/src/checksum.c libnids-1.18/src/checksum.c ---- libnids-1.18-orig/src/checksum.c 2003-09-20 22:40:44.000000000 +0200 -+++ libnids-1.18/src/checksum.c 2005-08-09 23:55:00.000000000 +0200 -@@ -4,7 +4,7 @@ - #include - #include - +--- a/src/checksum.c ++++ b/src/checksum.c +@@ -25,7 +25,7 @@ static int dontchksum(unsigned int ip) + return 0; + } + -#if ( __i386__ || __i386 ) +#if 0 // all asm procedures are copied from Linux 2.0.36 and 2.2.10 kernels diff --git a/libs/libnids/patches/002-configure.patch b/libs/libnids/patches/002-configure.patch index 3b56aba8f..fdc9791eb 100644 --- a/libs/libnids/patches/002-configure.patch +++ b/libs/libnids/patches/002-configure.patch @@ -1,7 +1,6 @@ -diff -Nur libnids-1.18/configure libnids-1.18.patched/configure ---- libnids-1.18/configure 2003-10-15 01:40:09.000000000 +0200 -+++ libnids-1.18.patched/configure 2005-06-09 12:37:42.000000000 +0200 -@@ -3253,7 +3253,7 @@ +--- a/configure ++++ b/configure +@@ -3640,7 +3640,7 @@ presetting ac_cv_c_bigendian=no (or yes) esac @@ -10,7 +9,7 @@ diff -Nur libnids-1.18/configure libnids-1.18.patched/configure for ac_func in gettimeofday do -@@ -3489,17 +3489,21 @@ +@@ -3917,17 +3917,21 @@ if test "${with_libpcap+set}" = set; the echo "${ECHO_T}no" >&6 ;; *) @@ -38,7 +37,7 @@ diff -Nur libnids-1.18/configure libnids-1.18.patched/configure fi ;; esac -@@ -3605,10 +3609,10 @@ +@@ -4399,10 +4403,10 @@ echo "${ECHO_T}no" >&6 *) echo "$as_me:$LINENO: result: $withval" >&5 echo "${ECHO_T}$withval" >&6 @@ -51,12 +50,12 @@ diff -Nur libnids-1.18/configure libnids-1.18.patched/configure LNETLIB="-L$withval/lib -lnet" elif test -f $withval/include/libnet.h -a -f $withval/src/libnet.a; then owd=`pwd` -@@ -3861,7 +3865,7 @@ - else +@@ -4684,7 +4688,7 @@ else echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + -HAVE_BSD_UDPHDR=0 +HAVE_BSD_UDPHDR=1 fi - rm -f conftest.$ac_objext conftest.$ac_ext + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext