2007-06-07 22:25:24 +00:00
|
|
|
#
|
2010-02-19 00:14:01 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2007-06-07 22:25:24 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nprobe
|
|
|
|
PKG_VERSION:=4.1
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-06-07 22:25:24 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=nProbe-$(PKG_VERSION).tgz
|
|
|
|
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
|
|
|
|
PKG_MD5SUM:=32ed12f60eab771a79bd5f90622fa2a3
|
|
|
|
|
|
|
|
BUILD_DEPENDS:=libwrap
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2007-06-07 22:25:24 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/nProbe
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/nprobe
|
2008-04-06 18:04:27 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2012-06-13 00:22:10 +00:00
|
|
|
DEPENDS:=+libpcap +libpcre +libpthread +NPROBE_MYSQL_SUPPORT:libmysqlclient +zlib
|
2008-04-06 18:04:27 +00:00
|
|
|
TITLE:=nProbe
|
|
|
|
URL:=http://invisible-island.net/dialog/
|
2007-06-07 22:25:24 +00:00
|
|
|
endef
|
|
|
|
|
2009-03-29 05:59:04 +00:00
|
|
|
define Package/nprobe/config
|
|
|
|
config NPROBE_MYSQL_SUPPORT
|
|
|
|
depends on PACKAGE_nprobe
|
|
|
|
bool "MySQL support"
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/nprobe/description
|
|
|
|
nprobe
|
|
|
|
endef
|
|
|
|
|
2009-03-29 05:59:04 +00:00
|
|
|
ifndef CONFIG_NPROBE_MYSQL_SUPPORT
|
|
|
|
CONFIGURE_VARS += ac_cv_prog_MYSQL=no
|
|
|
|
endif
|
|
|
|
|
2007-06-07 22:25:24 +00:00
|
|
|
define Build/Configure
|
|
|
|
# patch creates these, so we make them executable
|
|
|
|
chmod +x $(PKG_BUILD_DIR)/configure
|
|
|
|
chmod +x $(PKG_BUILD_DIR)/config.guess
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--with-only-ipv4 \
|
|
|
|
PCAP_ROOT="$(STAGING_DIR)/usr" \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
DESTDIR=$(PKG_INSTALL_DIR) \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -ldl" \
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nprobe/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nprobe \
|
|
|
|
$(1)/usr/bin/
|
2009-03-29 05:59:04 +00:00
|
|
|
$(CP) -a $(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
2007-06-07 22:25:24 +00:00
|
|
|
$(1)/usr/lib
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,nprobe))
|
|
|
|
|