mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
4c0e295db2
Two ES menu items that wrote settings nothing consumed / called a missing binary, found in the menu audit: - AUTO FRAME DELAY (Latency menu) persisted `<config>.video_frame_delay_auto` to system.cfg, but setsettings.sh never translated it into retroarch.cfg, so the toggle did nothing. Add set_frame_delay(): ON/OFF -> RetroArch `video_frame_delay_auto = true/false`, AUTO leaves the cfg default. - WIREGUARD VPN toggle runs `wg-quick up/down`, but the wireguard-tools package only installed `wg`, so every toggle silently failed. wg-quick is the upstream bash helper (src/wg-quick/linux.bash); install it. Runtime deps (bash, ip, wg, iptables) are all present. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
38 lines
1.3 KiB
Makefile
38 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="wireguard-tools"
|
|
PKG_VERSION="1.0.20250521"
|
|
PKG_SHA256="6afe492647c3b0b2f68ab6df524e9e4290d03c34c3027e069e5bbc486949960e"
|
|
PKG_LICENSE="GPLv2"
|
|
PKG_SITE="https://www.wireguard.com"
|
|
PKG_URL="https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-v${PKG_VERSION}.tar.xz"
|
|
PKG_DEPENDS_TARGET="toolchain linux"
|
|
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
|
|
cp ${PKG_BUILD}/src/wg ${INSTALL}/usr/bin
|
|
# wg-quick is the upstream interface up/down helper (a bash script). The
|
|
# ES "WIREGUARD VPN" toggle runs `wg-quick up/down`, but only `wg` was
|
|
# installed, so the toggle silently failed. Ship the Linux variant; its
|
|
# runtime deps (bash, ip, wg, iptables) are all present.
|
|
cp ${PKG_BUILD}/src/wg-quick/linux.bash ${INSTALL}/usr/bin/wg-quick
|
|
chmod +x ${INSTALL}/usr/bin/wg-quick
|
|
|
|
mkdir -p ${INSTALL}/usr
|
|
cp -R ${PKG_DIR}/config ${INSTALL}/usr
|
|
}
|