lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit 42aeb0630858f60f9d82f7b982af823d17ba45dc
parent 68689341dc08bd6303edc7d0a44c04fb4d1f5258
Author: Stijn Tintel <stijn@linux-ipv6.be>
Date:   Fri, 13 Jan 2017 20:38:28 +0100

net-snmpd: convert snmpd-static to dummy package

We believe snmpd-static isn't useful, but download stats show it's still
being downloaded. Instead of dropping it, make it a dummy package that
depends on snmpd.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Jo-Philipp Wich <jo@mein.io>

Diffstat:
Mnet/net-snmp/Makefile | 32+-------------------------------
1 file changed, 1 insertion(+), 31 deletions(-)

diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile @@ -91,15 +91,10 @@ endef define Package/snmpd-static $(call Package/net-snmp/Default) + DEPENDS:=+snmpd TITLE:=Open source SNMP implementation (daemon) - DEPENDS:=+PACKAGE_libnl-core:libnl-core endef -define Package/snmpd-static/description -$(call Package/net-snmp/Default/description) - . - This package contains the SNMP agent, statically linked. -endef SNMP_MIB_MODULES_INCLUDED = \ @@ -202,21 +197,11 @@ endif TARGET_LDFLAGS += -L$(TOOLCHAIN_DIR)/usr/lib -ifdef CONFIG_PACKAGE_snmpd-static - define Build/Compile/static - $(MAKE) -C $(PKG_BUILD_DIR)/agent \ - LDFLAGS="$(TARGET_LDFLAGS) -lm -static" \ - EXEEXT="-static" \ - snmpd-static - endef -endif - define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \ LDFLAGS="$(TARGET_LDFLAGS) -lm -lc" \ all install - $(Build/Compile/static) endef define Build/InstallDev @@ -260,21 +245,6 @@ define Package/snmpd/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/snmpd $(1)/usr/sbin/snmpd endef -define Package/snmpd-static/conffiles -/etc/config/snmpd -endef - -define Package/snmpd-static/install - $(INSTALL_DIR) $(1)/etc/config - $(INSTALL_DATA) ./files/snmpd.conf $(1)/etc/config/snmpd - $(INSTALL_DIR) $(1)/etc/snmp - ln -sf /var/run/snmpd.conf $(1)/etc/snmp/ - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) ./files/snmpd.init $(1)/etc/init.d/snmpd - $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/agent/snmpd-static $(1)/usr/sbin/snmpd -endef - $(eval $(call BuildPackage,libnetsnmp)) $(eval $(call BuildPackage,snmp-mibs)) $(eval $(call BuildPackage,snmp-utils))