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
11 PKG_SOURCE_VERSION
:=c805eb33255dbc0b6647d463c6c67d1c9d3105a0
12 PKG_VERSION
:=2013-11-30-$(PKG_SOURCE_VERSION
)
16 PKG_SOURCE_URL
:=https
://github.com
/hugosantos
/mrd6.git
17 PKG_MIRROR_HASH
:=d338549549c1e7b3f8a292c76e04cbfad1c7c6c9c77cbce6afbaa99bee9b8460
18 PKG_MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>
21 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
22 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
27 include $(INCLUDE_DIR
)/package.mk
32 TITLE
:=IPv6 multicast routing daemon
33 URL
:=http
://fivebits.net
/proj
/mrd6
34 DEPENDS
:=@IPV6
+libstdcpp
37 define Package
/mrd6
/description
38 Multicast is becoming a major component in next generation networks
, used
39 in several scenarios
, from video broadcasting to multimedia conferencing.
40 In order to be implemented
, new technology needs supporting hardware and
41 software across a set of devices and systems. MRD6 is an implementation of
42 a modular IPv6 Multicast Routing Framework for the Linux operating system
43 and provides MLDv2
(as well
as MLDv1
), PIM-SM and MBGP support.
47 $(TARGET_CONFIGURE_OPTS
) \
51 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DNO_INET6_OPTION -fno-builtin -fno-rtti" \
52 LDFLAGS
="$(TARGET_LDFLAGS) -ldl -lm" \
53 MODULE_CXX
="\$$$$(CC) -shared \$$$$(CXXFLAGS) \$$$$(LDFLAGS)" \
54 DESTDIR
="$(PKG_INSTALL_DIR)" \
58 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/src
$(MRD6_MAKEFLAGS
) all
62 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src
$(MRD6_MAKEFLAGS
) install
65 define Package
/mrd6
/conffiles
69 define Package
/mrd6
/install
70 $(INSTALL_DIR
) $(1)/etc
/init.d
71 $(INSTALL_CONF
) .
/files
/mrd6.conf
$(1)/etc
72 $(INSTALL_BIN
) .
/files
/mrd6.init
$(1)/etc
/init.d
/mrd6
73 $(INSTALL_DIR
) $(1)/usr
/sbin
74 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mrd
$(1)/usr
/sbin
/mrd6
75 $(INSTALL_DIR
) $(1)/usr
/bin
76 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mrd6sh
$(1)/usr
/bin
/mrd6sh
77 $(INSTALL_DIR
) $(1)/usr
/lib
/mrd6
78 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/mrd6
/bgp.so
$(1)/usr
/lib
/mrd6
/bgp.so
81 $(eval
$(call BuildPackage
,mrd6
))