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-03-19
  5. PKG_SOURCE_VERSION:=77395242f9b3cb6ef003c5ed74f9b5be78404450
  6. PKG_RELEASE:=1
  7. PKG_SOURCE_PROTO:=git
  8. PKG_SOURCE_URL=https://github.com/blocktrron/poemgr.git
  9. PKG_MIRROR_HASH:=68034f886af8a4ebfd869af940510f755d660362a6069ac49c1ae6ce16cbd950
  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))