Port rp-pppoe to -ng
[openwrt/svn-archive/archive.git] / net / fprobe-ulog / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=fprobe-ulog
12 PKG_VERSION:=1.1
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=cdb2e4edc47e8a3d5479eeabfb979ebc
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=@SF/fprobe
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_CAT:=bzcat
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/fprobe-ulog
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpthread
27 TITLE:=NetFlow probe (ulog-based)
28 DESCRIPTION:=A NetFlow probe obtaining packets through linux netfilter code\\\
29 (iptables ULOG target).
30 URL:=http://fprobe.sourceforge.net
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default,--with-piddir=/var \
35 --with-membulk=index8 \
36 --with-hash=xor8 \
37 )
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR)
42 endef
43
44 define Package/fprobe-ulog/install
45 mkdir -p $(1)/usr/bin
46 $(CP) $(PKG_BUILD_DIR)/src/fprobe-ulog $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,fprobe-ulog))