32 lines
919 B
Plaintext
32 lines
919 B
Plaintext
# Description: Application development toolkit for controlling system-wide privileges
|
|
# URL: https://gitlab.freedesktop.org/polkit/polkit/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: dbus gobject-introspection intltool mozjs78 util-linux
|
|
|
|
name=polkit
|
|
version=0.120
|
|
release=3
|
|
source=(https://freedesktop.org/software/polkit/releases/$name-$version.tar.gz
|
|
polkit-1
|
|
CVE-2021-4034.patch 99.patch)
|
|
|
|
build() {
|
|
patch -Np1 -d $name-$version -i $SRC/99.patch
|
|
patch -Np1 -d $name-$version -i $SRC/CVE-2021-4034.patch
|
|
|
|
meson setup $name-$version build \
|
|
--prefix=/usr \
|
|
--buildtype=plain \
|
|
--wrap-mode nodownload \
|
|
-D b_lto=true \
|
|
-D b_pie=true
|
|
meson compile -C build
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
chmod 4775 $PKG/usr/bin/pkexec
|
|
chmod 4755 $PKG/usr/lib/polkit-1/polkit-agent-helper-1
|
|
install -m 0644 $SRC/polkit-1 $PKG/etc/pam.d
|
|
|
|
rm -r $PKG/usr/share/locale
|
|
}
|