replace lots of manual install commands with INSTALL_* variables
[openwrt/svn-archive/archive.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 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/Agent mipagent)
42 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/Client/net-tools clean)
43 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/Client/net-tools/lib clean)
44 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/Client/net-tools all)
45 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/Client mipmn)
46 endef
47
48 define Package/uob-nomad/install
49 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib $(1)/etc/
50 $(CP) $(PKG_BUILD_DIR)/Agent/mipagent $(1)/usr/bin/
51 $(CP) $(PKG_BUILD_DIR)/Client/mipmn $(1)/usr/bin
52 $(CP) $(PKG_BUILD_DIR)/conf/mip{agent,mn,mn-filters}.conf $(1)/etc/
53 endef
54
55 $(eval $(call BuildPackage,uob-nomad))