105.29. libproxy-0.5.12
Proxy configuration library: which proxy a URL goes through, from the environment, the desktop's settings or a PAC script
0.5.12-1 · LGPL-2.1-or-later · 0.3 SBU · 123.2 KiB, 10 files · 41_system, 807 of 1047 · ports/core/net-libs/libproxy
Homepage: https://libproxy.github.io/libproxy/
libproxy answers one question for the programs that link it: which proxy, if any, a given URL should go through. It reads the answer from the http_proxy, https_proxy and no_proxy environment variables, from Plasma’s proxy settings in kioslaverc, or from a proxy auto-configuration (PAC) script, which it fetches and runs. The library is libproxy.so.1, its configuration backend /usr/lib/libproxy/libpxbackend-1.0.so, and proxy is a command-line client that prints the proxy for each URL it is given. On KDOS signon-ui links it, to send a provider’s sign-in page through the proxy the desktop is set to.
Depends on: meson, ninja, pkgconf, glib, duktape, curl.
Required by (1): signon-ui.
Sources: libproxy-0.5.12.tar.gz (59.1 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libproxy'
build.sh:
meson setup build --prefix=/usr --libdir=lib \
--buildtype=release \
-Drelease=true \
-Ddocs=false \
-Dtests=false \
-Dintrospection=false \
-Dvapi=false \
-Dconfig-env=true \
-Dconfig-kde=true \
-Dconfig-gnome=false \
-Dconfig-sysconfig=false \
-Dconfig-xdp=false \
-Dconfig-osx=false \
-Dconfig-windows=false \
-Dpacrunner-duktape=true \
-Dcurl=true
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build
-Drelease=true— Build as a release. Without it the configure tries to install upstream’s git pre-commit hook into the source tree, which is a tarball with no repository.-Ddocs=false,-Dtests=false— No API reference, which needs the GObject introspection data, and no test programs.-Dintrospection=false,-Dvapi=false— No GObject introspection data and no Vala bindings; nothing in the tree loads libproxy through either.-Dconfig-env=true— Read the proxy from the*_proxyenvironment variables, which every desktop and a console login can set.-Dconfig-kde=true— Read Plasma’s proxy settings, which System Settings → Network → Proxy writes tokioslaverc, whenXDG_CURRENT_DESKTOPisKDE.-Dconfig-gnome=false— No GNOME backend: it readsorg.gnome.system.proxythrough GSettings, and the configure then requiresgsettings-desktop-schemas. The KDOS desktop is Plasma, whose settings the KDE backend reads.-Dconfig-sysconfig=false,-Dconfig-xdp=false,-Dconfig-osx=false,-Dconfig-windows=false— No backends for SUSE’s/etc/sysconfig/proxy, the Flatpak portal, macOS or Windows. KDOS has no sysconfig directory and no Flatpak; the last two never apply on Linux and are stated so the configure summary says what is built.-Dpacrunner-duktape=true— Run PAC scripts with duktape, the JavaScript engine polkit already uses.-Dcurl=true— Fetch a PAC script from the URL the settings name, through curl. Without it a PAC URL is never read and every request goes direct.
Programs: proxy.
Libraries: libproxy.a, libproxy.so.
Directories: /usr/include/libproxy, /usr/lib/libproxy, /usr/share/licenses/libproxy.