wireguard-tools: bump to 1.0.20200206
[openwrt/staging/mkresin.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.20200206
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:=f5207248c6a3c3e3bfc9ab30b91c1897b00802ed861e1f9faaed873366078c64
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 $(call Package/wireguard/Default)
35 TITLE:=WireGuard userspace control program (wg)
36 DEPENDS:=+ip
37 endef
38
39 define Package/wireguard-tools/description
40 $(call Package/wireguard/Default/description)
41
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
46 define Package/wireguard-tools/install
47 $(INSTALL_DIR) $(1)/usr/bin/
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wg $(1)/usr/bin/
49 $(INSTALL_BIN) ./files/wireguard_watchdog $(1)/usr/bin/
50 $(INSTALL_DIR) $(1)/lib/netifd/proto/
51 $(INSTALL_BIN) ./files/wireguard.sh $(1)/lib/netifd/proto/
52 endef
53
54 $(eval $(call BuildPackage,wireguard-tools))