2017-11-07 18:48:10 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2019 Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mstpd
|
2021-10-27 06:48:45 +00:00
|
|
|
PKG_VERSION:=0.1.0
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2017-11-07 18:48:10 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/mstpd/mstpd/tar.gz/$(PKG_VERSION)?
|
2021-10-27 06:48:45 +00:00
|
|
|
PKG_HASH:=03d1ff4ca189d54322562cb2891888768af719d2c73ceafa5f1ca96133dffeb2
|
2017-11-07 18:48:10 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mstpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Multiple Spanning Tree Protocol daemon
|
|
|
|
URL:=https://github.com/mstpd/mstpd
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mstpd/description
|
|
|
|
Multiple Spanning Tree Protocol daemon.
|
|
|
|
Implements MSTP which is not implemented yet in the Linux kernel.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mstpd/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += \
|
|
|
|
-DRTNL_RCV_BUFSIZE=$(CONFIG_MSTPD_RTNL_RCV_BUFSIZE) \
|
|
|
|
-DRTNL_SND_BUFSIZE=$(CONFIG_MSTPD_RTNL_SND_BUFSIZE)
|
|
|
|
|
|
|
|
MAKE_VARS+=MODE=prod
|
|
|
|
|
|
|
|
define Package/mstpd/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mstpd $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mstpctl $(1)/usr/sbin
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) ./files/etc/init.d/mstpd.init $(1)/etc/init.d/mstpd
|
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) ./files/sbin/bridge-stp $(1)/sbin
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mstpd))
|