Installation of Polkit
There should be a dedicated user and group to take control of the
polkitd daemon after
it is started. Issue the following commands as the
groupadd -fg 27 polkitd &&
useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
-g polkitd -s /bin/false polkitd
When building Polkit with
systemd logind support, the
explicitly checks if system is booted using systemd. This can cause problems if building
the package in chroot, where the configure would fail to detect
systemd. To workaround the
problem, simply run the following command after the patch has
sed -i "s:/sys/fs/cgroup/systemd/:/sys:g" configure
Install Polkit by running the
patch -Np1 -i ../polkit-0.112-upstream_fixes-1.patch &&
./configure --prefix=/usr \
To test the results, issue: make
check. Note that system D-Bus daemon must be running for the testsuite
to complete. There is also a warning about ConsoleKit database not present, but that one
can be safely ignored.
Now, as the
switch prevents installation of static versions of the libraries.
--with-authfw=shadow: This switch
enables the package to use the Shadow rather than the Linux PAM Authentication framework. Use it if
you have not installed Linux PAM.
--enable-gtk-doc: Use this parameter if
GTK-Doc is installed and you wish
to rebuild and install the API documentation.