Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Copyright (C) 2016-2019 Jason A. Donenfeld <[email protected]>
  3. # Copyright (C) 2016 Baptiste Jonglez <[email protected]>
  4. # Copyright (C) 2016-2017 Dan Luedtke <[email protected]>
  5. #
  6. # This is free software, licensed under the GNU General Public License v2.
  7. # See /LICENSE for more information.
  8. include $(TOPDIR)/rules.mk
  9. include $(INCLUDE_DIR)/kernel.mk
  10. PKG_NAME:=wireguard-tools
  11. PKG_VERSION:=1.0.20200827
  12. PKG_RELEASE:=2
  13. PKG_SOURCE:=wireguard-tools-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_URL:=https://git.zx2c4.com/wireguard-tools/snapshot/
  15. PKG_HASH:=51bc85e33a5b3cf353786ae64b0f1216d7a871447f058b6137f793eb0f53b7fd
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/package-defaults.mk
  21. MAKE_PATH:=src
  22. MAKE_VARS += PLATFORM=linux
  23. define Package/wireguard-tools
  24. SECTION:=net
  25. CATEGORY:=Network
  26. SUBMENU:=VPN
  27. URL:=https://www.wireguard.com
  28. MAINTAINER:=Jason A. Donenfeld <[email protected]>
  29. TITLE:=WireGuard userspace control program (wg)
  30. DEPENDS:=+@BUSYBOX_CONFIG_IP +@BUSYBOX_CONFIG_FEATURE_IP_LINK
  31. endef
  32. define Package/wireguard-tools/description
  33. WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
  34. state-of-the-art cryptography. It aims to be faster, simpler, leaner, and
  35. more useful than IPSec, while avoiding the massive headache. It intends to
  36. be considerably more performant than OpenVPN. WireGuard is designed as a
  37. general purpose VPN for running on embedded interfaces and super computers
  38. alike, fit for many different circumstances. It uses UDP.
  39. This package provides the userspace control program for WireGuard,
  40. `wg(8)`, a netifd protocol helper, and a re-resolve watchdog script.
  41. endef
  42. define Package/wireguard-tools/install
  43. $(INSTALL_DIR) $(1)/usr/bin/
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wg $(1)/usr/bin/
  45. $(INSTALL_BIN) ./files/wireguard_watchdog $(1)/usr/bin/
  46. $(INSTALL_DIR) $(1)/lib/netifd/proto/
  47. $(INSTALL_BIN) ./files/wireguard.sh $(1)/lib/netifd/proto/
  48. endef
  49. $(eval $(call BuildPackage,wireguard-tools))