Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:=5
  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
  18. TITLE:=MAP-E and Lightweight 4over6 configuration support
  19. MAINTAINER:=Steven Barth <steven@midlink.org>
  20. endef
  21. define Package/map/description
  22. Provides support for MAP-E (draft-ietf-softwire-map) and
  23. Lightweight 4over6 (draft-ietf-softwire-lw4over6) in /etc/config/network.
  24. Refer to http://wiki.openwrt.org/doc/uci/network for
  25. configuration details.
  26. endef
  27. define Build/Prepare
  28. mkdir -p $(PKG_BUILD_DIR)
  29. $(CP) ./src/* $(PKG_BUILD_DIR)/
  30. endef
  31. define Package/map/install
  32. $(INSTALL_DIR) $(1)/lib/netifd/proto
  33. $(INSTALL_BIN) ./files/map.sh $(1)/lib/netifd/proto/map.sh
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mapcalc $(1)/usr/sbin/
  36. endef
  37. $(eval $(call BuildPackage,map))