[packages_12.09] lispmob: Updating the package
[12.09/packages.git] / net / lispmob / Makefile
1 #
2 # Copyright (C) 2012 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:=lispmob
11 PKG_REV:=45ebcfc06097c039351b3bf6f1b3ae7bf66990e2
12 PKG_VERSION:=0.3.0
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=git://github.com/LISPmob/lispmob.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/lispd/default
24   MAINTAINER:=Vasileios Lakafosis <lakafv@gmail.com>
25   URL:=http://lisp.cisco.com/
26 endef
27
28 define Package/lispd
29   SECTION:=net
30   CATEGORY:=Network
31   TITLE:=Locator/ID separation protocol (using TUN)
32   URL:=https://github.com/LISPmob
33   DEPENDS:= +librt +libopenssl +confuse +kmod-tun +uci
34   $(call Package/lispd/default)
35 endef
36
37 define Package/lispd/description
38   This packet provides support for the Locator-ID support protocol.
39 endef
40
41 define Package/lispd/install
42         $(INSTALL_DIR) $(1)/usr/sbin
43         $(INSTALL_BIN) $(PKG_BUILD_DIR)/lispd/lispd $(1)/usr/sbin/
44         $(INSTALL_DIR) $(1)/etc/config
45         $(INSTALL_CONF) $(PKG_BUILD_DIR)/lispd/lispd.uci.example $(1)/etc/config/lispd
46         $(INSTALL_DIR) $(1)/etc/init.d
47         $(INSTALL_BIN) $(PKG_BUILD_DIR)/lispd/openwrt.init.script $(1)/etc/init.d/lisp
48 endef
49
50 $(eval $(call BuildPackage,lispd))