Import buildroot 2016.02.01
This commit is contained in:
23
firmware/buildroot/package/ngrep/0001-make-objs.patch
Normal file
23
firmware/buildroot/package/ngrep/0001-make-objs.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
ngrep: don't include regex objects since we're using pcre
|
||||
|
||||
Signed-off-by: Wade Berrier <wberrier@gmail.com>
|
||||
|
||||
--- ngrep-1.45/Makefile.in.orig 2006-11-28 06:35:37.000000000 -0700
|
||||
+++ ngrep-1.45/Makefile.in 2011-06-29 14:05:27.000000000 -0600
|
||||
@@ -32,13 +32,13 @@
|
||||
|
||||
INSTALL = ./install-sh
|
||||
|
||||
-REGEX_DIR=@REGEX_DIR@
|
||||
-REGEX_OBJS=@REGEX_OBJS@
|
||||
+REGEX_DIR=
|
||||
+REGEX_OBJS=
|
||||
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
-$(TARGET): $(REGEX_OBJS) $(OBJS)
|
||||
+$(TARGET): $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(STRIPFLAG) -o $(TARGET) $(OBJS) $(REGEX_OBJS) $(LIBS)
|
||||
|
||||
debug: $(REGEX_OBJS) $(OBJS)
|
||||
16
firmware/buildroot/package/ngrep/0002-pcre-header.patch
Normal file
16
firmware/buildroot/package/ngrep/0002-pcre-header.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
ngrep: don't use versioned header
|
||||
|
||||
Signed-off-by: Wade Berrier <wberrier@gmail.com>
|
||||
|
||||
diff -ur ngrep-1.45/ngrep.c ngrep-1.45.mod/ngrep.c
|
||||
--- ngrep-1.45/ngrep.c Tue Nov 28 15:38:43 2006
|
||||
+++ ngrep-1.45.mod/ngrep.c Sat May 19 10:21:27 2007
|
||||
@@ -92,7 +92,7 @@
|
||||
#endif
|
||||
|
||||
#if USE_PCRE
|
||||
-#include "pcre-5.0/pcre.h"
|
||||
+#include "pcre.h"
|
||||
#else
|
||||
#include "regex-0.12/regex.h"
|
||||
#endif
|
||||
25
firmware/buildroot/package/ngrep/0003-fix-static-link.patch
Normal file
25
firmware/buildroot/package/ngrep/0003-fix-static-link.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
ngrep: fix static link with pcre
|
||||
|
||||
Libraries must be placed after object files.
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
|
||||
---
|
||||
Makefile.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 2ae4506..761d7d9 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -11,7 +11,7 @@ CFLAGS=@CFLAGS@ -D@OS@ @DEFS@ @EXTRA_DEFINES@
|
||||
INCLUDES=-I@srcdir@ @PCAP_INCLUDE@ @EXTRA_INCLUDES@
|
||||
|
||||
LDFLAGS=@LDFLAGS@ @PCAP_LINK@
|
||||
-LIBS=-lpcap @EXTRA_LIBS@
|
||||
+LIBS=@LIBS@ @EXTRA_LIBS@
|
||||
|
||||
STRIPFLAG=@STRIPFLAG@
|
||||
|
||||
--
|
||||
1.8.1.4
|
||||
|
||||
8
firmware/buildroot/package/ngrep/Config.in
Normal file
8
firmware/buildroot/package/ngrep/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_NGREP
|
||||
bool "ngrep"
|
||||
select BR2_PACKAGE_LIBPCAP
|
||||
select BR2_PACKAGE_PCRE
|
||||
help
|
||||
Network grep.
|
||||
|
||||
http://ngrep.sourceforge.net/
|
||||
2
firmware/buildroot/package/ngrep/ngrep.hash
Normal file
2
firmware/buildroot/package/ngrep/ngrep.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 aea6dd337da8781847c75b3b5b876e4de9c58520e0d77310679a979fc6402fa7 ngrep-1.45.tar.bz2
|
||||
28
firmware/buildroot/package/ngrep/ngrep.mk
Normal file
28
firmware/buildroot/package/ngrep/ngrep.mk
Normal file
@@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# ngrep
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NGREP_VERSION = 1.45
|
||||
NGREP_SOURCE = ngrep-$(NGREP_VERSION).tar.bz2
|
||||
NGREP_SITE = http://downloads.sourceforge.net/project/ngrep/ngrep/$(NGREP_VERSION)
|
||||
NGREP_LICENSE = BSD-4c-like
|
||||
NGREP_LICENSE_FILES = LICENSE.txt
|
||||
NGREP_INSTALL_STAGING = YES
|
||||
|
||||
NGREP_LIBS = -lpcap -lpcre
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
NGREP_LIBS += `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`
|
||||
endif
|
||||
NGREP_CONF_ENV += LIBS+="$(NGREP_LIBS)"
|
||||
|
||||
NGREP_CONF_OPTS = \
|
||||
--with-pcap-includes=$(STAGING_DIR)/usr/include/pcap \
|
||||
--enable-pcre \
|
||||
--with-pcre=$(STAGING_DIR)/usr \
|
||||
--disable-dropprivs
|
||||
|
||||
NGREP_DEPENDENCIES = libpcap pcre
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user