Add luakit-git patches to prefer cache_dir instead of data_dir - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 0de2651894b4ce547b3fa79b79e7dfd15c6c433b
(DIR) parent d9b0d181dc25a1c674fb601508dc80366411c760
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Fri, 5 Oct 2018 00:05:01
Add luakit-git patches to prefer cache_dir instead of data_dir
(Not for all the places but for most of them where changes should
be temporary IMHO.)
Diffstat:
wip/luakit-git/patch-lib_cmdhist.lua | 15 +++++++++++++++
wip/luakit-git/patch-lib_error__page.lua | 15 +++++++++++++++
wip/luakit-git/patch-lib_history.lua | 15 +++++++++++++++
wip/luakit-git/patch-lib_modes.lua | 15 +++++++++++++++
wip/luakit-git/patch-lib_quickmarks.lua | 15 +++++++++++++++
5 files changed, 75 insertions(+), 0 deletions(-)
---
diff -r d9b0d181dc25 -r 0de2651894b4 wip/luakit-git/patch-lib_cmdhist.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wip/luakit-git/patch-lib_cmdhist.lua Fri Oct 05 00:05:01 2018 +0200
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Prefer cache_dir instead of data_dir.
+
+--- lib/cmdhist.lua.orig 2018-09-22 23:42:41.000000000 +0000
++++ lib/cmdhist.lua
+@@ -75,7 +75,7 @@ window.add_signal("init", function (w)
+ local h = mode.history
+ -- Load history
+ if not h.items then
+- local f = io.open(luakit.data_dir .. "/command-history")
++ local f = io.open(luakit.cache_dir .. "/command-history")
+ if f then
+ h.items = lousy.pickle.unpickle(f:read("*a"))[mode.name]
+ f:close()
diff -r d9b0d181dc25 -r 0de2651894b4 wip/luakit-git/patch-lib_error__page.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wip/luakit-git/patch-lib_error__page.lua Fri Oct 05 00:05:01 2018 +0200
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Prefer cache_dir instead of data_dir.
+
+--- lib/error_page.lua.orig 2018-09-22 23:42:41.000000000 +0000
++++ lib/error_page.lua
+@@ -20,7 +20,7 @@ local error_page_wm = require_web_module
+ --- Path to the whitelist of allowed invalid certificates.
+ -- @type string
+ -- @readwrite
+-_M.cert_db_path = luakit.data_dir .. "/allowed_certificates.db"
++_M.cert_db_path = luakit.cache_dir .. "/allowed_certificates.db"
+
+ --- Connect to and initialize the bookmarks database.
+ local function init_cert_db()
diff -r d9b0d181dc25 -r 0de2651894b4 wip/luakit-git/patch-lib_history.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wip/luakit-git/patch-lib_history.lua Fri Oct 05 00:05:01 2018 +0200
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Prefer cache_dir instead of data_dir.
+
+--- lib/history.lua.orig 2018-09-22 23:42:41.000000000 +0000
++++ lib/history.lua
+@@ -16,7 +16,7 @@ local _M = {}
+
+ --- Path to history database.
+ -- @readwrite
+-_M.db_path = luakit.data_dir .. "/history.db"
++_M.db_path = luakit.cache_dir .. "/history.db"
+
+ local query_find_last
+ local query_insert
diff -r d9b0d181dc25 -r 0de2651894b4 wip/luakit-git/patch-lib_modes.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wip/luakit-git/patch-lib_modes.lua Fri Oct 05 00:05:01 2018 +0200
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Prefer cache_dir instead of data_dir.
+
+--- lib/modes.lua.orig 2018-09-22 23:42:41.000000000 +0000
++++ lib/modes.lua
+@@ -116,7 +116,7 @@ window.add_signal("init", function (w)
+ t[k] = v.history.items
+ end
+ end
+- local f = io.open(luakit.data_dir .. "/command-history", "w")
++ local f = io.open(luakit.cache_dir .. "/command-history", "w")
+ if f then
+ f:write(lousy.pickle.pickle(t))
+ f:close()
diff -r d9b0d181dc25 -r 0de2651894b4 wip/luakit-git/patch-lib_quickmarks.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wip/luakit-git/patch-lib_quickmarks.lua Fri Oct 05 00:05:01 2018 +0200
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Prefer cache_dir instead of data_dir.
+
+--- lib/quickmarks.lua.orig 2018-09-22 23:42:41.000000000 +0000
++++ lib/quickmarks.lua
+@@ -45,7 +45,7 @@ local menu_binds = binds.menu_binds
+ local _M = {}
+
+ local qmarks
+-local quickmarks_file = luakit.data_dir .. '/quickmarks'
++local quickmarks_file = luakit.cache_dir .. '/quickmarks'
+
+ local function check_token(token)
+ assert(string.match(tostring(token), "^(%w)$"), "invalid token: " .. tostring(token))