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).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/m/mrd6/
16 PKG_MD5SUM:=a59d87857654ff92426062ad5664fcd6
18 include $(INCLUDE_DIR)/package.mk
23 TITLE:=IPv6 multicast routing daemon
24 URL:=http://fivebits.net/proj/mrd6
28 define Package/mrd6/description
29 Multicast is becoming a major component in next generation networks, used
30 in several scenarios, from video broadcasting to multimedia conferencing.
31 In order to be implemented, new technology needs supporting hardware and
32 software across a set of devices and systems. MRD6 is an implementation of
33 a modular IPv6 Multicast Routing Framework for the Linux operating system
34 and provides MLDv2 (as well as MLDv1), PIM-SM and MBGP support.
38 $(MAKE) -C $(PKG_BUILD_DIR)/src \
39 $(TARGET_CONFIGURE_OPTS) \
43 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DNO_INET6_OPTION -fno-builtin -fno-rtti" \
44 LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -ldl -lgcc -lm" \
45 MODULE_CXX="\$$$$(CC) -shared \$$$$(CXXFLAGS) \$$$$(LDFLAGS)" \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
51 define Package/mrd6/conffiles
55 define Package/mrd6/install
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(INSTALL_CONF) ./files/mrd6.conf $(1)/etc
58 $(INSTALL_BIN) ./files/mrd6.init $(1)/etc/init.d/mrd6
59 $(INSTALL_DIR) $(1)/usr/sbin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mrd $(1)/usr/sbin/mrd6
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mrd6sh $(1)/usr/bin/mrd6sh
63 $(INSTALL_DIR) $(1)/usr/lib/mrd6
64 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mrd6/bgp.so $(1)/usr/lib/mrd6/bgp.so
67 $(eval $(call BuildPackage,mrd6))