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.

54 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.4.4
  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.xz
  14. PKG_SOURCE_URL:=https://github.com/troglobit/smcroute/releases/download/$(PKG_VERSION)
  15. PKG_HASH:=431be94c46646767f69c85fee445277b7e765a55177d3ee29522416cfe2cc067
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/smcroute
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=Routing and Redirection
  22. TITLE:=Static Multicast Routing Daemon
  23. URL:=http://troglobit.com/smcroute.html
  24. MAINTAINER:=Moritz Warning <moritzwarning@web.de>
  25. endef
  26. define Package/smcroute/description
  27. SMCRoute is a command line tool to manipulate the multicast routes of the Linux kernel.
  28. endef
  29. define Package/smcroute/conffiles
  30. /etc/smcroute.conf
  31. endef
  32. CONFIGURE_ARGS += \
  33. --without-libcap
  34. define Package/smcroute/install
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_DIR) $(1)/etc/init.d/
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smcrouted $(1)/usr/sbin/
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smcroutectl $(1)/usr/bin/
  40. $(INSTALL_CONF) $(PKG_BUILD_DIR)/smcroute.conf $(1)/etc
  41. $(INSTALL_BIN) ./files/smcroute.init $(1)/etc/init.d/smcroute
  42. endef
  43. $(eval $(call BuildPackage,smcroute))