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.

52 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2019 OpenWrt.org
  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:=smcroute
  9. PKG_VERSION:=2.5.5
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0-or-later
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/troglobit/smcroute/releases/download/$(PKG_VERSION)
  15. PKG_HASH:=2569cd97fa2047df14203a7144be53a1b32928cb460421a302bbcce381b42bc3
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/smcroute
  18. SECTION:=net
  19. CATEGORY:=Network
  20. SUBMENU:=Routing and Redirection
  21. TITLE:=Static Multicast Routing Daemon
  22. URL:=http://troglobit.com/smcroute.html
  23. MAINTAINER:=Moritz Warning <moritzwarning@web.de>
  24. endef
  25. define Package/smcroute/description
  26. SMCRoute is a command line tool to manipulate the multicast routes of the Linux kernel.
  27. endef
  28. define Package/smcroute/conffiles
  29. /etc/smcroute.conf
  30. endef
  31. CONFIGURE_ARGS += \
  32. --without-libcap
  33. define Package/smcroute/install
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_DIR) $(1)/etc/init.d/
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smcrouted $(1)/usr/sbin/
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smcroutectl $(1)/usr/bin/
  39. $(INSTALL_CONF) $(PKG_BUILD_DIR)/smcroute.conf $(1)/etc
  40. $(INSTALL_BIN) ./files/smcroute.init $(1)/etc/init.d/smcroute
  41. endef
  42. $(eval $(call BuildPackage,smcroute))