From aa1dccfd58267b7dd4ca61bb374c91dce0e03332 Mon Sep 17 00:00:00 2001 From: pavlov Date: Thu, 7 Jun 2007 22:25:24 +0000 Subject: [PATCH] nProbe 4.1 package git-svn-id: svn://svn.openwrt.org/openwrt/packages@7527 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/nprobe/Makefile | 63 + net/nprobe/patches/000-autogen_fixup.patch | 86058 +++++++++++++++++++ net/nprobe/patches/001-path_to_pcap.patch | 13 + net/nprobe/patches/002-ipv6_fix.patch | 35 + 4 files changed, 86169 insertions(+) create mode 100644 net/nprobe/Makefile create mode 100644 net/nprobe/patches/000-autogen_fixup.patch create mode 100644 net/nprobe/patches/001-path_to_pcap.patch create mode 100644 net/nprobe/patches/002-ipv6_fix.patch diff --git a/net/nprobe/Makefile b/net/nprobe/Makefile new file mode 100644 index 000000000..342b4a83f --- /dev/null +++ b/net/nprobe/Makefile @@ -0,0 +1,63 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: Makefile 6537 2007-03-07 15:46:36Z pavlov $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=nprobe +PKG_VERSION:=4.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=nProbe-$(PKG_VERSION).tgz +PKG_SOURCE_URL:=http://downloads.openwrt.org/sources +PKG_MD5SUM:=32ed12f60eab771a79bd5f90622fa2a3 +PKG_CAT:=zcat + +BUILD_DEPENDS:=libwrap + +PKG_BUILD_DIR:=$(BUILD_DIR)/nProbe + +include $(INCLUDE_DIR)/package.mk + +define Package/nprobe + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+libpcap +libpcre +libpthread +libwrap + TITLE:=nProbe + DESCRIPTION:=\ + nprobe + URL=http://invisible-island.net/dialog/ +endef + +define Build/Configure + # patch creates these, so we make them executable + chmod +x $(PKG_BUILD_DIR)/configure + chmod +x $(PKG_BUILD_DIR)/config.guess + $(call Build/Configure/Default, \ + --with-only-ipv4 \ + PCAP_ROOT="$(STAGING_DIR)/usr" \ + ) +endef + +define Build/Compile + DESTDIR=$(PKG_INSTALL_DIR) \ + LDFLAGS="$(TARGET_LDFLAGS) -ldl" \ + $(MAKE) -C $(PKG_BUILD_DIR) \ + all install +endef + +define Package/nprobe/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nprobe \ + $(1)/usr/bin/ + $(CP) -a $(PKG_INSTALL_DIR)/usr/lib/* \ + $(1)/usr/lib +endef + +$(eval $(call BuildPackage,nprobe)) + diff --git a/net/nprobe/patches/000-autogen_fixup.patch b/net/nprobe/patches/000-autogen_fixup.patch new file mode 100644 index 000000000..89c457eaf --- /dev/null +++ b/net/nprobe/patches/000-autogen_fixup.patch @@ -0,0 +1,86058 @@ +diff -ruN nProbe/acinclude.m4 nProbe.new/acinclude.m4 +--- nProbe/acinclude.m4 1969-12-31 18:00:00.000000000 -0600 ++++ nProbe.new/acinclude.m4 2007-05-07 16:33:32.388408000 -0500 +@@ -0,0 +1,6621 @@ ++# ++# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ++# local automake definitions for ntop ++## (this file is processed with 'automake' to produce Makefile.in) ++# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ++# ++# Copyright (c) 1998, 2000 Luca Deri ++# Updated 1Q 2000 Rocco Carbone ++# ++# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program; if not, write to the Free Software ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# ++ ++dnl> ++dnl> Check for an ANSI C typedef in a header ++dnl> ++dnl> configure.in: ++dnl> AC_CHECK_TYPEDEF(,
) ++dnl> acconfig.h: ++dnl> #undef HAVE_ ++dnl> ++ ++AC_DEFUN(AC_CHECK_TYPEDEF,[dnl ++AC_REQUIRE([AC_HEADER_STDC])dnl ++AC_MSG_CHECKING(for typedef $1) ++AC_CACHE_VAL(ac_cv_typedef_$1, ++[AC_EGREP_CPP(dnl ++changequote(<<,>>)dnl ++<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl ++changequote([,]), [ ++#include <$2> ++], ac_cv_typedef_$1=yes, ac_cv_typedef_$1=no)])dnl ++AC_MSG_RESULT($ac_cv_typedef_$1) ++if test $ac_cv_typedef_$1 = yes; then ++ AC_DEFINE(HAVE_[]translit($1, [a-z], [A-Z])) ++fi ++]) ++ ++ ++dnl> ++dnl> Check whether compiler option works ++dnl> ++dnl> configure.in: ++dnl> AC_COMPILER_OPTION(, ,