summaryrefslogtreecommitdiff
path: root/print/system-config-printer/files/patch-newprinter.py
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2013-09-12 19:45:49 +0000
committerKoop Mast <kwm@FreeBSD.org>2013-09-12 19:45:49 +0000
commit49f2f3f3fa42d4462b6c76ca148638a193954913 (patch)
tree74f7d04b27ddc2f93d7b9d94f80ef7a5e80a112a /print/system-config-printer/files/patch-newprinter.py
parent- Update to 0.12.2 (diff)
Part two, of the update to 1.4.2. Forgotten files edition.
Notes
Notes: svn path=/head/; revision=327106
Diffstat (limited to 'print/system-config-printer/files/patch-newprinter.py')
-rw-r--r--print/system-config-printer/files/patch-newprinter.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/print/system-config-printer/files/patch-newprinter.py b/print/system-config-printer/files/patch-newprinter.py
new file mode 100644
index 000000000000..2828813521c0
--- /dev/null
+++ b/print/system-config-printer/files/patch-newprinter.py
@@ -0,0 +1,29 @@
+--- newprinter.py.orig 2013-08-29 15:46:51.000000000 +0200
++++ newprinter.py 2013-08-29 15:48:44.000000000 +0200
+@@ -1038,7 +1038,7 @@
+ # Does the backend need to be installed?
+ if ((self._host == 'localhost' or
+ self._host[0] == '/') and
+- not os.access ("/usr/lib/cups/backend/smb", os.F_OK)):
++ not os.access ("%%PREFIX%%/libexec/cups/backend/smb", os.F_OK)):
+ p = subprocess.Popen (["gpk-install-package-name",
+ "samba-client"],
+ close_fds=True,
+@@ -1844,7 +1844,7 @@
+ host = device.uri[s:s+e]
+ # Try to get make and model via SNMP
+ if host:
+- args = ["/usr/lib/cups/backend/snmp", host]
++ args = ["%%PREFIX%%/libexec/cups/backend/snmp", host]
+ debugprint (host + ": " + repr(args))
+ stdout = None
+ try:
+@@ -3799,7 +3799,7 @@
+ try:
+ # We want this to be in the current natural language,
+ # so we intentionally don't set LC_ALL=C here.
+- p = subprocess.Popen (['/usr/bin/cupstestppd',
++ p = subprocess.Popen (['%%PREFIX%%/bin/cupstestppd',
+ '-rvv', filename],
+ close_fds=True,
+ stdin=file("/dev/null"),