Merge pull request #4708 from commodo/python-cffi-fix
[feed/packages.git] / net / lispmob / Makefile
1 #
2 # Copyright (C) 2012-2014 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:=180aa39d338a00bb532e421de7f8513492cf2e8b
12 PKG_VERSION:=0.4
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_MIRROR_HASH:=584300e1a59cc976f3599213487ea8425f94300887a51c9804f0292cf2f0c8cc
17 PKG_SOURCE_URL:=git://github.com/LISPmob/lispmob.git
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=$(PKG_REV)
21
22 PKG_LICENSE:=GPLv2
23 PKG_LICENSE_FILES:=LICENSE
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/lispd/default
28 MAINTAINER:=Vasileios Lakafosis <lakafv@gmail.com>
29 URL:=http://lisp.cisco.com/
30 endef
31
32 define Package/lispd
33 SECTION:=net
34 CATEGORY:=Network
35 TITLE:=Locator/ID separation protocol (using TUN)
36 URL:=https://github.com/LISPmob
37 DEPENDS:= +librt +libopenssl +confuse +kmod-tun +uci @IPV6
38 $(call Package/lispd/default)
39 endef
40
41 define Package/lispd/description
42 This packet provides support for the Locator-ID Separation Protocol.
43 endef
44
45 MAKE_FLAGS += \
46 platform=openwrt
47
48 define Package/lispd/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lispd/lispd $(1)/usr/sbin/
51 $(INSTALL_DIR) $(1)/etc/config
52 $(INSTALL_CONF) $(PKG_BUILD_DIR)/openWRT/lispd.uci.example $(1)/etc/config/lispd
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/openWRT/openwrt.init.script $(1)/etc/init.d/lisp
55 endef
56
57 $(eval $(call BuildPackage,lispd))