8435dac2bbc668573fc32ee0c9fa5826883707bb
[packages.git] / net / uob-nomad / 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:=uob-nomad
11 PKG_VERSION:=0.11
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_URL:=http://www.comnets.uni-bremen.de/~mab/openwrt/source/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=9c7445cefaf8d6160017aef606f2e558
17
18 PKG_BUILD_PARALLEL:=0
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/uob-nomad
23   SECTION:=net
24   CATEGORY:=Network
25   DEPENDS:=+kmod-iptunnel4 +libpthread
26   TITLE:=UoB Nomad
27   URL:=http://www.comnets.uni-bremen.de/~mab/openwrt/source/
28 endef
29
30 define Package/uob-nomad/description
31 This is an implementation of NOMADv4 (Filters for
32         Mobile IP, IETF Draft
33         draft-mobileip-nomad-filters-05.txt) for Linux,
34         based on the Sun Labs Mobile IP software. It is
35         released under the Sun Public License (SPL).
36         
37         This version (0.11) has been modified to provide
38         status information to the UoB-NOMAD-GUI (ver 0.1).
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/Agent mipagent)
43 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/Client/net-tools clean)
44 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/Client/net-tools/lib clean)
45 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/Client/net-tools all)
46 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/Client mipmn)
47 endef
48
49 define Package/uob-nomad/install
50         $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib $(1)/etc/
51         $(CP) $(PKG_BUILD_DIR)/Agent/mipagent $(1)/usr/bin/
52         $(CP) $(PKG_BUILD_DIR)/Client/mipmn $(1)/usr/bin
53         $(CP) $(PKG_BUILD_DIR)/conf/mip{agent,mn,mn-filters}.conf $(1)/etc/
54 endef
55
56 define Package/uob-nomad/conffiles
57 /etc/mip{agent,mn,mn-filters}.conf
58 endef
59
60 $(eval $(call BuildPackage,uob-nomad))