void-packages/srcpkgs/polkit/template
Leah Neukirchen 95a493c74d polkit: update to 0.120.
Add Git patch to fix CVE-2021-4034.
2022-01-25 19:30:52 +01:00

64 lines
1.9 KiB
Bash

# Template file for 'polkit'
pkgname=polkit
version=0.120
revision=1
build_style=gnu-configure
build_helper=gir
configure_args="$(vopt_enable gir introspection) -disable-static
--with-authfw=pam --with-os-type=void"
make_dirs="
/etc/polkit-1/rules.d 0700 polkitd polkitd
/usr/share/polkit-1/rules.d 0700 polkitd polkitd"
hostmakedepends="autoconf-archive automake gettext-devel glib-devel
gobject-introspection gtk-doc intltool libtool pkg-config"
makedepends="elogind-devel mozjs78-devel pam-devel"
checkdepends="python3-dbus python3-dbusmock"
short_desc="Authorization Toolkit"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.freedesktop.org/wiki/Software/polkit"
changelog="https://gitlab.freedesktop.org/polkit/polkit/-/raw/master/NEWS"
distfiles="${FREEDESKTOP_SITE}/${pkgname}/releases/${pkgname}-${version}.tar.gz"
checksum=ee7a599a853117bf273548725719fa92fabd2f136915c7a4906cee98567aee03
system_accounts="polkitd"
#replaces="polkit-elogind>=0"
#provides="polkit-elogind-${version}_${revision}"
# Package build options
build_options="gir"
build_options_default="gir"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
# see https://gitlab.freedesktop.org/polkit/polkit/-/issues/134
make_check=no
fi
pre_configure() {
autoreconf -fi
# Drop requirement of /sys/fs/cgroup/systemd test in configure... WTF.
vsed -e 's,/sys/fs/cgroup/systemd/,/sys/fs/cgroup,g' -i configure
}
post_install() {
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
vsv polkitd
}
polkit-devel_package() {
depends="libglib-devel polkit>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove "usr/share/gir-*"
fi
vmove "usr/lib/*.so"
}
}
polkit-elogind_package() {
depends="polkit>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}