a65ca3a9f2
Fix SHARED_LIBS. sane-hpaio is a loadable module. Move some PPD files from -hpijs to -hpcups.
81 lines
3.3 KiB
Plaintext
81 lines
3.3 KiB
Plaintext
$OpenBSD: patch-check_py,v 1.3 2009/08/20 08:07:48 ajacoutot Exp $
|
|
--- check.py.orig Tue Aug 4 23:37:39 2009
|
|
+++ check.py Thu Aug 20 09:24:10 2009
|
|
@@ -344,7 +344,7 @@ try:
|
|
num_errors += 1
|
|
|
|
if cups_ok:
|
|
- cups_conf = '/etc/cups/cupsd.conf'
|
|
+ cups_conf = '${SYSCONFDIR}/cups/cupsd.conf'
|
|
|
|
try:
|
|
f = file(cups_conf, 'r')
|
|
@@ -375,11 +375,6 @@ try:
|
|
|
|
log.info(log.bold("Checking for dbus/python-dbus..."))
|
|
|
|
- if dcheck.check_ps(['dbus-daemon']):
|
|
- log.info("dbus daemon is running.")
|
|
- else:
|
|
- log.warn("dbus daemon is not running.")
|
|
-
|
|
try:
|
|
import dbus
|
|
try:
|
|
@@ -482,18 +477,18 @@ try:
|
|
log.info("HPLIP %s currently installed in '%s'." % (v, home))
|
|
|
|
log.info()
|
|
- log.info(log.bold("Current contents of '/etc/hp/hplip.conf' file:"))
|
|
+ log.info(log.bold("Current contents of '${SYSCONFDIR}/hp/hplip.conf' file:"))
|
|
try:
|
|
- output = file('/etc/hp/hplip.conf', 'r').read()
|
|
+ output = file('${SYSCONFDIR}/hp/hplip.conf', 'r').read()
|
|
except (IOError, OSError), e:
|
|
log.error("Could not access file: %s" % e.strerror)
|
|
else:
|
|
log.info(output)
|
|
|
|
log.info()
|
|
- log.info(log.bold("Current contents of '/var/lib/hp/hplip.state' file:"))
|
|
+ log.info(log.bold("Current contents of '/var/db/hp/hplip.state' file:"))
|
|
try:
|
|
- output = file(os.path.expanduser('/var/lib/hp/hplip.state'), 'r').read()
|
|
+ output = file(os.path.expanduser('/var/db/hp/hplip.state'), 'r').read()
|
|
except (IOError, OSError), e:
|
|
log.error("Could not access file: %s" % e.strerror)
|
|
else:
|
|
@@ -607,7 +602,7 @@ try:
|
|
#log.info("Installed in HPLIP?: %s" % x)
|
|
log.info("Device URI: %s" % device_uri)
|
|
|
|
- ppd = os.path.join('/etc/cups/ppd', printer_name + '.ppd')
|
|
+ ppd = os.path.join('${SYSCONFDIR}/cups/ppd', printer_name + '.ppd')
|
|
|
|
if os.path.exists(ppd):
|
|
log.info("PPD: %s" % ppd)
|
|
@@ -709,11 +704,11 @@ try:
|
|
|
|
if scanning_enabled:
|
|
tui.header("SANE CONFIGURATION")
|
|
- log.info(log.bold("'hpaio' in '/etc/sane.d/dll.conf'..."))
|
|
+ log.info(log.bold("'hpaio' in '${SYSCONFDIR}/sane.d/dll.conf'..."))
|
|
try:
|
|
- f = file('/etc/sane.d/dll.conf', 'r')
|
|
+ f = file('${SYSCONFDIR}/sane.d/dll.conf', 'r')
|
|
except IOError:
|
|
- log.error("'/etc/sane.d/dll.conf' not found. Is SANE installed?")
|
|
+ log.error("'${SYSCONFDIR}/sane.d/dll.conf' not found. Is SANE installed?")
|
|
num_errors += 1
|
|
else:
|
|
found = False
|
|
@@ -725,7 +720,7 @@ try:
|
|
log.info("OK, found. SANE backend 'hpaio' is properly set up.")
|
|
else:
|
|
num_errors += 1
|
|
- log.error("Not found. SANE backend 'hpaio' NOT properly setup (needs to be added to /etc/sane.d/dll.conf).")
|
|
+ log.error("Not found. SANE backend 'hpaio' NOT properly setup (needs to be added to ${SYSCONFDIR}/sane.d/dll.conf).")
|
|
|
|
log.info()
|
|
log.info(log.bold("Checking output of 'scanimage -L'..."))
|