openbsd-ports/print/hplip/patches/patch-fax_backend_hpfax_py
ajacoutot f8bddf7e5a Major update to hplip-3.9.6b.
Refer to the project homepage for the complete changelog.

This port now comes into 5 subpackages (ala Fedora):
- main: complete hplip functionnalities
- hpijs: deprecated hpijs printer driver
- hpcups: new-gen printer driver
- libs: libraries and helpers used by other subpackages
- gui: graphical tools (systray applet...)

It seems this version works a least as good as the previous one we had
in-tree. I could use some feedbacks for the fancier stuffs that hplip
provides (besides regular printing using hpcups and/or hpijs), like
printer communication, ink levels... because I have no hp equipment, but
at least, there was no regression reported.
(some features are Linux-only and are expected not to work)

Tested by several, thanks!
2009-07-13 08:14:28 +00:00

22 lines
725 B
Plaintext

$OpenBSD: patch-fax_backend_hpfax_py,v 1.2 2009/07/13 08:14:28 ajacoutot Exp $
--- fax/backend/hpfax.py.orig Thu Jul 2 14:13:47 2009
+++ fax/backend/hpfax.py Thu Jul 2 14:14:02 2009
@@ -46,7 +46,7 @@ PIPE_BUF = 4096
job_id = 0
pid = os.getpid()
-config_file = '/etc/hp/hplip.conf'
+config_file = '${SYSCONFDIR}/hp/hplip.conf'
home_dir = ''
@@ -65,7 +65,7 @@ if os.path.exists(config_file):
bug("Error setting home directory: home= under [dirs] not found.")
sys.exit(1)
else:
- bug("Error setting home directory: /etc/hp/hplip.conf not found")
+ bug("Error setting home directory: ${SYSCONFDIR}/hp/hplip.conf not found")
sys.exit(1)
if not home_dir or not os.path.exists(home_dir):