mirror of
https://github.com/coolsnowwolf/packages
synced 2025-01-09 04:37:41 +08:00
realtek-poe: Add package to control PoE for Realtek 838x devices
The realtek-poe package is used to configure the Power-over-Ethernet controller found on Realtex 838x based switches. On many such switches, the PoE doesn't work without this package. Signed-off-by: Stijn Segers <foss@volatilesystems.org> Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
parent
da317aa25d
commit
3e5cc6ec81
35
utils/realtek-poe/Makefile
Normal file
35
utils/realtek-poe/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
## SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=realtek-poe
|
||||
PKG_RELEASE:=$(AUTORELEASE)
|
||||
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:=382c60e7549948399b4244f7149cf76eaf5f0a7d
|
||||
PKG_MIRROR_HASH:=442a01521c9a056e137e010be492ed5be0a39c3b68a2fa0ca0f0dbb765d9c74c
|
||||
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:=@TARGET_realtek +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_BIN) $(PKG_BUILD_DIR)/realtek-poe $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/etc/init.d/poe $(1)/etc/init.d/
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/files/etc/config/poe $(1)/etc/config/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,realtek-poe))
|
Loading…
Reference in New Issue
Block a user