tce-load -i js-17-dev gobject-introspection-dev intltool

cd polkit-0.112

CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -Os -pipe" ./configure --prefix=/usr/local --localstatedir=/var --with-authfw=shadow --disable-static --libexecdir=/usr/local/lib/polkit-1 --with-polkitd-user=tc --enable-libsystemd-login=no --with-systemdsystemunitdir=/usr/local/etc/dbus-1/system.d --disable-man-pages

find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \;

cd /usr/bin
sudo ln -s /usr/local/bin/perl perl

make
sudo make install

sudo chmod 4755 /usr/local/lib/polkit-1/polkit-agent-helper-1
sudo chmod 4755 /usr/local/bin/pkexec
sudo chmod -R 700 /usr/local/etc/polkit-1/rules.d
sudo chown -R tc:staff /usr/local/etc/polkit-1/rules.d
sudo chmod -R 700 /usr/local/share/polkit-1/rules.d
sudo chown -R tc:staff /usr/local/share/polkit-1/rules.d

checking for LIBSYSTEMD_LOGIN... no
Package systemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `systemd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'systemd' found

                  polkit 0.112
                =================

        prefix:                     /usr/local
        libdir:                     ${exec_prefix}/lib
        libexecdir:                 /usr/local/lib/polkit-1
        bindir:                     ${exec_prefix}/bin
        sbindir:                    ${exec_prefix}/sbin
        datadir:                    ${datarootdir}
        sysconfdir:                 ${prefix}/etc
        localstatedir:              /var
        docdir:                     ${datarootdir}/doc/${PACKAGE_TARNAME}

        compiler:                   gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe
        cflags:                     -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security
        cppflags:                   
        xsltproc:                   /usr/local/bin/xsltproc
        introspection:              yes

        Distribution/OS:            unknown
        Authentication framework:   shadow
        Session tracking:           ConsoleKit
        PAM support:                no
        systemdsystemunitdir:       /usr/local/etc/dbus-1/system.d
        polkitd user:               tc

        Maintainer mode:            no
        Building api docs:          no
        Building man pages:         yes
        Building examples:          yes


NOTE: The file /usr/local/lib/polkit-1/polkit-agent-helper-1 must be owned
      by root and have mode 4755 (setuid root binary)

NOTE: The file ${exec_prefix}/bin/pkexec must be owned by root and
      have mode 4755 (setuid root binary)

NOTE: The directory ${prefix}/etc/polkit-1/rules.d must be owned
      by user 'tc' and have mode 700

NOTE: The directory ${datarootdir}/polkit-1/rules.d must be owned
      by user 'tc' and have mode 700
