2 # Copyright (C) 2016-2019 Jason A. Donenfeld <Jason@zx2c4.com>
3 # Copyright (C) 2016 Baptiste Jonglez <openwrt@bitsofnetworks.org>
4 # Copyright (C) 2016-2017 Dan Luedtke <mail@danrl.com>
6 # This is free software, licensed under the GNU General Public License v2.
7 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
12 PKG_NAME:=wireguard-tools
14 PKG_VERSION:=1.0.20210914
17 PKG_SOURCE:=wireguard-tools-$(PKG_VERSION).tar.xz
18 PKG_SOURCE_URL:=https://git.zx2c4.com/wireguard-tools/snapshot/
19 PKG_HASH:=97ff31489217bb265b7ae850d3d0f335ab07d2652ba1feec88b734bc96bd05ac
22 PKG_LICENSE_FILES:=COPYING
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/package-defaults.mk
31 MAKE_VARS += PLATFORM=linux
33 define Package/wireguard-tools
37 URL:=https://www.wireguard.com
38 MAINTAINER:=Jason A. Donenfeld <Jason@zx2c4.com>
39 TITLE:=WireGuard userspace control program (wg)
43 define Package/wireguard-tools/description
44 WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
45 state-of-the-art cryptography. It aims to be faster, simpler, leaner, and
46 more useful than IPSec, while avoiding the massive headache. It intends to
47 be considerably more performant than OpenVPN. WireGuard is designed as a
48 general purpose VPN for running on embedded interfaces and super computers
49 alike, fit for many different circumstances. It uses UDP.
51 This package provides the userspace control program for WireGuard,
52 `wg(8)`, a netifd protocol helper, and a re-resolve watchdog script.
55 define Package/wireguard-tools/install
56 $(INSTALL_DIR) $(1)/usr/bin/
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wg $(1)/usr/bin/
58 $(INSTALL_BIN) ./files/wireguard_watchdog $(1)/usr/bin/
59 $(INSTALL_DIR) $(1)/lib/netifd/proto/
60 $(INSTALL_BIN) ./files/wireguard.sh $(1)/lib/netifd/proto/
63 $(eval $(call BuildPackage,wireguard-tools))