From e7a568c14a42e660cb2c05cead1f2dca9481fdc2 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 7 Aug 2013 02:19:19 +0200 Subject: [PATCH] polkit: enable systemd support Signed-off-by: Stephan Raue --- packages/security/polkit/package.mk | 4 +++- packages/security/polkit/system.d/polkit.service | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 packages/security/polkit/system.d/polkit.service diff --git a/packages/security/polkit/package.mk b/packages/security/polkit/package.mk index 48b4a69c60..6a3a39d854 100644 --- a/packages/security/polkit/package.mk +++ b/packages/security/polkit/package.mk @@ -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 } diff --git a/packages/security/polkit/system.d/polkit.service b/packages/security/polkit/system.d/polkit.service new file mode 100644 index 0000000000..e78e132151 --- /dev/null +++ b/packages/security/polkit/system.d/polkit.service @@ -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