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
19 BUILD_DEPENDS:=libwrap
21 PKG_BUILD_DIR:=$(BUILD_DIR)/nProbe
23 include $(INCLUDE_DIR)/package.mk
28 DEPENDS:=+libpcap +libpcre +libpthread +libwrap
30 URL:=http://invisible-island.net/dialog/
33 define Package/nprobe/description
37 define Build/Configure
38 # patch creates these, so we make them executable
39 chmod +x $(PKG_BUILD_DIR)/configure
40 chmod +x $(PKG_BUILD_DIR)/config.guess
41 $(call Build/Configure/Default, \
43 PCAP_ROOT="$(STAGING_DIR)/usr" \
48 DESTDIR=$(PKG_INSTALL_DIR) \
49 LDFLAGS="$(TARGET_LDFLAGS) -ldl" \
50 $(MAKE) -C $(PKG_BUILD_DIR) \
54 define Package/nprobe/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nprobe \
59 $(CP) -a $(PKG_INSTALL_DIR)/usr/lib/* \
63 $(eval $(call BuildPackage,nprobe))