2848fe9ea28ac153044c145368922c0c6e5e3cfd
[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_VERSION:=3
12 PKG_RELEASE:=1
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:=+kmod-ipv6 +kmod-ip6-tunnel +libubox +libubus +iptables-mod-conntrack-extra
22 TITLE:=MAP-E and Lightweight 4over6 configuration support
23 MAINTAINER:=Steven Barth <steven@midlink.org>
24 endef
25
26 define Package/map/description
27 Provides support for MAP-E (draft-ietf-softwire-map) and
28 Lightweight 4over6 (draft-ietf-softwire-lw4over6) in /etc/config/network.
29 Refer to http://wiki.openwrt.org/doc/uci/network for
30 configuration details.
31 endef
32
33 define Build/Prepare
34 mkdir -p $(PKG_BUILD_DIR)
35 $(CP) ./src/* $(PKG_BUILD_DIR)/
36 endef
37
38 define Package/map/install
39 $(INSTALL_DIR) $(1)/lib/netifd/proto
40 $(INSTALL_BIN) ./files/map.sh $(1)/lib/netifd/proto/map.sh
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mapcalc $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,map))