aports/main/logcheck/run-lock.patch
Sertonix 0bf585114f main/logcheck: update path of lock dir
Upstream has moved the default lock directory to /run/lock
([6da4b04f8b5]) but forgot to change the Makefile so patching it
([logcheck!21]).

Also removing 2 'mkdir -p' lines since 'make install' already creates
the directories.

Ref []
Fixes []

[6da4b04f8b5]: 6da4b04f8b
[logcheck!21]: https://salsa.debian.org/debian/logcheck/-/merge_requests/21
[]: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15930
[]: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16050
2024-04-23 15:25:58 +00:00

16 lines
No EOL
507 B
Diff

logcheck uses /run/lock by default so fix the path for systems without
/var/lock -> /run/lock symlink
diff --git a/Makefile b/Makefile
index fded3699..2a992473 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ install:
install -d $(DESTDIR)/var/lib/logcheck
install -d $(DESTDIR)/$(SBINDIR)
install -d $(DESTDIR)/$(BINDIR)
- install -d $(DESTDIR)/var/lock/logcheck
+ install -d $(DESTDIR)/run/lock/logcheck
install -d $(DESTDIR)/$(SHAREDIR)
# Create directories for rules logcheck-database