[packages] Various Makefile cleanups.
[packages.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fprobe
11 PKG_VERSION:=1.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/fprobe
16 PKG_MD5SUM:=65850d0470078269b33eee58cba77ac2
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/fprobe
21   SECTION:=net
22   CATEGORY:=Network
23   DEPENDS:=+libpcap +libpthread
24   TITLE:=NetFlow probe (libpcap-based)
25   URL:=http://fprobe.sourceforge.net/
26 endef
27
28 define Build/Configure
29         $(call Build/Configure/Default, \
30                 --with-piddir=/var \
31                 --with-pcap="$(STAGING_DIR)/usr/include" \
32                 --with-libpcap="$(STAGING_DIR)/usr/lib" \
33                 --with-membulk=index8 \
34                 --with-hash=xor8 \
35         )
36 endef
37
38 define Build/Compile
39         $(MAKE) -C $(PKG_BUILD_DIR)
40 endef
41
42 define Package/fprobe/install
43         $(INSTALL_DIR) $(1)/usr/bin
44         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/fprobe $(1)/usr/bin/
45 endef
46
47 $(eval $(call BuildPackage,fprobe))