CONFIG_NUT_DRIVER_SNMP \
CONFIG_NUT_DRIVER_USB \
CONFIG_NUT_DRIVER_SERIAL \
- CONFIG_NUT_SSL
+ CONFIG_NUT_SSL \
+ CONFIG_PACKAGE_nut-web-cgi
include $(INCLUDE_DIR)/package.mk
define Package/nut-web-cgi
$(call Package/nut/Default)
TITLE+= Web CGI interface
- DEPENDS:=nut +nut-common +libgd
+ DEPENDS:=nut +nut-common +PACKAGE_nut-web-cgi:libgd
endef
define Package/nut-web-cgi/description
--without-powerman \
--without-wrap \
--with-hotplug-dir=/etc/hotplug \
- --with-cgi \
+ --with$(if $(CONFIG_PACKAGE_nut-web-cgi),,out)-cgi \
--without-ipmi \
--without-freeipmi \
--$(if $(CONFIG_NUT_SSL),with,without)-ssl $(if $(CONFIG_NUT_SSL),--with-openssl) \
--with-statepath=/var/run/nut \
--with-drvpath=/lib/nut \
--with-user=root \
- --with-group=root
+ --with-group=root \
+ $(if $(CONFIG_PACKAGE_nut-web-cgi),--with-gd-includes="`pkg-config --cflags gdlib`") \
+ $(if $(CONFIG_PACKAGE_nut-web-cgi),--with-gd-libs="`pkg-config --libs gdlib`")
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig