mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
17771dd poemgr: Add support for Plasma Cloud PSX28 530433d poemgr: Add support for RTL8239 PSE solution 8821bad poemgr: Add support for Plasma Cloud PSX8/PSX10 ab466a7 poemgr: Add support for IP8008 PSE chip 7863fa8 poemgr: Add support to display POE output type d81ac54 poemgr: Add support to export port specific device specific metrics 497a9d9 openwrt: Sync with packages feed Makefile 5033450 pd69104: Avoid resource leaks (memory, fds) on init failure Signed-off-by: Sven Eckelmann <sven@narfation.org>
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=poemgr
|
|
PKG_SOURCE_DATE:=2025-09-27
|
|
PKG_SOURCE_VERSION:=17771dd7b3a74a64c14351d1cbf8e61676934cbe
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=https://github.com/blocktrron/poemgr.git
|
|
PKG_MIRROR_HASH:=4c49491037d3250f740a9420bff6f09ab0cd0f5ccead6bdf0fba33de03f1c7a2
|
|
|
|
PKG_MAINTAINER:=David Bauer <mail@david-bauer.net>
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/poemgr
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
DEPENDS:=+libuci +libjson-c
|
|
TITLE:=Utility to control PoE ports on UniFi Flex and Plasma Cloud switches
|
|
endef
|
|
|
|
define Package/poemgr/conffiles
|
|
/etc/config/poemgr
|
|
endef
|
|
|
|
define Package/poemgr/install
|
|
$(INSTALL_DIR) $(1)/sbin $(1)/usr/lib/poemgr/config $(1)/etc/config $(1)/etc/uci-defaults $(1)/etc/init.d
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/poemgr $(1)/sbin/poemgr
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/uswlite-pse-enable $(1)/usr/lib/poemgr/uswlite-pse-enable
|
|
$(CP) $(PKG_BUILD_DIR)/contrib/usw-lite.config $(1)/usr/lib/poemgr/config/usw-lite.config
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/uci-defaults.sh $(1)/etc/uci-defaults/99-poemgr
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/procd-init.sh $(1)/etc/init.d/poemgr
|
|
endef
|
|
|
|
|
|
$(eval $(call BuildPackage,poemgr))
|