2021-08-24 15:40:28 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2021 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ustp
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ustp.git
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2021-08-27 10:38:12 +00:00
|
|
|
PKG_SOURCE_DATE:=2021-09-21
|
|
|
|
PKG_SOURCE_VERSION:=462b3a491347e452c15220861949b1d6371fa59e
|
2024-03-25 09:03:26 +00:00
|
|
|
PKG_MIRROR_HASH:=c3373b369b127c26d4a79425631cb5db83ef479ab21d164da879b35942539dfb
|
2021-08-24 15:40:28 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
|
2023-02-02 20:33:38 +00:00
|
|
|
PKG_BUILD_FLAGS:=lto
|
|
|
|
|
2021-08-24 15:40:28 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
|
|
|
|
define Package/ustp
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=OpenWrt STP/RSTP daemon
|
|
|
|
DEPENDS:=+libubox +libubus
|
|
|
|
endef
|
|
|
|
|
2023-02-02 20:33:38 +00:00
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
|
2021-08-24 15:40:28 +00:00
|
|
|
|
|
|
|
define Package/ustp/install
|
|
|
|
$(INSTALL_DIR) $(1)/sbin $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ipkg-install/sbin/* $(1)/sbin/
|
|
|
|
$(INSTALL_BIN) ./files/ustpd.init $(1)/etc/init.d/ustpd
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ustp))
|