mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
polkit: enable systemd support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
857d009717
commit
e7a568c14a
@ -40,7 +40,7 @@ PKG_CONFIGURE_OPTS_TARGET="--libexecdir=/usr/lib/polkit-1 \
|
|||||||
--disable-gtk-doc \
|
--disable-gtk-doc \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
--disable-introspection \
|
--disable-introspection \
|
||||||
--disable-systemd \
|
--enable-systemd \
|
||||||
--with-authfw=shadow \
|
--with-authfw=shadow \
|
||||||
--with-os-type=redhat \
|
--with-os-type=redhat \
|
||||||
--with-expat=$SYSROOT_PREFIX/usr"
|
--with-expat=$SYSROOT_PREFIX/usr"
|
||||||
@ -51,6 +51,8 @@ post_makeinstall_target() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
enable_service polkit.service
|
||||||
|
|
||||||
echo "chmod 4755 $INSTALL/usr/bin/pkexec" >> $FAKEROOT_SCRIPT
|
echo "chmod 4755 $INSTALL/usr/bin/pkexec" >> $FAKEROOT_SCRIPT
|
||||||
echo "chmod 4755 $INSTALL/usr/lib/polkit-1/polkit-agent-helper-1" >> $FAKEROOT_SCRIPT
|
echo "chmod 4755 $INSTALL/usr/lib/polkit-1/polkit-agent-helper-1" >> $FAKEROOT_SCRIPT
|
||||||
}
|
}
|
||||||
|
10
packages/security/polkit/system.d/polkit.service
Normal file
10
packages/security/polkit/system.d/polkit.service
Normal 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
|
Loading…
x
Reference in New Issue
Block a user