diff options
author | Christophe Lermytte <gentoo@lermytte.be> | 2020-05-08 13:42:30 +0200 |
---|---|---|
committer | Christophe Lermytte <gentoo@lermytte.be> | 2020-05-13 10:46:00 +0200 |
commit | 888e9d9cea646b68da7eb01cfe0e2dfa39211a91 (patch) | |
tree | 0dd41fb3eb95ca0d948f9f50fac2c84769f5be85 /net/ifstat/Makefile | |
parent | bc94e9f6575c2cd28856199fb3574eb1ffb93cfb (diff) |
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>
Diffstat (limited to 'net/ifstat/Makefile')
-rw-r--r-- | net/ifstat/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/ifstat/Makefile b/net/ifstat/Makefile index 8b4d1ec6f..8ab305347 100644 --- a/net/ifstat/Makefile +++ b/net/ifstat/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ifstat PKG_VERSION:=1.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://gael.roualland.free.fr/ifstat/ @@ -26,7 +26,7 @@ define Package/ifstat CATEGORY:=Network TITLE:=InterFace STATistics Monitoring URL:=http://gael.roualland.free.fr/ifstat/ - DEPENDS:=+libnetsnmp + DEPENDS:=+IFSTAT_SNMP:libnetsnmp endef define Package/ifstat/description @@ -36,6 +36,12 @@ define Package/ifstat/description interfaces using SNMP. endef +define Package/ifstat/config + source "$(SOURCE)/Config.in" +endef + +CONFIGURE_ARGS += --with$(if $(CONFIG_IFSTAT_SNMP),,out)-snmp + define Package/ifstat/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/ifstat $(1)/usr/bin/ |