source: trunk/package/aodv-uu/Makefile @ 10831

Last change on this file since 10831 was 10831, checked in by agb, 9 years ago

Mark broken packages as broken:

  • acx-mac80211
  • openswan
  • aodv-uu
  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1#
2# Copyright (C) 2006-2008 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
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=aodv-uu
13PKG_VERSION:=0.9.3
14PKG_RELEASE:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17PKG_SOURCE_URL:=http://core.it.uu.se/core/files/
18PKG_MD5SUM:=05460543054449cb4b170252a7168c65
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/aodv-uu/Default
23  TITLE:=Ad-hoc On-demand Distance Vector Routing
24  DEPENDS:=@BROKEN
25  URL:=http://core.it.uu.se/core/index.php/AODV-UU
26endef
27
28define Package/aodv-uu/Default/description
29 AODV is the Ad-hoc On-demand Distance Vector routing protocol
30 implementation created at Uppsala University.
31endef
32
33define Package/aodv-uu
34$(call Package/aodv-uu/Default)
35  SECTION:=net
36  CATEGORY:=Network
37  TITLE+= (daemon)
38endef
39
40define Package/aodv-uu/description
41$(call Package/aodv-uu/Default/description)
42 This package contains the AODV userland daemon.
43endef
44
45define KernelPackage/aodv-uu
46$(call Package/aodv-uu/Default)
47  TITLE+= (kernel module)
48  FILES:=$(PKG_BUILD_DIR)/lnx/kaodv.$(LINUX_KMOD_SUFFIX)
49  SUBMENU:=Network Support
50  AUTOLOAD:=$(call AutoLoad,80,$(shell cat ./files/aodv-uu.modules))
51endef
52
53define KernelPackage/aodv-uu/description
54$(call Package/aodv-uu/Default/description)
55 This package contains the AODV kernel module.
56endef
57
58ifeq ($(CONFIG_LINUX_2_6),y)
59  define Build/Compile/linux26
60        $(MAKE) -C $(LINUX_DIR) \
61                ARCH="$(LINUX_KARCH)" \
62                CROSS_COMPILE="$(TARGET_CROSS)" \
63                PATCHLEVEL="$(LINUX_VERSION)" \
64                KERNDIR="$(LINUX_DIR)" \
65                SUBDIRS="$(PKG_BUILD_DIR)/lnx" \
66                modules
67  endef
68else
69  # We assume 2.4 builds are only for brcm-2.4 yet
70  define Build/Compile/linux24-brcm
71        $(call Build/Compile/Default,\
72                KERNEL_DIR="$(LINUX_DIR)" \
73                KCC="$(TARGET_CC)" \
74                CFLAGS="$(TARGET_CFLAGS)" \
75                kaodv-mips \
76        )
77        cp $(PKG_BUILD_DIR)/lnx/kaodv-mips.$(LINUX_KMOD_SUFFIX) $(PKG_BUILD_DIR)/lnx/kaodv.$(LINUX_KMOD_SUFFIX)
78  endef
79endif
80
81define Build/Compile
82        $(call Build/Compile/linux26)
83        $(call Build/Compile/linux24-brcm)
84        $(call Build/Compile/Default,\
85                KERNEL_DIR="$(LINUX_DIR)" \
86                KCC="$(TARGET_CC)" \
87                CFLAGS="$(TARGET_CFLAGS)" \
88                aodvd \
89        )
90endef
91
92define Package/aodv-uu/install
93        $(INSTALL_DIR) $(1)/usr/sbin
94        $(INSTALL_BIN) $(PKG_BUILD_DIR)/aodvd $(1)/usr/sbin
95endef
96
97define Package/kmod-aodv-uu/install
98        $(INSTALL_DIR) $(1)/etc/modules.d
99        $(INSTALL_DATA) ./files/aodv-uu.modules $(1)/etc/modules.d/80-aodv-uu
100        $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
101        $(CP) $(PKG_BUILD_DIR)/lnx/kaodv.$(LINUX_KMOD_SUFFIX) $(1)/lib/modules/$(LINUX_VERSION)/
102endef
103
104$(eval $(call BuildPackage,aodv-uu))
105$(eval $(call KernelPackage,aodv-uu))
Note: See TracBrowser for help on using the repository browser.