pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
litestream: Honor PKG_SYSCONFDIR
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Sun Mar 23 21:29:43 2025 +0100
Changeset: 424c87dc47dd25d456011e2cc4233fcbfb528920
Modified Files:
litestream/Makefile
litestream/distinfo
Added Files:
litestream/patches/patch-cmd_litestream_main__notwindows.go
Log Message:
litestream: Honor PKG_SYSCONFDIR
Do not use hardcoded /etc. Properly honor PKG_SYSCONFDIR.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=424c87dc47dd25d456011e2cc4233fcbfb528920
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
litestream/Makefile | 5 +++++
litestream/distinfo | 1 +
.../patches/patch-cmd_litestream_main__notwindows.go | 15 +++++++++++++++
3 files changed, 21 insertions(+)
diffs:
diff --git a/litestream/Makefile b/litestream/Makefile
index 08510dd484..22f46bfb53 100644
--- a/litestream/Makefile
+++ b/litestream/Makefile
@@ -14,6 +14,11 @@ GO_BUILD_PATTERN+= -ldflags ' \
-X main.Version=${GITHUB_TAG}'
GO_BUILD_PATTERN+= ./cmd/litestream
+SUBST_CLASSES+= paths
+SUBST_FILES.paths+= cmd/litestream/main_notwindows.go
+SUBST_STAGE.paths= post-configure
+SUBST_VARS.paths+= PKG_SYSCONFDIR
+
.include "go-modules.mk"
.include "../../lang/go/go-module.mk"
diff --git a/litestream/distinfo b/litestream/distinfo
index bdec78cd74..c9347e14a4 100644
--- a/litestream/distinfo
+++ b/litestream/distinfo
@@ -810,3 +810,4 @@ Size (honnef.co_go_tools_@v_v0.0.0-20190523083050-ea95bdfd59fc.mod) = 26 bytes
BLAKE2s (litestream-0.3.13.tar.gz) = 8c9872603ba542cce6786802829bfcb7ef8a4b61612a28f77f98c56decb3b2b8
SHA512 (litestream-0.3.13.tar.gz) = 5b85a2cf7ccb3975ceea6f06925aac275435510c588405372f386267ea0ee2297f909554dee1d5e7ac62be745d0a973fbcb1f01491a5b58f07f14d70e5ee0ded
Size (litestream-0.3.13.tar.gz) = 86613 bytes
+SHA1 (patch-cmd_litestream_main__notwindows.go) = 6daff913207a7a54e8a028b57011265e53b570aa
diff --git a/litestream/patches/patch-cmd_litestream_main__notwindows.go b/litestream/patches/patch-cmd_litestream_main__notwindows.go
new file mode 100644
index 0000000000..cc72dd7516
--- /dev/null
+++ b/litestream/patches/patch-cmd_litestream_main__notwindows.go
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Use PKG_SYSCONFDIR instead of hardcoding /etc.
+
+--- cmd/litestream/main_notwindows.go.orig 2025-03-23 19:27:04.461508413 +0000
++++ cmd/litestream/main_notwindows.go
+@@ -9,7 +9,7 @@ import (
+ "syscall"
+ )
+
+-const defaultConfigPath = "/etc/litestream.yml"
++const defaultConfigPath = "@PKG_SYSCONFDIR@/litestream.yml"
+
+ func isWindowsService() (bool, error) {
+ return false, nil
Home |
Main Index |
Thread Index |
Old Index