5d0e0bbd3d8aef62bb22c5f8801dc3b2a3a6a12e
[openwrt/openwrt.git] / package / network / ipv6 / map / Makefile
1 #
2 # Copyright (C) 2014-2015 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_RELEASE:=5
12 PKG_LICENSE:=GPL-2.0
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:=@IPV6 +kmod-ip6-tunnel +libubox +libubus +iptables-mod-conntrack-extra +kmod-nat46
21 TITLE:=MAP-E/MAP-T and Lightweight 4over6 configuration support
22 MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
23 PROVIDES:=map-t
24 endef
25
26 define Package/map/description
27 Provides support for MAP-E (RFC7597), MAP-T (RFC7599) and
28 Lightweight 4over6 (RFC7596) in /etc/config/network.
29 MAP combines address and port translation with the tunneling
30 of IPv4 packets over an IPv6 network
31 endef
32
33 define Package/map/install
34 $(INSTALL_DIR) $(1)/lib/netifd/proto
35 $(INSTALL_BIN) ./files/map.sh $(1)/lib/netifd/proto/map.sh
36 $(INSTALL_DIR) $(1)/usr/sbin
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mapcalc $(1)/usr/sbin/
38 endef
39
40 $(eval $(call BuildPackage,map))