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.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=nProbe-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
16 PKG_MD5SUM:=32ed12f60eab771a79bd5f90622fa2a3
18 BUILD_DEPENDS:=libwrap
20 PKG_BUILD_DIR:=$(BUILD_DIR)/nProbe
22 include $(INCLUDE_DIR)/package.mk
27 DEPENDS:=+libpcap +libpcre +libpthread +NPROBE_MYSQL_SUPPORT:libmysqlclient
29 URL:=http://invisible-island.net/dialog/
32 define Package/nprobe/config
33 config NPROBE_MYSQL_SUPPORT
34 depends on PACKAGE_nprobe
39 define Package/nprobe/description
43 ifndef CONFIG_NPROBE_MYSQL_SUPPORT
44 CONFIGURE_VARS += ac_cv_prog_MYSQL=no
47 define Build/Configure
48 # patch creates these, so we make them executable
49 chmod +x $(PKG_BUILD_DIR)/configure
50 chmod +x $(PKG_BUILD_DIR)/config.guess
51 $(call Build/Configure/Default, \
53 PCAP_ROOT="$(STAGING_DIR)/usr" \
58 DESTDIR=$(PKG_INSTALL_DIR) \
59 LDFLAGS="$(TARGET_LDFLAGS) -ldl" \
60 $(MAKE) -C $(PKG_BUILD_DIR) \
64 define Package/nprobe/install
65 $(INSTALL_DIR) $(1)/usr/bin
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nprobe \
69 $(CP) -a $(PKG_INSTALL_DIR)/usr/lib/*.so* \
73 $(eval $(call BuildPackage,nprobe))