Oops, forgot to add libpthread dependency
[openwrt/svn-archive/archive.git] / net / fprobe / 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
12 PKG_VERSION := 1.1
13 PKG_RELEASE := 1
14 PKG_MD5SUM := 65850d0470078269b33eee58cba77ac2
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
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpcap +libpthread
27 TITLE:=NetFlow probe (libpcap-based)
28 DESCRIPTION:=A NetFlow probe using libpcap
29 URL:=http://fprobe.sourceforge.net/
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default,--with-piddir=/var \
34 --with-pcap=$(STAGING_DIR)/usr/include \
35 --with-libpcap=$(STAGING_DIR)/usr/lib \
36 --with-membulk=index8 \
37 --with-hash=xor8 \
38 )
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR)
43 endef
44
45 define Package/fprobe/install
46 mkdir -p $(1)/usr/bin
47 $(CP) $(PKG_BUILD_DIR)/src/fprobe $(1)/usr/bin/
48 endef
49
50 $(eval $(call BuildPackage,fprobe))