summaryrefslogtreecommitdiff
path: root/package/ipcad
diff options
context:
space:
mode:
Diffstat (limited to 'package/ipcad')
-rw-r--r--package/ipcad/Config.in12
-rw-r--r--package/ipcad/Makefile35
-rw-r--r--package/ipcad/ipkg/ipcad.conffiles1
-rw-r--r--package/ipcad/ipkg/ipcad.control6
-rw-r--r--package/ipcad/patches/patch-configure99
-rw-r--r--package/ipcad/patches/patch-loop-ipq_c11
6 files changed, 164 insertions, 0 deletions
diff --git a/package/ipcad/Config.in b/package/ipcad/Config.in
new file mode 100644
index 000000000..e9c3f3278
--- /dev/null
+++ b/package/ipcad/Config.in
@@ -0,0 +1,12 @@
+config ADK_PACKAGE_IPCAD
+ prompt "ipcad............................. listens for traffic on the specified interfaces"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBPCAP
+ help
+ This daemon listens for traffic on the specified interfaces.
+ It has the built-in RSH and NetFlow engines to allow exporting
+ the accounting data the same way as Cisco routers do.
+
+ http://lionet.info/ipcad/
+
diff --git a/package/ipcad/Makefile b/package/ipcad/Makefile
new file mode 100644
index 000000000..11cef0586
--- /dev/null
+++ b/package/ipcad/Makefile
@@ -0,0 +1,35 @@
+# $Id$
+#-
+# 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:= ipcad
+PKG_VERSION:= 3.7.3
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 125605249958894148ec26d3c88189f5
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=ipcad/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,IPCAD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= gnu
+CONFIGURE_ARGS+= --with-ifst=linux \
+ --with-psrc=pcap \
+ --with-pcap-include="${STAGING_DIR}/usr/include" \
+ --with-pcap-libraries="${STAGING_DIR}/usr/lib"
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+
+pre-build:
+ touch $(WRKBUILD)/cfglex.c $(WRKBUILD)/cslex.c
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_IPCAD}/usr/bin
+ ${INSTALL_DIR} ${IDIR_IPCAD}/etc
+ ${INSTALL_DATA} ${WRKINST}/etc/ipcad.conf ${IDIR_IPCAD}/etc/
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/ipcad ${IDIR_IPCAD}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/ipcad/ipkg/ipcad.conffiles b/package/ipcad/ipkg/ipcad.conffiles
new file mode 100644
index 000000000..f6843d846
--- /dev/null
+++ b/package/ipcad/ipkg/ipcad.conffiles
@@ -0,0 +1 @@
+/etc/ipcad.conf
diff --git a/package/ipcad/ipkg/ipcad.control b/package/ipcad/ipkg/ipcad.control
new file mode 100644
index 000000000..93df70c1d
--- /dev/null
+++ b/package/ipcad/ipkg/ipcad.control
@@ -0,0 +1,6 @@
+Package: ipcad
+Depends: libpcap
+Section: net
+Architecture: mipsel
+Priority: optional
+Description: IPCAD stands for IP Cisco Accounting Daemon. It runs in background, listens traffic on the specified interfaces, and records the traffic for later retrieval and analysis. IPCAD can use raw BPF devices, PCAP library, divert, tee or Linux iptables' ULOG & IPQ packet sources to capture the packets.
diff --git a/package/ipcad/patches/patch-configure b/package/ipcad/patches/patch-configure
new file mode 100644
index 000000000..dfcf87cea
--- /dev/null
+++ b/package/ipcad/patches/patch-configure
@@ -0,0 +1,99 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- ipcad-3.7.3.orig/configure 2007-04-22 10:08:45.000000000 +0200
++++ ipcad-3.7.3/configure 2008-12-22 15:49:17.000000000 +0100
+@@ -2691,10 +2691,6 @@ fi
+
+ fi
+
+-LDFLAGS="$LDFLAGS -L${ac_default_prefix}/lib"
+-CFLAGS="$CFLAGS -I${ac_default_prefix}/include"
+-CPPFLAGS="$CPPFLAGS -I${ac_default_prefix}/include"
+-
+
+ for ac_func in pthread_detach
+ do
+@@ -4872,84 +4868,6 @@ done
+
+
+
+-for ac_header in linux/netfilter_ipv4/ipt_ULOG.h
+-do
+-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+-echo "$as_me:$LINENO: checking for $ac_header" >&5
+-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+-if eval "test \"\${$as_ac_Header+set}\" = set"; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- cat >conftest.$ac_ext <<_ACEOF
+-/* confdefs.h. */
+-_ACEOF
+-cat confdefs.h >>conftest.$ac_ext
+-cat >>conftest.$ac_ext <<_ACEOF
+-/* end confdefs.h. */
+-
+-#ifdef HAVE_SYS_TYPES_H
+-#include <sys/types.h>
+-#endif
+-#ifdef HAVE_ASM_TYPES_H
+-#include <asm/types.h>
+-#endif
+-#ifdef HAVE_SYS_SOCKET_H
+-#include <sys/socket.h>
+-#endif
+-#ifdef HAVE_LINUX_SOCKET_H
+-#include <linux/socket.h>
+-#endif
+-#ifdef HAVE_LINUX_NETLINK_H
+-#include <linux/netlink.h>
+-#endif
+-#ifdef HAVE_NET_IF_H
+-#include <net/if.h>
+-#endif
+-
+-
+-#include <$ac_header>
+-_ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+- (eval $ac_compile) 2>conftest.er1
+- ac_status=$?
+- grep -v '^ *+' conftest.er1 >conftest.err
+- rm -f conftest.er1
+- cat conftest.err >&5
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); } &&
+- { ac_try='test -z "$ac_c_werror_flag"
+- || test ! -s conftest.err'
+- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+- (eval $ac_try) 2>&5
+- ac_status=$?
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); }; } &&
+- { ac_try='test -s conftest.$ac_objext'
+- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+- (eval $ac_try) 2>&5
+- ac_status=$?
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); }; }; then
+- eval "$as_ac_Header=yes"
+-else
+- echo "$as_me: failed program was:" >&5
+-sed 's/^/| /' conftest.$ac_ext >&5
+-
+-eval "$as_ac_Header=no"
+-fi
+-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+-fi
+-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+-if test `eval echo '${'$as_ac_Header'}'` = yes; then
+- cat >>confdefs.h <<_ACEOF
+-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+-_ACEOF
+-
+-fi
+-
+-done
+
+
+
diff --git a/package/ipcad/patches/patch-loop-ipq_c b/package/ipcad/patches/patch-loop-ipq_c
new file mode 100644
index 000000000..ca1c8e98e
--- /dev/null
+++ b/package/ipcad/patches/patch-loop-ipq_c
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- ipcad-3.7.3.orig/loop-ipq.c 2007-04-22 10:08:45.000000000 +0200
++++ ipcad-3.7.3/loop-ipq.c 2008-10-09 16:47:02.000000000 +0200
+@@ -29,6 +29,7 @@
+ #include "ipcad.h"
+ #include "opt.h"
+
++#define NF_ACCEPT 1
+
+ #ifndef PSRC_ipq
+