summaryrefslogtreecommitdiff
path: root/graphics/imv/files/patch-src_imv.c
diff options
context:
space:
mode:
authorembhd <embhd@posteo.de>2024-01-06 22:46:50 +0000
committerNuno Teixeira <eduardo@FreeBSD.org>2024-01-06 22:52:07 +0000
commit3ef68ca2451cad33eebe3619777fd7f96a709bad (patch)
tree632f92d1cb17f3db2a8a6a1c93a6c4eec990d2bd /graphics/imv/files/patch-src_imv.c
parentsecurity/i2pd: update to 2.50.2 (diff)
graphics/imv: Install imv_config as imv_config.sample
- Use @sample macro on installed config .sample While I'm here: - Fix hardcoded paths in imv program and manual(1) PR: 276157
Diffstat (limited to 'graphics/imv/files/patch-src_imv.c')
-rw-r--r--graphics/imv/files/patch-src_imv.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/imv/files/patch-src_imv.c b/graphics/imv/files/patch-src_imv.c
new file mode 100644
index 000000000000..5f30caad1c1a
--- /dev/null
+++ b/graphics/imv/files/patch-src_imv.c
@@ -0,0 +1,12 @@
+--- src/imv.c.orig 2024-01-06 21:47:38 UTC
++++ src/imv.c
+@@ -1425,8 +1425,7 @@ static char *get_config_path(void)
+ "$HOME/.config/imv/config",
+ "$HOME/.imv_config",
+ "$HOME/.imv/config",
+- "/usr/local/etc/imv_config",
+- "/etc/imv_config",
++ "@PREFIX@/etc/imv_config",
+ };
+
+ for (size_t i = 0; i < sizeof(config_paths) / sizeof(char*); ++i) {