diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-12-04 05:54:52 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-12-07 20:50:20 -0600 |
commit | 7a2994761b1b0c34f270a808330d297dfd0d5eb2 (patch) | |
tree | c8319d7797f454eddd9c1a64e5a7b84066316f5d /user/polkit/APKBUILD | |
parent | a33cfd93f9c412b0e5a485f8d858287214f39ff9 (diff) | |
download | packages-7a2994761b1b0c34f270a808330d297dfd0d5eb2.tar.gz packages-7a2994761b1b0c34f270a808330d297dfd0d5eb2.tar.bz2 packages-7a2994761b1b0c34f270a808330d297dfd0d5eb2.tar.xz packages-7a2994761b1b0c34f270a808330d297dfd0d5eb2.zip |
user/polkit: Update to 123
* Uses duktape instead of SpiderMonkey/MozJS as JavaScript engine.
* Lots of important CVEs fixes.
* Uses Meson instead of autotools.
* Most patches integrated upstream!
Ref: #1100, #1104
Suggested-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'user/polkit/APKBUILD')
-rw-r--r-- | user/polkit/APKBUILD | 55 |
1 files changed, 17 insertions, 38 deletions
diff --git a/user/polkit/APKBUILD b/user/polkit/APKBUILD index 8616b82d4..683571a77 100644 --- a/user/polkit/APKBUILD +++ b/user/polkit/APKBUILD @@ -1,68 +1,47 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=polkit -pkgver=0.116 -pkgrel=1 +pkgver=123 +pkgrel=0 pkgdesc="Toolkit for controlling system-wide privileges" url="https://www.freedesktop.org/wiki/Software/polkit/" arch="all" options="!check suid" # Requires running ConsoleKit and PolKit for JS backend license="LGPL-2.0+" depends="" -makedepends="glib-dev gobject-introspection-dev gtk-doc intltool linux-pam-dev - mozjs-dev autoconf automake libtool elogind-dev" +makedepends="glib-dev gobject-introspection-dev gtk-doc linux-pam-dev meson + duktape-dev elogind-dev" pkgusers="polkitd" pkggroups="polkitd" install="$pkgname.pre-install $pkgname.pre-upgrade" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" -source="https://www.freedesktop.org/software/polkit/releases/polkit-$pkgver.tar.gz - 0001-make-netgroup-support-optional.patch +source="https://gitlab.freedesktop.org/polkit/polkit/-/archive/$pkgver/polkit-$pkgver.tar.bz2 fix-consolekit-db-stat.patch fix-test-fgetpwent.patch - polkit-0.115-elogind.patch " # secfixes: +# 0.123-r0: +# - CVE-2021-4034 # 0.115-r2: # - CVE-2018-19788 -prepare() { - default_prepare - autoreconf -vif -} - build() { - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --libexecdir=/usr/lib/polkit-1 \ - --localstatedir=/var \ - --disable-static \ - --enable-nls \ - --enable-introspection \ - --enable-man-pages \ - --with-pam-include=base-auth \ - --disable-gtk-doc-html \ - --disable-gtk-doc-pdf \ - --enable-libelogind=yes - - make + meson setup . build \ + -Dsession_tracking=libelogind \ + -Dman=true \ + -Dpam_include='base-auth' + meson compile -C build } check() { - make check + meson test -C build } package() { - make DESTDIR="$pkgdir" install + meson install -C build --destdir="$pkgdir" } -sha512sums="b66b01cc2bb4349de70147f41f161f0f6f41e7230b581dfb054058b48969ec57041ab05b51787c749ccfc36aa5f317952d7e7ba337b4f6f6c0a923ed5866c2d5 polkit-0.116.tar.gz -f13a350a040a80b705d28e2ce3fac183409f593dc360879ce1bc9ec85faa7796cf0f4e054098b737fb816369de6c9d598449f6908316484aac99a44a68102ae6 0001-make-netgroup-support-optional.patch -95493ef842b46ce9e724933a5d86083589075fb452435057b8f629643cac7c7eff67a24fd188087987e98057f0130757fad546d0c090767da3d71ebaf8485a24 fix-consolekit-db-stat.patch -966825aded565432f4fda9e54113a773b514ebf7ee7faa83bcb8b97d218ae84a8707d6747bbc3cb8a828638d692fdef34c05038f150ad38e02a29f2c782aba5b fix-test-fgetpwent.patch -06432fa56788699762c6978484640554f91728a1cb40679eb47b8514b3c7aa23aac5b9c26586eb4d7043a0af1b319bbe7f869d24844d9151317299b74a8e8f7f polkit-0.115-elogind.patch" +sha512sums="4306363d3ed7311243de462832199bd10ddda35e36449104daff0895725d8189b07a4c88340f28607846fdf761c23470da2d43288199c46aa816426384124bb6 polkit-123.tar.bz2 +bfefe2398f97138391ed34630e2994670dddaa0b13585e2e7cb101e7d11e3054dd491244ec84116b908d0f126a69032c467d83a0c52b0bb980d9b10290600745 fix-consolekit-db-stat.patch +966825aded565432f4fda9e54113a773b514ebf7ee7faa83bcb8b97d218ae84a8707d6747bbc3cb8a828638d692fdef34c05038f150ad38e02a29f2c782aba5b fix-test-fgetpwent.patch" |