ifstat: make dependency on libnetsnmp conditional
The upstream package supports it with a configure switch. Defaulting to 'with SNMP support' as it was before. Signed-off-by: Christophe Lermytte <gentoo@lermytte.be>
This commit is contained in:
parent
bc94e9f657
commit
888e9d9cea
2 changed files with 12 additions and 2 deletions
4
net/ifstat/Config.in
Normal file
4
net/ifstat/Config.in
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
config IFSTAT_SNMP
|
||||||
|
depends on PACKAGE_ifstat
|
||||||
|
bool "Build with support for SNMP"
|
||||||
|
default y
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=ifstat
|
PKG_NAME:=ifstat
|
||||||
PKG_VERSION:=1.1
|
PKG_VERSION:=1.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://gael.roualland.free.fr/ifstat/
|
PKG_SOURCE_URL:=http://gael.roualland.free.fr/ifstat/
|
||||||
|
@ -26,7 +26,7 @@ define Package/ifstat
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
TITLE:=InterFace STATistics Monitoring
|
TITLE:=InterFace STATistics Monitoring
|
||||||
URL:=http://gael.roualland.free.fr/ifstat/
|
URL:=http://gael.roualland.free.fr/ifstat/
|
||||||
DEPENDS:=+libnetsnmp
|
DEPENDS:=+IFSTAT_SNMP:libnetsnmp
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ifstat/description
|
define Package/ifstat/description
|
||||||
|
@ -36,6 +36,12 @@ define Package/ifstat/description
|
||||||
interfaces using SNMP.
|
interfaces using SNMP.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/ifstat/config
|
||||||
|
source "$(SOURCE)/Config.in"
|
||||||
|
endef
|
||||||
|
|
||||||
|
CONFIGURE_ARGS += --with$(if $(CONFIG_IFSTAT_SNMP),,out)-snmp
|
||||||
|
|
||||||
define Package/ifstat/install
|
define Package/ifstat/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ifstat $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ifstat $(1)/usr/bin/
|
||||||
|
|
Loading…
Reference in a new issue