include $(TOPDIR)/rules.mk
PKG_NAME:=realtek-poe
-PKG_RELEASE:=2
-PKG_LICENSE:=GPL-2.0
+PKG_VERSION:=1.2
+PKG_RELEASE:=1
+PKG_LICENSE:=GPL-2.0-or-later
PKG_MAINTAINER:=Martin Kennedy <hurricos@gmail.com>
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL:=https://github.com/Hurricos/realtek-poe.git
-PKG_SOURCE_VERSION:=ea32075ae41874043eeed14156755a4c0f114582
-PKG_MIRROR_HASH:=5883af61645216eaf90e86a372df055ef352c4445d4f5010da629d98771da0ec
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/Hurricos/realtek-poe/archive/refs/tags/v$(PKG_VERSION)
+PKG_HASH:=ebe58d2e0f630889d79fb84155936bc43253242857dabfb80d9da71edf92d1e0
CMAKE_SOURCE_SUBDIR:=src
include $(INCLUDE_DIR)/package.mk
CATEGORY:=Network
TITLE:=Realtek PoE Switch Port daemon
DEPENDS:=+libubox +libubus +libuci
+ URL:=https://github.com/Hurricos/realtek-poe
+endef
+
+define Package/realtek-poe/description
+ Power over Ethernet interface for Realtek switches.
+ Supports enabling/disabling PoE supply on ports and monitoring PoE client
+ power usage as well as total switch power budget.
endef
define Package/realtek-poe/install