2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=nProbe-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
17 PKG_MD5SUM:=32ed12f60eab771a79bd5f90622fa2a3
20 BUILD_DEPENDS:=libwrap
22 PKG_BUILD_DIR:=$(BUILD_DIR)/nProbe
24 include $(INCLUDE_DIR)/package.mk
29 DEPENDS:=+libpcap +libpcre +libpthread +libwrap
33 URL=http://invisible-island.net/dialog/
36 define Build/Configure
37 # patch creates these, so we make them executable
38 chmod +x $(PKG_BUILD_DIR)/configure
39 chmod +x $(PKG_BUILD_DIR)/config.guess
40 $(call Build/Configure/Default, \
42 PCAP_ROOT="$(STAGING_DIR)/usr" \
47 DESTDIR=$(PKG_INSTALL_DIR) \
48 LDFLAGS="$(TARGET_LDFLAGS) -ldl" \
49 $(MAKE) -C $(PKG_BUILD_DIR) \
53 define Package/nprobe/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nprobe \
58 $(CP) -a $(PKG_INSTALL_DIR)/usr/lib/* \
62 $(eval $(call BuildPackage,nprobe))