Commit 3a89fd7a authored by Pavel Timofeev's avatar Pavel Timofeev Committed by Robert Clausecker
Browse files

x11/lightdm-gtk-greeter-settings: fix path to the binary in polkit action policy

PR:		281844
parent 42c44169
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
PORTNAME=	lightdm-gtk-greeter-settings
PORTVERSION=	1.2.2
PORTREVISION=	1
PORTREVISION=	2
CATEGORIES=	x11
MASTER_SITES=	https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/

@@ -28,6 +28,7 @@ post-patch:
		-e "s,%%LOCALBASE%%,${LOCALBASE},g" \
		${WRKSRC}/bin/lightdm-gtk-greeter-settings-pkexec \
		${WRKSRC}/lightdm_gtk_greeter_settings/helpers.py \
		${WRKSRC}/com.ubuntu.pkexec.lightdm-gtk-greeter-settings.policy.in \
		${WRKSRC}/setup.py
	@${RM} -v ${WRKSRC}/bin/lightdm-gtk-greeter-settings-pkexec.bak
	@${RM} -v ${WRKSRC}/bin/lightdm-gtk-greeter-settings-pkexec.orig
+11 −0
Original line number Diff line number Diff line
--- com.ubuntu.pkexec.lightdm-gtk-greeter-settings.policy.in.orig	2017-09-19 09:52:09 UTC
+++ com.ubuntu.pkexec.lightdm-gtk-greeter-settings.policy.in
@@ -12,7 +12,7 @@
       <allow_inactive>auth_admin</allow_inactive>
       <allow_active>auth_admin</allow_active>
     </defaults>
-    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/lightdm-gtk-greeter-settings</annotate>
+    <annotate key="org.freedesktop.policykit.exec.path">%%PREFIX%%/bin/lightdm-gtk-greeter-settings</annotate>
     <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
   </action>