Index: installer/pluginhandler.py
--- installer/pluginhandler.py.orig
+++ installer/pluginhandler.py
@@ -35,7 +35,7 @@ def get_checksum(s):
     return hashlib.sha256(s).hexdigest()
 
 
-PLUGIN_STATE_FILE = '/var/lib/hp/hplip.state'
+PLUGIN_STATE_FILE = '/var/db/hp/hplip.state'
 PLUGIN_FALLBACK_LOCATION = 'https://developers.hp.com/sites/default/files/'
 
 
@@ -90,11 +90,11 @@ class PluginHandle(object):
             ARCH = 'x86_%d' % BITNESS
 
         if BITNESS == 64:
-            SANELIBDIR = '/usr/lib64/sane'
-            LIBDIR = '/usr/lib64'
+            SANELIBDIR = '${LOCALBASE}/lib/sane'
+            LIBDIR = '${LOCALBASE}/lib'
         else:
-            SANELIBDIR = '/usr/lib/sane'
-            LIBDIR = '/usr/lib'
+            SANELIBDIR = '${LOCALBASE}/lib/sane'
+            LIBDIR = '${LOCALBASE}/lib'
 
         copies = []
 
@@ -232,8 +232,8 @@ class PluginHandle(object):
     def __setPluginConfFile(self):
         home = sys_conf.get('dirs', 'home')
 
-        if os.path.exists('/etc/hp/plugin.conf'):
-            self.__plugin_conf_file = "file:///etc/hp/plugin.conf"
+        if os.path.exists('${SYSCONFDIR}/hp/plugin.conf'):
+            self.__plugin_conf_file = "file://${SYSCONFDIR}/hp/plugin.conf"
 
         elif os.path.exists(os.path.join(home, 'plugin.conf')):
             self.__plugin_conf_file = "file://" + os.path.join(home, 'plugin.conf')
