2 # Copyright (C) 2006,2007 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).tar.gz
15 PKG_SOURCE_URL:=http://fivebits.net/files/mrd6/ \
16 http://hng.av.it.pt/mrd6/download/
17 PKG_MD5SUM:=00221326810358889e811c48cbac415a
20 include $(INCLUDE_DIR)/package.mk
25 TITLE:=IPv6 multicast routing daemon
26 URL:=http://artemis.av.it.pt/mrd6/
27 DEPENDS:= +uclibcxx @BROKEN
30 define Package/mrd6/description
31 Multicast is becoming a major component in next generation networks, used
32 in several scenarios, from video broadcasting to multimedia conferencing.
33 In order to be implemented, new technology needs supporting hardware and
34 software across a set of devices and systems. MRD6 is an implementation of
35 a modular IPv6 Multicast Routing Framework for the Linux operating system
36 and provides MLDv2 (as well as MLDv1), PIM-SM and MBGP support.
40 $(MAKE) -C $(PKG_BUILD_DIR)/src \
41 $(TARGET_CONFIGURE_OPTS) \
45 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DNO_INET6_OPTION -fno-builtin -fno-rtti" \
46 LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -ldl -lgcc -lm" \
47 MODULE_CXX="\$$$$(CC) -shared \$$$$(CXXFLAGS) \$$$$(LDFLAGS)" \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
53 define Package/mrd6/conffiles
57 define Package/mrd6/install
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_DATA) files/mrd6.conf $(1)/etc
60 $(INSTALL_BIN) files/mrd6.init $(1)/etc/init.d/mrd6
61 $(INSTALL_DIR) $(1)/usr/sbin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mrd $(1)/usr/sbin/mrd6
63 $(INSTALL_DIR) $(1)/usr/bin
64 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mrd6sh $(1)/usr/bin/mrd6sh
65 $(INSTALL_DIR) $(1)/usr/lib/mrd6
66 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mrd6/bgp.so $(1)/usr/lib/mrd6/bgp.so
69 $(eval $(call BuildPackage,mrd6))