Makefile 1.1 KB

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