head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.28 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.26 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.24 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.22 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.20 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.18 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.4.0.16 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.14 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.12 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.10 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.8 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.6 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.4 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.2 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.3.0.6 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.4 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.2 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.1.0.70 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.68 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.66 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.64 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.62 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.60 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.56 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.36 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.58 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.54 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.52 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.50 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.48 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.46 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.44 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.42 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.40 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.38 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.34 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.32 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.30 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.28 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.26 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.24 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.22 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.20 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.18 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.16 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.14 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.12 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.10 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.8 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.6 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.4 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.2 pkgsrc-2013Q2-base:1.1; locks; strict; comment @# @; 1.4 date 2022.12.22.13.40.10; author schmonz; state Exp; branches; next 1.3; commitid tnYLYyZkYMVJCy6E; 1.3 date 2022.01.20.13.53.13; author schmonz; state Exp; branches; next 1.2; commitid 6KdBRBdQaWzPunpD; 1.2 date 2021.12.31.10.04.24; author schmonz; state Exp; branches; next 1.1; commitid 187v0FSvtcXbSMmD; 1.1 date 2013.05.27.08.36.00; author sbd; state Exp; branches; next ; commitid q4rO7zq4Q7bzjfRw; desc @@ 1.4 log @Update to 1.18.18. From the changelog: 1.18.18: - Replace deprecated egrep with grep -E. Thanks, Sam James - Added support for Void Linux's xbps package manager. Thanks, Zev Weiss. 1.18.17: - Fix committing of files with spaces in name when perl is not available. Thanks, Henrik Riomar - Ignore udev's FHS violating large binary cache file /etc/udev/hwdb.bin - Avoid warning messages from grep about binary files when there are filenames in /etc that do not correspond to the current locale settings. Thanks, thm pkgsrc changes: - Adjust installed bash-completion location to match other packages - Use MAKE_DIRS instead of OWN_DIRS so unchanged files are uninstalled - Take MAINTAINER @ text @$NetBSD: patch-etckeeper,v 1.3 2022/01/20 13:53:13 schmonz Exp $ Add SUBST_VARS tokens. --- etckeeper.orig 2022-09-08 16:13:15.000000000 +0000 +++ etckeeper @@@@ -2,7 +2,7 @@@@ set -e if [ -z "$ETCKEEPER_CONF_DIR" ]; then - ETCKEEPER_CONF_DIR=/etc/etckeeper + ETCKEEPER_CONF_DIR=@@PKG_SYSCONFDIR@@ fi conf="$ETCKEEPER_CONF_DIR/etckeeper.conf" @@@@ -84,7 +84,7 @@@@ elif [ "$command" = "pre-apt" ]; then command=pre-install fi -if echo "$command" | LANG=C grep -E -q '[^-a-z_]'; then +if echo "$command" | LANG=C @@EGREP@@ -q '[^-a-z_]'; then echo "etckeeper: invalid command $command" >&2 exit 1 fi @@@@ -104,7 +104,7 @@@@ if [ "x$1" = "x-d" ]; then fi if [ -z "$ETCKEEPER_DIR" ]; then - ETCKEEPER_DIR=/etc + ETCKEEPER_DIR=@@PKG_SYSCONFBASEDIR@@ fi cd "$ETCKEEPER_DIR" export ETCKEEPER_DIR @@@@ -127,7 +127,7 @@@@ export VCS if command -v perl >/dev/null; then lsscripts() { - LANG=C perl -e ' + LANG=C @@PERL5@@ -e ' $dir=shift; print join "\n", grep { ! -d $_ && -x $_ } grep /^\Q$dir\/\E[-a-zA-Z0-9]+$/, @@@@ -142,7 +142,7 @@@@ else # fallback if perl isn't present for script in $ETCKEEPER_CONF_DIR/$command.d/*; do if [ ! -d "$script" -a -x "$script" ]; then - echo "$script" | grep -E -q "/[-a-zA-Z0-9]+$" + echo "$script" | @@EGREP@@ -q "/[-a-zA-Z0-9]+$" [ $? -eq 0 ] && "$script" "$@@" fi done @ 1.3 log @Fix a missing EGREP subst. While here, subst PERL5 too. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-etckeeper,v 1.2 2021/12/31 10:04:24 schmonz Exp $ d5 1 a5 1 --- etckeeper.orig 2021-01-02 15:33:42.000000000 +0000 d20 1 a20 1 -if echo "$command" | LANG=C egrep -q '[^-a-z_]'; then d47 1 a47 1 - echo "$script" | egrep -q "/[-a-zA-Z0-9]+$" @ 1.2 log @Use ${EGREP} instead of whatever "egrep" happens to be at runtime. Fixes "etckeeper init" on Solaris 11. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-etckeeper,v 1.1 2013/05/27 08:36:00 sbd Exp $ d5 1 a5 1 --- etckeeper.orig 2020-01-22 13:59:54.000000000 +0000 d34 9 @ 1.1 log @Add sysutils/etckeeper version 1.3 etckeeper is a collection of tools to let /etc be stored in a git, mercurial, darcs, or bzr repository. It hooks into apt (and other package managers including yum and pacman-g2) to automatically commit changes made to /etc during package upgrades. It tracks file metadata that revison control systems do not normally support, but that is important for /etc, such as the permissions of /etc/shadow. It's quite modular and configurable, while also being simple to use if you understand the basics of working with revision control. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- etckeeper.orig 2012-12-28 16:09:51.000000000 +0000 d16 10 a25 1 @@@@ -86,7 +86,7 @@@@ if [ "x$1" = "x-d" ]; then d34 9 @