$OpenBSD: patch-src_up-history_c,v 1.1 2011/06/17 15:08:36 landry Exp $
Set var/db/upower as dir for history files
--- src/up-history.c.orig	Mon Jun 13 16:28:21 2011
+++ src/up-history.c	Mon Jun 13 16:28:29 2011
@@ -888,7 +888,7 @@ up_history_init (UpHistory *history)
 	history->priv->data_time_empty = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
 	history->priv->save_id = 0;
 	history->priv->max_data_age = UP_HISTORY_DEFAULT_MAX_DATA_AGE;
-	history->priv->dir = g_build_filename (PACKAGE_LOCALSTATE_DIR, "lib", "upower", NULL);
+	history->priv->dir = g_build_filename ("/var", "db", "upower", NULL);
 }
 
 /**
