2 # Copyright (C) 2006-2010 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
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/nProbe
23 include $(INCLUDE_DIR
)/package.mk
28 DEPENDS
:=+libpcap
+libpcre
+libpthread
+NPROBE_MYSQL_SUPPORT
:libmysqlclient
30 URL
:=http
://invisible-island.net
/dialog
/
33 define Package
/nprobe
/config
34 config NPROBE_MYSQL_SUPPORT
35 depends on PACKAGE_nprobe
40 define Package
/nprobe
/description
44 ifndef CONFIG_NPROBE_MYSQL_SUPPORT
45 CONFIGURE_VARS
+= ac_cv_prog_MYSQL
=no
48 define Build
/Configure
49 # patch creates these, so we make them executable
50 chmod
+x
$(PKG_BUILD_DIR
)/configure
51 chmod
+x
$(PKG_BUILD_DIR
)/config.guess
52 $(call Build
/Configure
/Default
, \
54 PCAP_ROOT
="$(STAGING_DIR)/usr" \
59 DESTDIR
=$(PKG_INSTALL_DIR
) \
60 LDFLAGS
="$(TARGET_LDFLAGS) -ldl" \
61 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 define Package
/nprobe
/install
66 $(INSTALL_DIR
) $(1)/usr
/bin
67 $(INSTALL_DIR
) $(1)/usr
/lib
68 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nprobe \
70 $(CP
) -a
$(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
74 $(eval
$(call BuildPackage
,nprobe
))