Makefile 1.1 KB

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