2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="wireguard-tools"
|
|
|
|
PKG_VERSION="v1.0.20200513"
|
|
|
|
PKG_SHA256="4effe7e9c79b70d6ff17a78bdf4e16fb02d4e6711f85beeaea80db5b11435fdb"
|
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://www.wireguard.com"
|
|
|
|
PKG_URL="https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-$PKG_VERSION.tar.xz"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain linux libmnl"
|
|
|
|
PKG_NEED_UNPACK="$LINUX_DEPENDS"
|
|
|
|
PKG_LONGDESC="WireGuard VPN userspace tools"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
PKG_IS_KERNEL_PKG="yes"
|
|
|
|
|
|
|
|
pre_make_target() {
|
|
|
|
unset LDFLAGS
|
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
kernel_make KERNELDIR=$(kernel_path) -C src/ wg
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p $INSTALL/usr/bin
|
|
|
|
cp $PKG_DIR/scripts/wg-keygen $INSTALL/usr/bin
|
2022-05-30 17:07:02 +00:00
|
|
|
cp $PKG_DIR/scripts/wg-genconfig $INSTALL/usr/bin
|
2022-02-05 14:23:32 +00:00
|
|
|
cp $PKG_BUILD/src/wg $INSTALL/usr/bin
|
2022-05-12 00:47:42 +00:00
|
|
|
cp $PKG_BUILD/src/wg-quick/linux.bash $INSTALL/usr/bin/wg-quick
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
mkdir -p $INSTALL/usr
|
|
|
|
cp -R $PKG_DIR/config $INSTALL/usr
|
|
|
|
}
|