librecmc : Bump to v1.5.15
[librecmc/librecmc.git] / package / network / utils / wireguard-tools / Makefile
1 #
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>
5 #
6 # This is free software, licensed under the GNU General Public License v2.
7 # See /LICENSE for more information.
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=wireguard-tools
13
14 PKG_VERSION:=1.0.20210914
15 PKG_RELEASE:=1
16
17 PKG_SOURCE:=wireguard-tools-$(PKG_VERSION).tar.xz
18 PKG_SOURCE_URL:=https://git.zx2c4.com/wireguard-tools/snapshot/
19 PKG_HASH:=97ff31489217bb265b7ae850d3d0f335ab07d2652ba1feec88b734bc96bd05ac
20
21 PKG_LICENSE:=GPL-2.0
22 PKG_LICENSE_FILES:=COPYING
23
24 PKG_BUILD_PARALLEL:=1
25 PKG_USE_MIPS16:=0
26
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/package-defaults.mk
29
30 MAKE_PATH:=src
31 MAKE_VARS += PLATFORM=linux
32
33 define Package/wireguard-tools
34   SECTION:=net
35   CATEGORY:=Network
36   SUBMENU:=VPN
37   URL:=https://www.wireguard.com
38   MAINTAINER:=Jason A. Donenfeld <Jason@zx2c4.com>
39   TITLE:=WireGuard userspace control program (wg)
40   DEPENDS:=+libmnl +ip
41 endef
42
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.
50
51   This package provides the userspace control program for WireGuard,
52   `wg(8)`, a netifd protocol helper, and a re-resolve watchdog script.
53 endef
54
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/
61 endef
62
63 $(eval $(call BuildPackage,wireguard-tools))