You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.5 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mstpd
  9. PKG_VERSION:=0.1.0
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/mstpd/mstpd/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=03d1ff4ca189d54322562cb2891888768af719d2c73ceafa5f1ca96133dffeb2
  14. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_FIXUP:=autoreconf
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/mstpd
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=Multiple Spanning Tree Protocol daemon
  23. URL:=https://github.com/mstpd/mstpd
  24. endef
  25. define Package/mstpd/description
  26. Multiple Spanning Tree Protocol daemon.
  27. Implements MSTP which is not implemented yet in the Linux kernel.
  28. endef
  29. define Package/mstpd/config
  30. source "$(SOURCE)/Config.in"
  31. endef
  32. TARGET_CFLAGS += \
  33. -DRTNL_RCV_BUFSIZE=$(CONFIG_MSTPD_RTNL_RCV_BUFSIZE) \
  34. -DRTNL_SND_BUFSIZE=$(CONFIG_MSTPD_RTNL_SND_BUFSIZE)
  35. MAKE_VARS+=MODE=prod
  36. define Package/mstpd/install
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mstpd $(1)/usr/sbin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mstpctl $(1)/usr/sbin
  40. $(INSTALL_DIR) $(1)/etc/init.d/
  41. $(INSTALL_BIN) ./files/etc/init.d/mstpd.init $(1)/etc/init.d/mstpd
  42. $(INSTALL_DIR) $(1)/sbin
  43. $(INSTALL_BIN) ./files/sbin/bridge-stp $(1)/sbin
  44. endef
  45. $(eval $(call BuildPackage,mstpd))