2 # Copyright (C) 2019 Alexandru Ardelean <ardeleanalex@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/mstpd
/mstpd
/tar.gz
/$(PKG_VERSION
)?
16 PKG_HASH
:=03d1ff4ca189d54322562cb2891888768af719d2c73ceafa5f1ca96133dffeb2
18 PKG_MAINTAINER
:=Alexandru Ardelean
<ardeleanalex@gmail.com
>
19 PKG_LICENSE
:=GPL-2.0
-or-later
20 PKG_LICENSE_FILES
:=LICENSE
24 include $(INCLUDE_DIR
)/package.mk
29 TITLE
:=Multiple Spanning Tree Protocol daemon
30 URL
:=https
://github.com
/mstpd
/mstpd
33 define Package
/mstpd
/description
34 Multiple Spanning Tree Protocol daemon.
35 Implements MSTP which is not implemented yet in the Linux kernel.
38 define Package
/mstpd
/config
39 source
"$(SOURCE)/Config.in"
43 -DRTNL_RCV_BUFSIZE
=$(CONFIG_MSTPD_RTNL_RCV_BUFSIZE
) \
44 -DRTNL_SND_BUFSIZE
=$(CONFIG_MSTPD_RTNL_SND_BUFSIZE
)
48 define Package
/mstpd
/install
49 $(INSTALL_DIR
) $(1)/usr
/sbin
50 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mstpd
$(1)/usr
/sbin
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mstpctl
$(1)/usr
/sbin
52 $(INSTALL_DIR
) $(1)/etc
/init.d
/
53 $(INSTALL_BIN
) .
/files
/etc
/init.d
/mstpd.init
$(1)/etc
/init.d
/mstpd
54 $(INSTALL_DIR
) $(1)/sbin
55 $(INSTALL_BIN
) .
/files
/sbin
/bridge-stp
$(1)/sbin
58 $(eval
$(call BuildPackage
,mstpd
))