alfred: update to version 2021.4
[feed/routing.git] / mrd6 / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mrd6
11 PKG_SOURCE_VERSION:=c805eb33255dbc0b6647d463c6c67d1c9d3105a0
12 PKG_VERSION:=2013-11-30-$(PKG_SOURCE_VERSION)
13 PKG_RELEASE:=3
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/hugosantos/mrd6.git
17 PKG_MIRROR_HASH:=d338549549c1e7b3f8a292c76e04cbfad1c7c6c9c77cbce6afbaa99bee9b8460
18 PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
19 PKG_LICENSE:=GPL-2.0+
20
21 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
22 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
23
24 PKG_BUILD_PARALLEL:=1
25 PKG_INSTALL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/mrd6
30 SECTION:=net
31 CATEGORY:=Network
32 TITLE:=IPv6 multicast routing daemon
33 URL:=http://fivebits.net/proj/mrd6
34 DEPENDS:=@IPV6 +libstdcpp
35 endef
36
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.
44 endef
45
46 MRD6_MAKEFLAGS:= \
47 $(TARGET_CONFIGURE_OPTS) \
48 OPTIMIZE=yes \
49 SPACE_OPTIMIZE=yes \
50 FULL_STATIC=no \
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)" \
55 PREFIX="/usr"
56
57 define Build/Compile
58 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/src $(MRD6_MAKEFLAGS) all
59 endef
60
61 define Build/Install
62 $(MAKE) -C $(PKG_BUILD_DIR)/src $(MRD6_MAKEFLAGS) install
63 endef
64
65 define Package/mrd6/conffiles
66 /etc/mrd6.conf
67 endef
68
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
79 endef
80
81 $(eval $(call BuildPackage,mrd6))