This commit is contained in:
Christian Glombek 2024-04-26 10:09:53 -07:00 committed by GitHub
commit d611389cb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 8 deletions

View File

@ -22,7 +22,7 @@
bool "Build with support for SNMP drivers"
help
If you have a UPS you can connect to via SNMP, select this.
default n
default y
config NUT_DRIVER_SERIAL
depends on PACKAGE_nut

View File

@ -97,9 +97,6 @@ define Package/nut-common
$(call Package/nut/Default)
TITLE+= (common)
DEPENDS:= nut \
+NUT_DRIVER_SNMP:libnetsnmp \
+NUT_DRIVER_USB:libusb-compat \
+NUT_DRIVER_NEON:libneon \
+NUT_SSL:libopenssl
endef
@ -368,10 +365,9 @@ define DriverPackage
$(call Package/nut/Default)
TITLE:=$(2) (NUT $(1) driver)
DEPENDS:=nut +nut-server
$(if $(filter $(1),snmp),DEPENDS+= @NUT_DRIVER_SNMP)
$(if $(filter $(1),usb),DEPENDS+= @NUT_DRIVER_USB)
$(if $(filter $(1),serial),DEPENDS+= @NUT_DRIVER_SERIAL)
$(if $(filter $(1),neon),DEPENDS+= @NUT_DRIVER_NEON)
$(if $(filter $(1),snmp),DEPENDS+= +libnetsnmp)
$(if $(filter $(1),usb),DEPENDS+= +libusb-compat)
$(if $(filter $(1),neon),DEPENDS+= +libneon)
endef
# Deliberately empty description in order to trigger a build failure.
# It should be overridden by the list below, and when updating to a