openbsd-ports/print/hplip/patches/patch-base_pkit_py
2010-05-30 06:29:07 +00:00

24 lines
908 B
Plaintext

$OpenBSD: patch-base_pkit_py,v 1.3 2010/05/30 06:29:07 ajacoutot Exp $
--- base/pkit.py.orig Thu May 13 01:45:11 2010
+++ base/pkit.py Sun May 30 08:13:26 2010
@@ -346,8 +346,8 @@ def copyPluginFiles(src_dir):
SANELIBDIR = '/usr/lib64/sane'
LIBDIR = '/usr/lib64'
else:
- SANELIBDIR = '/usr/lib/sane'
- LIBDIR = '/usr/lib'
+ SANELIBDIR = '${LOCALBASE}/lib/sane'
+ LIBDIR = '${LOCALBASE}/lib'
copies = []
@@ -473,7 +473,7 @@ def run_plugin_command(required=True, plugin_reason=PL
if utils.which("hp-plugin"):
cmd = su_sudo % ("hp-plugin -u %s --reason %s" % (req, plugin_reason))
else:
- cmd = su_sudo % ("python ./plugin.py -u %s --reason %s" % (req, plugin_reason))
+ cmd = su_sudo % ("${MODPY_BIN} ./plugin.py -u %s --reason %s" % (req, plugin_reason))
log.debug("%s" % cmd)
if password_f is not None: