mcproxy: add initial
[feed/routing.git] / mcproxy / Makefile
1 #
2 # Copyright (C) 2006-2011 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:=986523a5d714be5cf6f65e4399045cbfecd415fd
12 PKG_VERSION:=2014-03-25-$(PKG_SOURCE_VERSION)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=git://github.com/mcproxy/mcproxy.git
17 PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
18
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 define Package/mcproxy
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Multicast Proxy for IGMP/MLD
29 URL:=http://mcproxy.realmv6.org
30 DEPENDS:=+libpthread +libstdcpp
31 endef
32
33 define Package/mcproxy/description
34 mcproxy is a free & open source implementation of the IGMP/MLD proxy function (see RFC 4605) for Linux systems.
35 It operates on the kernel tables for multicast routing and allows for multiple instantiations,
36 as well as dynamically changing downstream interfaces.
37 endef
38
39 define Package/mcproxy/conffiles
40 /etc/mcproxy.conf
41 endef
42
43 define Package/mcproxy/install
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_CONF) ./files/mcproxy.conf $(1)/etc
46 $(INSTALL_BIN) ./files/mcproxy.init $(1)/etc/init.d/mcproxy
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mcproxy-bin $(1)/usr/sbin/mcproxy
49 endef
50
51 $(eval $(call BuildPackage,mcproxy))