2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="wireguard-tools"
|
2023-05-09 19:21:47 +00:00
|
|
|
PKG_VERSION="v1.0.20210914"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://www.wireguard.com"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-${PKG_VERSION}.tar.xz"
|
2022-02-05 14:23:32 +00:00
|
|
|
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() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp ${PKG_DIR}/scripts/wg-keygen ${INSTALL}/usr/bin
|
|
|
|
cp ${PKG_DIR}/scripts/wg-genconfig ${INSTALL}/usr/bin
|
|
|
|
cp ${PKG_BUILD}/src/wg ${INSTALL}/usr/bin
|
|
|
|
cp ${PKG_BUILD}/src/wg-quick/linux.bash ${INSTALL}/usr/bin/wg-quick
|
2023-11-30 11:57:32 +00:00
|
|
|
chmod 755 ${INSTALL}/usr/bin/*
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|