numpy: bump version to 1.24.3
[feed/packages.git] / net / mstpd / Makefile
1 #
2 # Copyright (C) 2019 Alexandru Ardelean <ardeleanalex@gmail.com>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mstpd
11 PKG_VERSION:=0.1.0
12 PKG_RELEASE:=1
13
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
17
18 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_FIXUP:=autoreconf
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/mstpd
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=Multiple Spanning Tree Protocol daemon
30 URL:=https://github.com/mstpd/mstpd
31 endef
32
33 define Package/mstpd/description
34 Multiple Spanning Tree Protocol daemon.
35 Implements MSTP which is not implemented yet in the Linux kernel.
36 endef
37
38 define Package/mstpd/config
39 source "$(SOURCE)/Config.in"
40 endef
41
42 TARGET_CFLAGS += \
43 -DRTNL_RCV_BUFSIZE=$(CONFIG_MSTPD_RTNL_RCV_BUFSIZE) \
44 -DRTNL_SND_BUFSIZE=$(CONFIG_MSTPD_RTNL_SND_BUFSIZE)
45
46 MAKE_VARS+=MODE=prod
47
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
56 endef
57
58 $(eval $(call BuildPackage,mstpd))