mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
polkit: enable systemd support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user