From 34ec3f93f6a9658b479ca18a30cdf4fac54ad92f Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Sun, 10 Jul 2005 12:05:29 +0000 Subject: [PATCH] Add fprobe-ulog package SVN-Revision: 1392 --- openwrt/package/Config.in | 1 + openwrt/package/Makefile | 1 + openwrt/package/fprobe-ulog/Config.in | 10 ++++ openwrt/package/fprobe-ulog/Makefile | 52 +++++++++++++++++++ .../fprobe-ulog/ipkg/fprobe-ulog.control | 10 ++++ 5 files changed, 74 insertions(+) create mode 100644 openwrt/package/fprobe-ulog/Config.in create mode 100644 openwrt/package/fprobe-ulog/Makefile create mode 100644 openwrt/package/fprobe-ulog/ipkg/fprobe-ulog.control diff --git a/openwrt/package/Config.in b/openwrt/package/Config.in index 3fa85f5930..3c06215411 100644 --- a/openwrt/package/Config.in +++ b/openwrt/package/Config.in @@ -44,6 +44,7 @@ source "package/ebtables/Config.in" source "package/ez-ipupdate/Config.in" source "package/fping/Config.in" source "package/fprobe/Config.in" +source "package/fprobe-ulog/Config.in" source "package/freeradius/Config.in" source "package/frickin/Config.in" source "package/howl/Config.in" diff --git a/openwrt/package/Makefile b/openwrt/package/Makefile index ef7673b737..38857d7c37 100644 --- a/openwrt/package/Makefile +++ b/openwrt/package/Makefile @@ -25,6 +25,7 @@ package-$(BR2_PACKAGE_EBTABLES) += ebtables package-$(BR2_PACKAGE_EZIPUPDATE) += ez-ipupdate package-$(BR2_PACKAGE_FPING) += fping package-$(BR2_PACKAGE_FPROBE) += fprobe +package-$(BR2_PACKAGE_FPROBE_ULOG) += fprobe-ulog package-$(BR2_PACKAGE_FREERADIUS) += freeradius package-$(BR2_PACKAGE_FRICKIN) += frickin package-$(BR2_PACKAGE_FUSE) += fuse diff --git a/openwrt/package/fprobe-ulog/Config.in b/openwrt/package/fprobe-ulog/Config.in new file mode 100644 index 0000000000..f86b9f79dd --- /dev/null +++ b/openwrt/package/fprobe-ulog/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_FPROBE_ULOG + tristate "fprobe-ulog - NetFlow probe (ulog-based)" + default m if CONFIG_DEVEL + select BR2_PACKAGE_LIBPTHREAD + help + A NetFlow probe obtaining packets through linux netfilter code + (iptables ULOG target). + + http://fprobe.sourceforge.net/ + diff --git a/openwrt/package/fprobe-ulog/Makefile b/openwrt/package/fprobe-ulog/Makefile new file mode 100644 index 0000000000..f5f3c53f68 --- /dev/null +++ b/openwrt/package/fprobe-ulog/Makefile @@ -0,0 +1,52 @@ +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=fprobe-ulog +PKG_VERSION:=1.1 +PKG_RELEASE:=1 +PKG_MD5SUM:=cdb2e4edc47e8a3d5479eeabfb979ebc + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=@SF/fprobe +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_CAT:=bzcat + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,FPROBE_ULOG,fprobe-ulog,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.configured: + (cd $(PKG_BUILD_DIR) ; \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --datadir=/usr/share \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --sysconfdir=/etc \ + --with-piddir=/var \ + --with-membulk=index8 \ + --with-hash=xor8 \ + $(DISABLE_NLS) \ + ) + touch $@ + +$(PKG_BUILD_DIR)/.built: + $(MAKE) -C $(PKG_BUILD_DIR) + touch $@ + +$(IPKG_FPROBE_ULOG): + mkdir -p $(IDIR_FPROBE_ULOG)/usr/bin + cp $(PKG_BUILD_DIR)/src/fprobe-ulog $(IDIR_FPROBE_ULOG)/usr/bin/ + $(RSTRIP) $(IDIR_FPROBE_ULOG) + $(IPKG_BUILD) $(IDIR_FPROBE_ULOG) $(PACKAGE_DIR) diff --git a/openwrt/package/fprobe-ulog/ipkg/fprobe-ulog.control b/openwrt/package/fprobe-ulog/ipkg/fprobe-ulog.control new file mode 100644 index 0000000000..5979ecba44 --- /dev/null +++ b/openwrt/package/fprobe-ulog/ipkg/fprobe-ulog.control @@ -0,0 +1,10 @@ +Package: fprobe-ulog +Priority: optional +Section: net +Maintainer: Felix Fietkau +Source: buildroot internal +Depends: libpthread +Description: NetFlow probe + networking tool obtaining packets through linux netfilter code + (iptables ULOG target) and emit it as NetFlow flows towards the + specified collector -- 2.30.2