From: Donald Sharp Date: Thu, 9 Feb 2017 15:37:00 +0000 (-0500) Subject: debian: Fix to not auto-install snmp MIB X-Git-Tag: frr-3.0-branchpoint~36^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F192%2Fhead;p=mirror%2Ffrr.git debian: Fix to not auto-install snmp MIB Only install the snmp MIB for zebra if we are building the debian package with SNMP. Signed-off-by: Donald Sharp --- diff --git a/debian/rules b/debian/rules index 42c0d5f63a..5744505e64 100755 --- a/debian/rules +++ b/debian/rules @@ -85,7 +85,11 @@ override_dh_auto_install: perl -pi -e 's#^!log file #!log file /var/log/frr/#' debian/tmp/usr/share/doc/frr/examples/*sample* # installing the Frr specific SNMP MIB +ifeq ($(WANT_SNMP), 1) install -D -m 644 ./zebra/GNOME-PRODUCT-ZEBRA-MIB debian/tmp/usr/share/snmp/mibs/GNOME-PRODUCT-ZEBRA-MIB +else + mkdir -p debian/tmp/usr/share/snmp/mibs/ +endif # cleaning .la files sed -i "/dependency_libs/ s/'.*'/''/" debian/tmp/usr/lib/*.la