map: depend on nat46, provide map-t
[openwrt/staging/jogo.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_VERSION:=4
12 PKG_RELEASE:=12
13 PKG_LICENSE:=GPL-2.0
14
15 include $(INCLUDE_DIR)/package.mk
16 include $(INCLUDE_DIR)/cmake.mk
17
18 define Package/map
19 SECTION:=net
20 CATEGORY:=Network
21 DEPENDS:=@IPV6 +kmod-ip6-tunnel +libubox +libubus +iptables-mod-conntrack-extra +kmod-nat46
22 TITLE:=MAP-E/MAP-T and Lightweight 4over6 configuration support
23 MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
24 PROVIDES:=map-t
25 endef
26
27 define Package/map/description
28 Provides support for MAP-E (RFC7597), MAP-T (RFC7599) and
29 Lightweight 4over6 (RFC7596) in /etc/config/network.
30 MAP combines address and port translation with the tunneling
31 of IPv4 packets over an IPv6 network
32 endef
33
34 define Package/map/install
35 $(INSTALL_DIR) $(1)/lib/netifd/proto
36 $(INSTALL_BIN) ./files/map.sh $(1)/lib/netifd/proto/map.sh
37 $(INSTALL_DIR) $(1)/usr/sbin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mapcalc $(1)/usr/sbin/
39 endef
40
41 $(eval $(call BuildPackage,map))