Files
termux-packages/packages/softether-vpn/src-Mayaqua-Unix.c.orig.patch
termux-pacman-bot 6a9266c540 bump(main/softether-vpn): 5.2.5188
- Fixes https://github.com/termux/termux-packages/issues/22075

- Convert source to LF before patching

- Disable `OQS_ENABLE_KEM_NTRUPRIME` to avoid https://github.com/open-quantum-safe/liboqs/issues/2324

- Disable `install` CMake targets of vendored `cpu_features` to avoid conflict with `libcpufeatures`
2025-11-21 08:07:17 +00:00

26 lines
677 B
Diff

--- a/src/Mayaqua/Unix.c
+++ b/src/Mayaqua/Unix.c
@@ -310,7 +310,7 @@ bool UnixIsInVmMain()
#endif
#if defined(UNIX_LINUX)
- t = UnixExec("/bin/dmesg");
+ t = UnixExec("@TERMUX_PREFIX@/bin/dmesg");
#elif defined(__FreeBSD__)
t = UnixExec("/sbin/sysctl -n kern.vm_guest");
#endif
@@ -363,11 +363,11 @@
// Mac OS X
if (b)
{
- UnixExecSilent("/usr/sbin/sysctl -w net.inet.ipsec.esp_port=4500");
+ UnixExecSilent("@TERMUX_PREFIX@/bin/sysctl -w net.inet.ipsec.esp_port=4500");
}
else
{
- UnixExecSilent("/usr/sbin/sysctl -w net.inet.ipsec.esp_port=4501");
+ UnixExecSilent("@TERMUX_PREFIX@/bin/sysctl -w net.inet.ipsec.esp_port=4501");
}
}
}