polkit: enable systemd support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-07 02:19:19 +02:00
parent 857d009717
commit e7a568c14a
2 changed files with 13 additions and 1 deletions

View File

@ -40,7 +40,7 @@ PKG_CONFIGURE_OPTS_TARGET="--libexecdir=/usr/lib/polkit-1 \
--disable-gtk-doc \
--disable-nls \
--disable-introspection \
--disable-systemd \
--enable-systemd \
--with-authfw=shadow \
--with-os-type=redhat \
--with-expat=$SYSROOT_PREFIX/usr"
@ -51,6 +51,8 @@ post_makeinstall_target() {
}
post_install() {
enable_service polkit.service
echo "chmod 4755 $INSTALL/usr/bin/pkexec" >> $FAKEROOT_SCRIPT
echo "chmod 4755 $INSTALL/usr/lib/polkit-1/polkit-agent-helper-1" >> $FAKEROOT_SCRIPT
}

View File

@ -0,0 +1,10 @@
[Unit]
Description=PolicyKit daemon
After=syslog.target
[Service]
ExecStart=/usr/lib/polkit-1/polkitd --no-debug
KillMode=process
[Install]
WantedBy=multi-user.target