summaryrefslogtreecommitdiff
path: root/repo/system/polkit/polkit.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/system/polkit/polkit.xibuild
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/system/polkit/polkit.xibuild')
-rw-r--r--repo/system/polkit/polkit.xibuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/repo/system/polkit/polkit.xibuild b/repo/system/polkit/polkit.xibuild
new file mode 100644
index 0000000..eb236bc
--- /dev/null
+++ b/repo/system/polkit/polkit.xibuild
@@ -0,0 +1,58 @@
+#!/bin/sh
+
+MAKEDEPS="git gobject-introspection meson libxslt patch elogind gtk-doc autoconf-archive"
+DEPS="expat glib js78 pam"
+
+PKG_VER=0.120
+SOURCE=https://www.freedesktop.org/software/polkit/releases/polkit-$PKG_VER.tar.gz
+
+DESC="Application development toolkit for controlling system-wide privileges"
+
+ADDITIONAL="
+ files/polkit-1
+ patches/CVE-2021-4034.patch
+ patches/make-innetgr-optional.patch
+"
+
+prepare () {
+ apply_patches
+
+ autoreconf -fi
+}
+
+build () {
+ mkdir build &&
+ cd build &&
+
+ ../configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --libexecdir=/usr/lib/polkit-1 \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-introspection \
+ --with-authfw=pam \
+ --with-os-type=alpine \
+ --disable-gtk-doc \
+ --disable-gtk-doc-html \
+ --disable-gtk-doc-pdf \
+ --disable-libelogind \
+ --disable-systemd \
+ --enable-libsystemd-login
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install &&
+ cd .. &&
+ install -m644 polkit-1 $PKG_DEST/etc/pam.d/polkit-1
+}
+
+postinstall() {
+ /usr/sbin/groupadd -fg 27 polkitd &&
+ /usr/sbin/useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
+ -g polkitd -s /bin/false polkitd
+ true
+}