|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=apcupsd |
|
|
PKG_NAME:=apcupsd |
|
|
PKG_VERSION:=3.14.13 |
|
|
PKG_VERSION:=3.14.13 |
|
|
PKG_RELEASE:=2 |
|
|
|
|
|
|
|
|
PKG_RELEASE:=3 |
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch> |
|
|
PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch> |
|
|
PKG_LICENSE:=GPL-2.0 |
|
|
PKG_LICENSE:=GPL-2.0 |
|
@ -19,21 +19,32 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE_URL:=@SF/apcupsd |
|
|
PKG_SOURCE_URL:=@SF/apcupsd |
|
|
PKG_MD5SUM:=c291d9d3923b4d9c0e600b755ad4f489 |
|
|
PKG_MD5SUM:=c291d9d3923b4d9c0e600b755ad4f489 |
|
|
|
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=libgd |
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
|
|
|
define Package/apcupsd |
|
|
define Package/apcupsd |
|
|
SECTION:=utils |
|
|
|
|
|
CATEGORY:=Utilities |
|
|
|
|
|
DEPENDS:=+libpthread +libusb-compat |
|
|
|
|
|
|
|
|
SECTION:=net |
|
|
|
|
|
CATEGORY:=Network |
|
|
|
|
|
DEPENDS:=+libpthread |
|
|
TITLE:=UPS control software |
|
|
TITLE:=UPS control software |
|
|
URL:=http://www.apcupsd.org/ |
|
|
URL:=http://www.apcupsd.org/ |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/apcupsd-cgi |
|
|
|
|
|
SECTION:=net |
|
|
|
|
|
CATEGORY:=Network |
|
|
|
|
|
DEPENDS:=+libpthread +libgd |
|
|
|
|
|
TITLE:=UPS control software CGI module |
|
|
|
|
|
URL:=http://www.apcupsd.org/ |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
define Build/Configure |
|
|
define Build/Configure |
|
|
$(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/autoconf/ |
|
|
$(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/autoconf/ |
|
|
$(call Build/Configure/Default, \
|
|
|
$(call Build/Configure/Default, \
|
|
|
--with-distname=unknown \
|
|
|
--with-distname=unknown \
|
|
|
--sysconfdir=/etc/apcupsd \
|
|
|
--sysconfdir=/etc/apcupsd \
|
|
|
|
|
|
--enable-cgi \
|
|
|
--enable-usb \
|
|
|
--enable-usb \
|
|
|
--without-x \
|
|
|
--without-x \
|
|
|
) |
|
|
) |
|
@ -65,6 +76,17 @@ define Package/apcupsd/install |
|
|
$(INSTALL_BIN) ./files/apcupsd.init $(1)/etc/init.d/apcupsd |
|
|
$(INSTALL_BIN) ./files/apcupsd.init $(1)/etc/init.d/apcupsd |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/apcupsd-cgi/install |
|
|
|
|
|
$(INSTALL_DIR) $(1)/www/cgi-bin/apcupsd |
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/apcupsd/multimon.cgi $(1)/www/cgi-bin/apcupsd |
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/apcupsd/upsfstats.cgi $(1)/www/cgi-bin/apcupsd |
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/apcupsd/upsimage.cgi $(1)/www/cgi-bin/apcupsd |
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/apcupsd/upsstats.cgi $(1)/www/cgi-bin/apcupsd |
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/apcupsd |
|
|
|
|
|
$(INSTALL_CONF) ./files/apcupsd.css $(1)/etc/apcupsd/ |
|
|
|
|
|
$(INSTALL_CONF) ./files/hosts.conf $(1)/etc/apcupsd/ |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
define Package/apcupsd/conffiles |
|
|
define Package/apcupsd/conffiles |
|
|
/etc/apcupsd/apcupsd.conf |
|
|
/etc/apcupsd/apcupsd.conf |
|
|
/etc/apcupsd/apcupsd_mail.conf |
|
|
/etc/apcupsd/apcupsd_mail.conf |
|
@ -75,4 +97,10 @@ define Package/apcupsd/conffiles |
|
|
/etc/apcupsd/onbattery |
|
|
/etc/apcupsd/onbattery |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/apcupsd-cgi/conffiles |
|
|
|
|
|
/etc/apcupsd/apcupsd.css |
|
|
|
|
|
/etc/apcupsd/hosts.conf |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,apcupsd)) |
|
|
$(eval $(call BuildPackage,apcupsd)) |
|
|
|
|
|
$(eval $(call BuildPackage,apcupsd-cgi)) |