2 # Copyright (C) 2006-2010 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
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 $(TARGET_CONFIGURE_OPTS
) \
44 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DNO_INET6_OPTION -fno-builtin -fno-rtti" \
45 LDFLAGS
="$(TARGET_LDFLAGS) -ldl -lm" \
46 MODULE_CXX
="\$$$$(CC) -shared \$$$$(CXXFLAGS) \$$$$(LDFLAGS)" \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
51 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/src
$(MRD6_MAKEFLAGS
) all
55 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src
$(MRD6_MAKEFLAGS
) install
58 define Package
/mrd6
/conffiles
62 define Package
/mrd6
/install
63 $(INSTALL_DIR
) $(1)/etc
/init.d
64 $(INSTALL_CONF
) .
/files
/mrd6.conf
$(1)/etc
65 $(INSTALL_BIN
) .
/files
/mrd6.init
$(1)/etc
/init.d
/mrd6
66 $(INSTALL_DIR
) $(1)/usr
/sbin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mrd
$(1)/usr
/sbin
/mrd6
68 $(INSTALL_DIR
) $(1)/usr
/bin
69 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mrd6sh
$(1)/usr
/bin
/mrd6sh
70 $(INSTALL_DIR
) $(1)/usr
/lib
/mrd6
71 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/mrd6
/bgp.so
$(1)/usr
/lib
/mrd6
/bgp.so
74 $(eval
$(call BuildPackage
,mrd6
))