2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/m/mrd6/
16 PKG_MD5SUM:=a59d87857654ff92426062ad5664fcd6
21 include $(INCLUDE_DIR)/package.mk
26 TITLE:=IPv6 multicast routing daemon
27 URL:=http://fivebits.net/proj/mrd6
31 define Package/mrd6/description
32 Multicast is becoming a major component in next generation networks, used
33 in several scenarios, from video broadcasting to multimedia conferencing.
34 In order to be implemented, new technology needs supporting hardware and
35 software across a set of devices and systems. MRD6 is an implementation of
36 a modular IPv6 Multicast Routing Framework for the Linux operating system
37 and provides MLDv2 (as well as MLDv1), PIM-SM and MBGP support.
41 $(TARGET_CONFIGURE_OPTS) \
45 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DNO_INET6_OPTION -fno-builtin -fno-rtti" \
46 LDFLAGS="$(TARGET_LDFLAGS) -ldl -lm" \
47 MODULE_CXX="\$$$$(CC) -shared \$$$$(CXXFLAGS) \$$$$(LDFLAGS)" \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
52 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/src $(MRD6_MAKEFLAGS) all
56 $(MAKE) -C $(PKG_BUILD_DIR)/src $(MRD6_MAKEFLAGS) install
59 define Package/mrd6/conffiles
63 define Package/mrd6/install
64 $(INSTALL_DIR) $(1)/etc/init.d
65 $(INSTALL_CONF) ./files/mrd6.conf $(1)/etc
66 $(INSTALL_BIN) ./files/mrd6.init $(1)/etc/init.d/mrd6
67 $(INSTALL_DIR) $(1)/usr/sbin
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mrd $(1)/usr/sbin/mrd6
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mrd6sh $(1)/usr/bin/mrd6sh
71 $(INSTALL_DIR) $(1)/usr/lib/mrd6
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mrd6/bgp.so $(1)/usr/lib/mrd6/bgp.so
75 $(eval $(call BuildPackage,mrd6))