make nprobe smaller by making mysql support optional and removing unnecessary files from the ipkg
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15068 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ca859fc516
commit
1ea6f4c6d9
@ -25,15 +25,26 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/nprobe
|
define Package/nprobe
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
DEPENDS:=+libpcap +libpcre +libpthread +libwrap +libmysqlclient
|
DEPENDS:=+libpcap +libpcre +libpthread +NPROBE_MYSQL_SUPPORT:libmysqlclient
|
||||||
TITLE:=nProbe
|
TITLE:=nProbe
|
||||||
URL:=http://invisible-island.net/dialog/
|
URL:=http://invisible-island.net/dialog/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/nprobe/config
|
||||||
|
config NPROBE_MYSQL_SUPPORT
|
||||||
|
depends on PACKAGE_nprobe
|
||||||
|
bool "MySQL support"
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/nprobe/description
|
define Package/nprobe/description
|
||||||
nprobe
|
nprobe
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifndef CONFIG_NPROBE_MYSQL_SUPPORT
|
||||||
|
CONFIGURE_VARS += ac_cv_prog_MYSQL=no
|
||||||
|
endif
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
# patch creates these, so we make them executable
|
# patch creates these, so we make them executable
|
||||||
chmod +x $(PKG_BUILD_DIR)/configure
|
chmod +x $(PKG_BUILD_DIR)/configure
|
||||||
@ -56,7 +67,7 @@ define Package/nprobe/install
|
|||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nprobe \
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nprobe \
|
||||||
$(1)/usr/bin/
|
$(1)/usr/bin/
|
||||||
$(CP) -a $(PKG_INSTALL_DIR)/usr/lib/* \
|
$(CP) -a $(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
||||||
$(1)/usr/lib
|
$(1)/usr/lib
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user