b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2014-2017 OpenWrt.org |
| 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:=mcproxy |
| 11 | PKG_SOURCE_VERSION:=93b5ace42268160ebbfff4c61818fb15fa2d9b99 |
| 12 | PKG_VERSION:=2017-08-24-$(PKG_SOURCE_VERSION) |
| 13 | PKG_RELEASE:=3 |
| 14 | |
| 15 | PKG_SOURCE_PROTO:=git |
| 16 | PKG_SOURCE_URL:=https://github.com/mcproxy/mcproxy.git |
| 17 | PKG_MIRROR_HASH:=5779a78dedaef491825ada632fe6d8282067025dede41d0eede5c441893a2994 |
| 18 | PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org> |
| 19 | PKG_LICENSE:=GPL-2.0+ |
| 20 | |
| 21 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
| 22 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 23 | |
| 24 | include $(INCLUDE_DIR)/package.mk |
| 25 | include $(INCLUDE_DIR)/cmake.mk |
| 26 | |
| 27 | define Package/mcproxy |
| 28 | SECTION:=net |
| 29 | CATEGORY:=Network |
| 30 | SUBMENU:=Routing and Redirection |
| 31 | TITLE:=Multicast Proxy for IGMP/MLD |
| 32 | URL:=http://mcproxy.realmv6.org |
| 33 | DEPENDS:=+libpthread +libstdcpp @(!GCC_VERSION_4_4&&!GCC_VERSION_4_6) |
| 34 | endef |
| 35 | |
| 36 | define Package/mcproxy/description |
| 37 | mcproxy is a free & open source implementation of the IGMP/MLD proxy function (see RFC 4605) for Linux systems. |
| 38 | It operates on the kernel tables for multicast routing and allows for multiple instantiations, |
| 39 | as well as dynamically changing downstream interfaces. |
| 40 | endef |
| 41 | |
| 42 | define Package/mcproxy/conffiles |
| 43 | /etc/mcproxy.conf |
| 44 | /etc/config/mcproxy |
| 45 | endef |
| 46 | |
| 47 | define Package/mcproxy/install |
| 48 | $(INSTALL_DIR) $(1)/etc |
| 49 | $(INSTALL_CONF) ./files/mcproxy.conf $(1)/etc/mcproxy.conf |
| 50 | $(INSTALL_DIR) $(1)/etc/config |
| 51 | $(INSTALL_CONF) ./files/mcproxy.config $(1)/etc/config/mcproxy |
| 52 | $(INSTALL_DIR) $(1)/etc/init.d |
| 53 | $(INSTALL_BIN) ./files/mcproxy.init $(1)/etc/init.d/mcproxy |
| 54 | $(INSTALL_DIR) $(1)/usr/sbin |
| 55 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/mcproxy-bin $(1)/usr/sbin/mcproxy |
| 56 | endef |
| 57 | |
| 58 | $(eval $(call BuildPackage,mcproxy)) |