openbsd-ports/print/hplip/patches/patch-base_pkit_py
ajacoutot b7e6f6dba1 Update to hplip-3.13.2.
Some parts of the tools are still somewhat WIP; however, thanks to a
donation from linuxfund.org this has been successfully tested on a HP
OfficeJet 7500 e910, using STP discovery over WiFi with automatic PPD
generation. Scanning, printing, cartridge information... working.
2013-03-08 06:51:46 +00:00

22 lines
805 B
Plaintext

$OpenBSD: patch-base_pkit_py,v 1.8 2013/03/08 06:51:46 ajacoutot Exp $
--- base/pkit.py.orig Wed Feb 13 17:38:51 2013
+++ base/pkit.py Fri Feb 22 15:05:18 2013
@@ -363,7 +363,7 @@ def run_plugin_command(required=True, plugin_reason=PL
if utils.which("hp-plugin"):
p_path="hp-plugin"
else:
- p_path="python ./plugin.py"
+ p_path="${MODPY_BIN} ./plugin.py"
if 'gksu' in su_sudo:
cmd = passwordObj.getAuthCmd() % ("%s -u %s --reason %s" % (p_path, req, plugin_reason))
@@ -380,7 +380,7 @@ def run_plugin_command(required=True, plugin_reason=PL
def policykit_version():
- if os.path.isdir("/usr/share/polkit-1"):
+ if os.path.isdir("${LOCALBASE}/share/polkit-1"):
return 1
elif os.path.isdir("/usr/share/PolicyKit"):
return 0