Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.20210424
  12. PKG_RELEASE:=$(AUTORELEASE)
  13. PKG_SOURCE:=wireguard-tools-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_URL:=https://git.zx2c4.com/wireguard-tools/snapshot/
  15. PKG_HASH:=b288b0c43871d919629d7e77846ef0b47f8eeaa9ebc9cedeee8233fc6cc376ad
  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:= \
  31. +@BUSYBOX_CONFIG_IP \
  32. +@BUSYBOX_CONFIG_FEATURE_IP_LINK \
  33. +kmod-wireguard
  34. endef
  35. define Package/wireguard-tools/description
  36. WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
  37. state-of-the-art cryptography. It aims to be faster, simpler, leaner, and
  38. more useful than IPSec, while avoiding the massive headache. It intends to
  39. be considerably more performant than OpenVPN. WireGuard is designed as a
  40. general purpose VPN for running on embedded interfaces and super computers
  41. alike, fit for many different circumstances. It uses UDP.
  42. This package provides the userspace control program for WireGuard,
  43. `wg(8)`, a netifd protocol helper, and a re-resolve watchdog script.
  44. endef
  45. define Package/wireguard-tools/install
  46. $(INSTALL_DIR) $(1)/usr/bin/
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wg $(1)/usr/bin/
  48. $(INSTALL_BIN) ./files/wireguard_watchdog $(1)/usr/bin/
  49. $(INSTALL_DIR) $(1)/lib/netifd/proto/
  50. $(INSTALL_BIN) ./files/wireguard.sh $(1)/lib/netifd/proto/
  51. endef
  52. $(eval $(call BuildPackage,wireguard-tools))