source: packages/ipv6/mrd6/Makefile @ 8460

Last change on this file since 8460 was 8460, checked in by florian, 9 years ago

Apply mrd6 fixes from #2228

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=mrd6
12PKG_VERSION:=0.9.5
13PKG_RELEASE:=1
14PKG_MD5SUM:=24a08cf1407000d628a272b08a415dda
15
16PKG_SOURCE_URL:=http://hng.av.it.pt/mrd6/download/
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18PKG_CAT:=zcat
19
20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23PKG_BUILD_DEPENDS:=libnotimpl
24
25include $(INCLUDE_DIR)/package.mk
26
27define Package/mrd6
28  SECTION:=ipv6
29  CATEGORY:=IPv6
30  DEPENDS:=@LINUX_2_6 +uclibcxx
31  TITLE:=IPv6 multicast routing daemon
32  DESCRIPTION:=Multicast is becoming a major component in next generation\\\
33                networks, used in several scenarios, from video broadcasting\\\
34                to multimedia conferencing. In order to be implemented, new\\\
35                technology needs supporting hardware and software across a set\\\
36                of devices and systems. MRD6 is an implementation of a modular\\\
37                IPv6 Multicast Routing Framework for the Linux operating system\\\
38                and provides MLDv2 (as well as MLDv1), PIM-SM and MBGP support.\\\
39  URL:=http://artemis.av.it.pt/mrd6/
40endef
41
42define Package/mrd6/conffiles
43/etc/mrd6.conf
44endef
45
46define Build/Compile   
47        $(MAKE) -C $(PKG_BUILD_DIR)/src \
48                OPTIMIZE=yes \
49                SPACE_OPTIMIZE=yes \
50                FULL_STATIC=no \
51                CFLAGS="$(TARGET_CFLAGS) -DNO_INET6_OPTION" \
52                CXX="$(TARGET_CROSS)g++" \
53                CC="$(TARGET_CC)" \
54                STAGING_DIR="$(STAGING_DIR)" \
55                DESTDIR="$(PKG_INSTALL_DIR)" \
56                PREFIX=/usr/ \
57                install
58endef
59
60define Package/mrd6/install
61        $(INSTALL_DIR) $(1)/etc/init.d
62        $(INSTALL_DATA) files/mrd6.conf $(1)/etc
63        $(INSTALL_BIN) files/mrd6.init $(1)/etc/init.d/mrd6
64        $(INSTALL_DIR) $(1)/usr/sbin
65        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mrd $(1)/usr/sbin/mrd6
66        $(INSTALL_DIR) $(1)/usr/bin
67        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mrd6sh $(1)/usr/bin/mrd6sh
68        $(INSTALL_DIR) $(1)/usr/lib/mrd6
69        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mrd6/bgp.so $(1)/usr/lib/mrd6/bgp.so
70endef
71
72$(eval $(call BuildPackage,mrd6))
Note: See TracBrowser for help on using the repository browser.