mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
This adjustment makes a compromise between those that would prefer not
to complicate the realtek-poe.git source repository and those who want
to have PoE work out-of-the-box on Realtek switches -- see
realtek-poe.git, commit 2df137ee457155 ("realtek-poe/openwrt: Generate
config from board.json")
Switches previously booted with OpenWrt will have an /etc/config/poe
file already present, and thus the uci-default shall not take effect.
Signed-off-by: Martin Kennedy <hurricos@gmail.com>
37 lines
1.0 KiB
Makefile
37 lines
1.0 KiB
Makefile
## SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=realtek-poe
|
|
PKG_RELEASE:=2
|
|
PKG_LICENSE:=GPL-2.0
|
|
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
|
|
CMAKE_SOURCE_SUBDIR:=src
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/realtek-poe
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=Realtek PoE Switch Port daemon
|
|
DEPENDS:=+libubox +libubus +libuci
|
|
endef
|
|
|
|
define Package/realtek-poe/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/realtek-poe $(1)/usr/bin/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/etc/init.d/poe $(1)/etc/init.d/
|
|
$(INSTALL_BIN) ./files/etc/uci-defaults/30-poe $(1)/etc/uci-defaults/30-poe
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,realtek-poe))
|