2006-08-06 10:39:32 +00:00
|
|
|
#
|
2007-09-21 11:51:00 +00:00
|
|
|
# Copyright (C) 2006,2007 OpenWrt.org
|
2006-08-06 10:39:32 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mrd6
|
2009-05-28 11:09:40 +00:00
|
|
|
PKG_VERSION:=0.9.6
|
|
|
|
PKG_RELEASE:=1
|
2006-08-06 10:39:32 +00:00
|
|
|
|
2009-05-28 11:09:40 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-09-21 11:51:00 +00:00
|
|
|
PKG_SOURCE_URL:=http://fivebits.net/files/mrd6/ \
|
|
|
|
http://hng.av.it.pt/mrd6/download/
|
2009-05-28 11:09:40 +00:00
|
|
|
PKG_MD5SUM:=00221326810358889e811c48cbac415a
|
|
|
|
TAR_OPTIONS:=
|
2006-08-06 10:39:32 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mrd6
|
|
|
|
SECTION:=ipv6
|
|
|
|
CATEGORY:=IPv6
|
|
|
|
TITLE:=IPv6 multicast routing daemon
|
|
|
|
URL:=http://artemis.av.it.pt/mrd6/
|
2009-05-29 12:01:19 +00:00
|
|
|
DEPENDS:= +uclibcxx @BROKEN
|
2006-08-06 10:39:32 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-03 16:07:32 +00:00
|
|
|
define Package/mrd6/description
|
|
|
|
Multicast is becoming a major component in next generation networks, used
|
|
|
|
in several scenarios, from video broadcasting to multimedia conferencing.
|
|
|
|
In order to be implemented, new technology needs supporting hardware and
|
|
|
|
software across a set of devices and systems. MRD6 is an implementation of
|
|
|
|
a modular IPv6 Multicast Routing Framework for the Linux operating system
|
|
|
|
and provides MLDv2 (as well as MLDv1), PIM-SM and MBGP support.
|
|
|
|
endef
|
|
|
|
|
2006-08-06 10:39:32 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/src \
|
2007-09-03 16:07:32 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2006-08-06 10:39:32 +00:00
|
|
|
OPTIMIZE=yes \
|
|
|
|
SPACE_OPTIMIZE=yes \
|
2007-08-22 08:39:39 +00:00
|
|
|
FULL_STATIC=no \
|
2007-09-03 16:07:32 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DNO_INET6_OPTION -fno-builtin -fno-rtti" \
|
2009-04-27 21:04:45 +00:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -ldl -lgcc -lm" \
|
2007-09-03 16:07:32 +00:00
|
|
|
MODULE_CXX="\$$$$(CC) -shared \$$$$(CXXFLAGS) \$$$$(LDFLAGS)" \
|
2006-10-30 13:51:50 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2007-09-21 11:51:00 +00:00
|
|
|
PREFIX="/usr" \
|
2006-08-06 10:39:32 +00:00
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
2007-09-21 11:51:00 +00:00
|
|
|
define Package/mrd6/conffiles
|
|
|
|
/etc/mrd6.conf
|
|
|
|
endef
|
|
|
|
|
2006-08-06 10:39:32 +00:00
|
|
|
define Package/mrd6/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_DATA) files/mrd6.conf $(1)/etc
|
|
|
|
$(INSTALL_BIN) files/mrd6.init $(1)/etc/init.d/mrd6
|
2007-08-22 08:39:39 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mrd $(1)/usr/sbin/mrd6
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mrd6sh $(1)/usr/bin/mrd6sh
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/mrd6
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mrd6/bgp.so $(1)/usr/lib/mrd6/bgp.so
|
2006-08-06 10:39:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mrd6))
|