Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #
  2. # Copyright (C) 2014 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:=1
  10. PKG_RELEASE:=2
  11. include $(INCLUDE_DIR)/package.mk
  12. include $(INCLUDE_DIR)/cmake.mk
  13. define Package/map
  14. SECTION:=net
  15. CATEGORY:=Network
  16. DEPENDS:=+kmod-ipv6 +kmod-ip6-tunnel +libubox +libubus +iptables-mod-conntrack-extra
  17. TITLE:=MAP-E and Lightweight 4over6 configuration support
  18. MAINTAINER:=Steven Barth <[email protected]>
  19. endef
  20. define Package/map/description
  21. Provides support for MAP-E (draft-ietf-softwire-map) and
  22. Lightweight 4over6 (draft-ietf-softwire-lw4over6) in /etc/config/network.
  23. Refer to http://wiki.openwrt.org/doc/uci/network for
  24. configuration details.
  25. endef
  26. define Build/Prepare
  27. mkdir -p $(PKG_BUILD_DIR)
  28. $(CP) ./src/* $(PKG_BUILD_DIR)/
  29. endef
  30. define Package/map/install
  31. $(INSTALL_DIR) $(1)/lib/netifd/proto
  32. $(INSTALL_BIN) ./files/map.sh $(1)/lib/netifd/proto/map.sh
  33. $(INSTALL_DIR) $(1)/usr/sbin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mapcalc $(1)/usr/sbin/
  35. endef
  36. $(eval $(call BuildPackage,map))