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 root
user:
groupadd -fg 27 polkitd &&
useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
-g polkitd -s /bin/false polkitd
Note
When building Polkit with
systemd logind support, the
configure script
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:
sed -i "s:/sys/fs/cgroup/systemd/:/sys:g" configure
Fix an issue identified upstream after the package release:
sed -e '/JS_ReportWarningUTF8/s/,/, "%s",/' \
-i src/polkitbackend/polkitbackendjsauthority.cpp
Install Polkit by running the
following commands:
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static &&
make
To test the results, issue: make
check. Note that system D-Bus daemon must be running for the testsuite
to complete.
Now, as the root
user:
make install
Command Explanations
--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.
--disable-static
: This
switch prevents installation of static versions of the libraries.
--enable-gtk-doc
: Use this parameter if
GTK-Doc is installed and you wish
to rebuild and install the API documentation.