mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
e8725a932e
Different from OPKG, APK uses a deterministic version schema which chips the version into chunks and compares them individually. This enforces a certain schema which was previously entirely flexible. - Releases are added at the very and end prefixed with an `r` like `1.2.3-r3`. - Hashes are prefixed with a `~` like `1.2.3~abc123`. - Dates become semantic versions, like `2024.04.01` - Extra tags are possible like `_git`, `_alpha` and more. For full details see the APK test list: https://gitlab.alpinelinux.org/alpine/apk-tools/-/blob/master/test/version.data Signed-off-by: Paul Spooren <mail@aparcar.org>
43 lines
1011 B
Makefile
43 lines
1011 B
Makefile
#
|
|
# 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
|
|
PKG_SOURCE_DATE:=2021-09-21
|
|
PKG_SOURCE_VERSION:=462b3a491347e452c15220861949b1d6371fa59e
|
|
PKG_MIRROR_HASH:=b1d4e96f4855580d20572f930764cb09986339017c2a0ec26b22ce11d511c14f
|
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
PKG_BUILD_FLAGS:=lto
|
|
|
|
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
|
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
|
|
|
|
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))
|