You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

  1. # SPDX-License-Identifier: GPL-2.0-only
  2. include $(TOPDIR)/rules.mk
  3. PKG_NAME:=poemgr
  4. PKG_SOURCE_DATE:=2022-09-20
  5. PKG_SOURCE_VERSION:=8988247aacdf18013daa7d7931754e338e08b1bd
  6. PKG_RELEASE:=2
  7. PKG_SOURCE_PROTO:=git
  8. PKG_SOURCE_URL=https://github.com/blocktrron/poemgr.git
  9. PKG_MIRROR_HASH:=39b355954931299ba5a481d23af7144dad7349354df1b3303836b77fd1fdfbb6
  10. PKG_MAINTAINER:=David Bauer <mail@david-bauer.net>
  11. PKG_LICENSE:=GPL-2.0-only
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/poemgr
  14. SECTION:=utils
  15. CATEGORY:=Utilities
  16. DEPENDS:=+libuci +libjson-c
  17. TITLE:=Utility to control PoE ports on the UniFi Flex switch
  18. endef
  19. define Package/poemgr/conffiles
  20. /etc/config/poemgr
  21. endef
  22. define Package/poemgr/install
  23. $(INSTALL_DIR) $(1)/sbin $(1)/usr/lib/poemgr/config $(1)/etc/config $(1)/etc/uci-defaults $(1)/etc/init.d
  24. $(INSTALL_BIN) $(PKG_BUILD_DIR)/poemgr $(1)/sbin/poemgr
  25. $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/uswlite-pse-enable $(1)/usr/lib/poemgr/uswlite-pse-enable
  26. $(CP) $(PKG_BUILD_DIR)/contrib/usw-lite.config $(1)/usr/lib/poemgr/config/usw-lite.config
  27. $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/uci-defaults.sh $(1)/etc/uci-defaults/99-poemgr
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/procd-init.sh $(1)/etc/init.d/poemgr
  29. endef
  30. $(eval $(call BuildPackage,poemgr))