diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-21 00:41:58 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-21 00:41:58 +0800 |
commit | c48a371562e5b4f5632e220e03e032464487bda0 (patch) | |
tree | eab9dbbe77def22ab82a1c09c21fc6b1711b3d63 /print/system-config-printer/files/patch-system-config-printer.py | |
parent | fea7d4450331a3ae6932b3121050039abdcfef0e (diff) | |
download | marcuscom-ports-c48a371562e5b4f5632e220e03e032464487bda0.tar.gz marcuscom-ports-c48a371562e5b4f5632e220e03e032464487bda0.tar.zst marcuscom-ports-c48a371562e5b4f5632e220e03e032464487bda0.zip |
CUPS configuration Gtk+2.0 GUI
Configures a CUPS server. It uses the CUPS API (bound to Python with pycups)
to do this. The communication with the server is performed using IPP. As a
result, it is equally able to configure a remote CUPS server as a local one.
WWW: http://cyberelk.net/tim/software/system-config-printer/
(I think I got all the depends)
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10795 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'print/system-config-printer/files/patch-system-config-printer.py')
-rw-r--r-- | print/system-config-printer/files/patch-system-config-printer.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/print/system-config-printer/files/patch-system-config-printer.py b/print/system-config-printer/files/patch-system-config-printer.py new file mode 100644 index 000000000..b87180c9d --- /dev/null +++ b/print/system-config-printer/files/patch-system-config-printer.py @@ -0,0 +1,38 @@ +--- system-config-printer.py.orig 2008-03-20 11:58:46.000000000 -0400 ++++ system-config-printer.py 2008-03-20 12:01:44.000000000 -0400 +@@ -72,7 +72,7 @@ + import gettext + gettext.textdomain (domain) + gtk.glade.bindtextdomain (domain) +-pkgdata = '/usr/share/' + domain ++pkgdata = '%%PREFIX%%/share/' + domain + glade_file = pkgdata + '/' + domain + '.glade' + sys.path.append (pkgdata) + +@@ -2987,7 +2987,7 @@ + # Try to get make and model via SNMP + if host: + os.environ["HOST"] = host +- cmd = '/usr/lib/cups/backend/snmp "${HOST}" 2>/dev/null' ++ cmd = '%%LOCALBASE%%/libexec/cups/backend/snmp "${HOST}" 2>/dev/null' + debugprint (host + ": " + cmd) + p = os.popen(cmd, 'r') + output = p.read() +@@ -4055,7 +4055,7 @@ + os.environ["PPD"] = filename + # We want this to be in the current natural language, + # so we intentionally don't set LC_ALL=C here. +- p = os.popen ('/usr/bin/cupstestppd -rvv "$PPD"', 'r') ++ p = os.popen ('%%LOCALBASE%%/bin/cupstestppd -rvv "$PPD"', 'r') + output = p.readlines () + p.close () + err += reduce (lambda x, y: x + y, output) +@@ -4345,7 +4345,7 @@ + (pkgs, exes) = cupshelpers.missingPackagesAndExecutables (ppd) + if len (pkgs) > 0 or len (exes) > 0: + # We didn't find a necessary executable. Complain. +- install = "/usr/bin/system-install-packages" ++ install = "/usr/bin/true" + if len (pkgs) > 0 and os.access (install, os.X_OK): + pkg = pkgs[0] + install_text = ('<span weight="bold" size="larger">' + |