summaryrefslogtreecommitdiff
path: root/package/daq
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-07-17 11:47:09 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-07-17 11:47:09 +0200
commit2371972204f39a09cffea02217b2303aa1455a06 (patch)
treef84379777a1c42c77e9d1fc1d77cbed929cd19a7 /package/daq
parent4d7e58f6be98eb1446e6b86434da0f1472934612 (diff)
update snort to latest upstream, add daq package
Diffstat (limited to 'package/daq')
-rw-r--r--package/daq/Makefile28
-rw-r--r--package/daq/patches/patch-configure56
2 files changed, 84 insertions, 0 deletions
diff --git a/package/daq/Makefile b/package/daq/Makefile
new file mode 100644
index 000000000..f6bcd0501
--- /dev/null
+++ b/package/daq/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= daq
+PKG_VERSION:= 2.0.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= a00855a153647df76d47f1ea454f74ae
+PKG_DESCR:= daq
+PKG_SECTION:= libs
+PKG_DEPENDS:= libpcap
+PKG_BUILDDEP:= libpcap
+PKG_URL:= http://www.snort.org
+PKG_SITES:= http://openadk.org/distfiles/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,DAQ,daq,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+daq-install:
+ $(INSTALL_DIR) $(IDIR_DAQ)/usr/lib/daq
+ $(CP) $(WRKINST)/usr/lib/daq/*.so \
+ $(IDIR_DAQ)/usr/lib/daq
+ $(CP) $(WRKINST)/usr/lib/*.so* \
+ $(IDIR_DAQ)/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/daq/patches/patch-configure b/package/daq/patches/patch-configure
new file mode 100644
index 000000000..e23ab323a
--- /dev/null
+++ b/package/daq/patches/patch-configure
@@ -0,0 +1,56 @@
+--- daq-2.0.0.orig/configure 2012-11-05 22:07:56.000000000 +0100
++++ daq-2.0.0/configure 2013-07-17 11:03:24.000000000 +0200
+@@ -12771,53 +12771,6 @@ fi
+ echo
+ exit 1
+ fi
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap version >= \"1.0.0\"" >&5
+-$as_echo_n "checking for libpcap version >= \"1.0.0\"... " >&6; }
+- if test "$cross_compiling" = yes; then :
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+- #include <pcap.h>
+- #include <string.h>
+- extern char pcap_version[];
+-
+-int
+-main ()
+-{
+-
+- if (strcmp(pcap_version, "1.0.0") < 0)
+- return 1;
+-
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"; then :
+- libpcap_version_1x="yes"
+-else
+- libpcap_version_1x="no"
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+- if test "x$libpcap_version_1x" = "xno"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+- echo
+- echo " ERROR! Libpcap library version >= "1.0.0" not found."
+- echo " Get it from http://www.tcpdump.org"
+- echo
+- exit 1
+- else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-$as_echo "yes" >&6; }
+- fi
+
+ if test "$enable_pcap_module" = yes; then
+ STATIC_LIBS="${STATIC_LIBS} -lpcap"