patch-base_g_py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. $OpenBSD: patch-base_g_py,v 1.12 2016/02/25 03:50:37 ajacoutot Exp $
  2. --- base/g.py.orig Mon Feb 8 10:42:52 2016
  3. +++ base/g.py Wed Feb 10 09:14:55 2016
  4. @@ -182,16 +182,16 @@ class ConfigBase(object):
  5. class SysConfig(ConfigBase):
  6. def __init__(self):
  7. - ConfigBase.__init__(self, '/etc/hp/hplip.conf')
  8. + ConfigBase.__init__(self, '${SYSCONFDIR}/hp/hplip.conf')
  9. class State(ConfigBase):
  10. def __init__(self):
  11. - if not os.path.exists('/var/lib/hp/') and os.geteuid() == 0:
  12. - os.makedirs('/var/lib/hp/')
  13. - cmd = 'chmod 755 /var/lib/hp/'
  14. + if not os.path.exists('/var/db/hp/') and os.geteuid() == 0:
  15. + os.makedirs('/var/db/hp/')
  16. + cmd = 'chmod 755 /var/db/hp/'
  17. os_utils.execute(cmd)
  18. - ConfigBase.__init__(self, '/var/lib/hp/hplip.state')
  19. + ConfigBase.__init__(self, '/var/db/hp/hplip.state')
  20. class UserConfig(ConfigBase):
  21. @@ -283,9 +283,9 @@ prop.max_message_len = 8192
  22. prop.max_message_read = 65536
  23. prop.read_timeout = 90
  24. -prop.ppd_search_path = '/usr/share;/usr/local/share;/usr/lib;/usr/local/lib;/usr/libexec;/opt;/usr/lib64'
  25. +prop.ppd_search_path = '/usr/share;${LOCALBASE}/share;${LOCALBASE}/share/foomatic/db/source/PPD/HP;/usr/lib;/usr/local/lib;/usr/libexec;/opt;/usr/lib64'
  26. prop.ppd_search_pattern = 'HP-*.ppd.*'
  27. -prop.ppd_download_url = 'http://www.linuxprinting.org/ppd-o-matic.cgi'
  28. +prop.ppd_download_url = 'http://www.openprinting.org/ppd-o-matic.php'
  29. prop.ppd_file_suffix = '-hpijs.ppd'
  30. # Build and install configurations