0f64ebef947006b8be8d42a48e12393491157a89
[openwrt/staging/chunkeey.git] / package / network / ipv6 / map / Makefile
1 #
2 # Copyright (C) 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:=map
11 PKG_VERSION:=1
12 PKG_RELEASE:=2
13
14 include $(INCLUDE_DIR)/package.mk
15 include $(INCLUDE_DIR)/cmake.mk
16
17 define Package/map
18 SECTION:=net
19 CATEGORY:=Network
20 DEPENDS:=+kmod-ipv6 +kmod-ip6-tunnel +libubox +libubus +iptables-mod-conntrack-extra
21 TITLE:=MAP-E and Lightweight 4over6 configuration support
22 MAINTAINER:=Steven Barth <steven@midlink.org>
23 endef
24
25 define Package/map/description
26 Provides support for MAP-E (draft-ietf-softwire-map) and
27 Lightweight 4over6 (draft-ietf-softwire-lw4over6) in /etc/config/network.
28 Refer to http://wiki.openwrt.org/doc/uci/network for
29 configuration details.
30 endef
31
32 define Build/Prepare
33 mkdir -p $(PKG_BUILD_DIR)
34 $(CP) ./src/* $(PKG_BUILD_DIR)/
35 endef
36
37 define Package/map/install
38 $(INSTALL_DIR) $(1)/lib/netifd/proto
39 $(INSTALL_BIN) ./files/map.sh $(1)/lib/netifd/proto/map.sh
40 $(INSTALL_DIR) $(1)/usr/sbin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mapcalc $(1)/usr/sbin/
42 endef
43
44 $(eval $(call BuildPackage,map))