Add uob-nomad, closes #540
[packages.git] / net / uob-nomad / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id: $
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=uob-nomad
11 PKG_VERSION:=0.11
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=9c7445cefaf8d6160017aef606f2e558
14
15 PKG_SOURCE_URL:=http://www.comnets.uni-bremen.de/~mab/openwrt/source/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/uob-nomad
25   SECTION:=net
26   CATEGORY:=Network
27   DEPENDS:=+kmod-ipip +libpthread
28   TITLE:=UoB Nomad
29   DESCRIPTION:=This is an implementation of NOMADv4 (Filters for\\\
30         Mobile IP, IETF Draft\\\
31         draft-mobileip-nomad-filters-05.txt) for Linux,\\\
32         based on the Sun Labs Mobile IP software. It is\\\
33         released under the Sun Public License (SPL).\\\
34         \\\
35         This version (0.11) has been modified to provide\\\
36         status information to the UoB-NOMAD-GUI (ver 0.1).
37   URL:=http://www.comnets.uni-bremen.de/~mab/openwrt/source/
38 endef
39
40 define Build/Compile
41         $(MAKE) -C $(PKG_BUILD_DIR)/Agent \
42                 CC=$(TARGET_CC) \
43                 $(TARGET_CONFIGURE_OPTS) \
44                 mipagent
45         $(MAKE) -C $(PKG_BUILD_DIR)/Client/net-tools \
46                 CC=$(TARGET_CC) \
47                 $(TARGET_CONFIGURE_OPTS) \
48                 clean
49         $(MAKE) -C $(PKG_BUILD_DIR)/Client/net-tools/lib \
50                 CC=$(TARGET_CC) \
51                 $(TARGET_CONFIGURE_OPTS) \
52                 clean
53         $(MAKE) -C $(PKG_BUILD_DIR)/Client/net-tools \
54                 CC=$(TARGET_CC) \
55                 $(TARGET_CONFIGURE_OPTS) \
56                 all
57         $(MAKE) -C $(PKG_BUILD_DIR)/Client \
58                 CC=$(TARGET_CC) \
59                 $(TARGET_CONFIGURE_OPTS) \
60                 mipmn
61 endef
62
63 define Package/uob-nomad/install        
64         install -d -m0755 $(1)/usr/bin $(1)/usr/lib $(1)/etc/
65         $(CP) $(PKG_BUILD_DIR)/Agent/mipagent $(1)/usr/bin/
66         $(CP) $(PKG_BUILD_DIR)/Client/mipmn $(1)/usr/bin
67         $(CP) $(PKG_BUILD_DIR)/conf/mip{agent,mn,mn-filters}.conf $(1)/etc/
68 endef
69
70 $(eval $(call BuildPackage,uob-nomad))