$OpenBSD: patch-base_g_py,v 1.10 2014/06/17 08:51:18 ajacoutot Exp $
--- base/g.py.orig	Tue Jun  3 08:33:10 2014
+++ base/g.py	Tue Jun 17 09:32:14 2014
@@ -145,7 +145,7 @@ class ConfigBase(object):
 
 class SysConfig(ConfigBase):
     def __init__(self):
-        ConfigBase.__init__(self, '/etc/hp/hplip.conf')
+        ConfigBase.__init__(self, '${SYSCONFDIR}/hp/hplip.conf')
 
 
 class State(ConfigBase):
@@ -154,7 +154,7 @@ class State(ConfigBase):
             os.makedirs('/var/lib/hp/')
             cmd = 'chmod 755 /var/lib/hp/'
             os_utils.execute(cmd)
-        ConfigBase.__init__(self, '/var/lib/hp/hplip.state')
+        ConfigBase.__init__(self, '/var/lib/hplip.state')
 
 
 class UserConfig(ConfigBase):
@@ -246,9 +246,9 @@ prop.max_message_len = 8192
 prop.max_message_read = 65536
 prop.read_timeout = 90
 
-prop.ppd_search_path = '/usr/share;/usr/local/share;/usr/lib;/usr/local/lib;/usr/libexec;/opt;/usr/lib64'
+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'
 prop.ppd_search_pattern = 'HP-*.ppd.*'
-prop.ppd_download_url = 'http://www.linuxprinting.org/ppd-o-matic.cgi'
+prop.ppd_download_url = 'http://www.openprinting.org/ppd-o-matic.php'
 prop.ppd_file_suffix = '-hpijs.ppd'
 
 # Build and install configurations
