$NetBSD: patch-daily,v 1.1 2020/09/17 08:50:01 schmonz Exp $ Add SUBST_VARS tokens. --- daily.orig 2020-01-22 13:59:54.000000000 +0000 +++ daily @@ -1,9 +1,9 @@ #!/bin/sh # Script that can be run daily to autocommit /etc changes. set -e -if [ -x /usr/bin/etckeeper ] && [ -e /etc/etckeeper/etckeeper.conf ]; then +if [ -x @PREFIX@/bin/etckeeper ] && [ -e @PKG_SYSCONFDIR@/etckeeper.conf ]; then # avoid autocommit if an install run is in progress - lockfile=/var/cache/etckeeper/packagelist.pre-install + lockfile=@VARBASE@/cache/etckeeper/packagelist.pre-install if [ -e "$lockfile" ] && [ -n "$(find "$lockfile" -mtime +1)" ]; then rm -f "$lockfile" # stale fi