Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. PKG_NAME:=wireguard-tools
  10. PKG_VERSION:=1.0.20250521
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=wireguard-tools-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=https://git.zx2c4.com/wireguard-tools/snapshot/
  14. PKG_HASH:=b6f2628b85b1b23cc06517ec9c74f82d52c4cdbd020f3dd2f00c972a1782950e
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. MAKE_PATH:=src
  20. MAKE_VARS += PLATFORM=linux
  21. define Package/wireguard-tools
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=VPN
  25. URL:=https://www.wireguard.com
  26. MAINTAINER:=Jason A. Donenfeld <[email protected]>
  27. TITLE:=WireGuard userspace control program (wg)
  28. DEPENDS:= \
  29. +!BUSYBOX_CONFIG_IP:ip \
  30. +!BUSYBOX_CONFIG_FEATURE_IP_LINK:ip \
  31. +kmod-wireguard
  32. endef
  33. define Package/wireguard-tools/description
  34. WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
  35. state-of-the-art cryptography. It aims to be faster, simpler, leaner, and
  36. more useful than IPSec, while avoiding the massive headache. It intends to
  37. be considerably more performant than OpenVPN. WireGuard is designed as a
  38. general purpose VPN for running on embedded interfaces and super computers
  39. alike, fit for many different circumstances. It uses UDP.
  40. This package provides the userspace control program for WireGuard,
  41. `wg(8)`, a netifd protocol helper, and a re-resolve watchdog script.
  42. endef
  43. define Package/wireguard-tools/install
  44. $(INSTALL_DIR) $(1)/usr/bin/
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wg $(1)/usr/bin/
  46. $(INSTALL_BIN) ./files/wireguard_watchdog $(1)/usr/bin/
  47. $(INSTALL_DIR) $(1)/lib/netifd/proto/
  48. $(INSTALL_BIN) ./files/wireguard.sh $(1)/lib/netifd/proto/
  49. endef
  50. $(eval $(call BuildPackage,wireguard-tools))