head 1.4; access; symbols pkgsrc-2021Q4:1.3.0.38 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.36 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.34 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.32 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.30 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.28 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.24 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.4 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.26 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.22 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.20 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.18 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.16 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.14 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.12 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.10 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.8 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.6 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.2 pkgsrc-2017Q2-base:1.3 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.01.04.15.23.52; author schmonz; state dead; branches; next 1.3; commitid OJIXcg4duv7NvknD; 1.3 date 2017.05.20.01.05.05; author schmonz; state Exp; branches; next 1.2; commitid GQnwMVF2Q4Fc54Sz; 1.2 date 2017.05.18.21.19.08; author schmonz; state Exp; branches; next 1.1; commitid wNT5WWuocBeGRURz; 1.1 date 2013.05.27.08.36.00; author sbd; state Exp; branches; next ; commitid q4rO7zq4Q7bzjfRw; desc @@ 1.4 log @Remove patch missed in previous. @ text @$NetBSD: patch-debian_cron.daily,v 1.3 2017/05/20 01:05:05 schmonz Exp $ Add SUBST_VARS tokens. --- debian/cron.daily.orig 2016-07-17 23:01:39.000000000 +0000 +++ debian/cron.daily @@@@ -1,8 +1,8 @@@@ #!/bin/sh set -e -if [ -e /etc/etckeeper/daily ] && [ -e /etc/etckeeper/etckeeper.conf ]; then - . /etc/etckeeper/etckeeper.conf +if [ -e @@PKG_SYSCONFDIR@@/daily ] && [ -e @@PKG_SYSCONFDIR@@/etckeeper.conf ]; then + . @@PKG_SYSCONFDIR@@/etckeeper.conf if [ "$AVOID_DAILY_AUTOCOMMITS" != "1" ]; then - /etc/etckeeper/daily + @@PKG_SYSCONFDIR@@/daily fi fi @ 1.3 log @Update to 1.18.5.1. From the changelog: * New upstream release: * merged Makefile patch * update standards version, no change * Remove pre-compiled .pyc for bzr plugin from Debian package, and add python:Depends to Depends so that dh_python2 will install maintainer script snippets. Unfortunately, this adds a completely unnecessary dependency on python, which etckeeper does not need in normal operation. * Make etckeeper commit store metadata changes. The pre-commit hook has always (and continues) to do that, but pre-commit is only run when there are changes to tommit. This makes metadata-only changes get committed. * Move systemd files to /lib/systemd; /usr/lib/systemd is not used on Debian. * Optimised find for special and hard linked files. Thanks, Rike-Benjamin Schuppner. * Adjust when Pacman 5 calls etckeeper hooks. Thanks, Tilman Blumenbach and Christian Hesse. * Only run Pacman hooks when files in /etc have changed. Thanks, Christian Hesse. * Added systemd timer that can run etckeeper 10 minutes after boot, and also daily. It's not enabled by default, partly because of overlap with the cron job. Thanks, Christian Hesse. * Added support for pacmatic, contributed by nicolaichuk. * bzr: make sure EMAIL is defined Thanks, Serge E. Hallyn * Fix Makefile version patterns to ignore non-native version number (Antoine Beaupré) * Support ~/.config/git/config when determining the author name and email. Thanks, Richard Savio * Added support for Arch's pacman package manager version 5. Thanks, Tilman Blumenbach. * Set HOME if it's not set, as is the case when using ubuntu's update-manager. * Move bash completion out of etc and into usr. * Prepare upload to Debian unstable * Fix Makefile version patterns to ignore non-native version number * Fix lintian warnings: * remove .pyc files on build * install bash completions in standard location * ignore missing debian/config file, we ask only on purge on purpose * ignore full path for /usr/bin/etckeeper, we use it to stash it for later * Update to standards 3.9.6, no change * Remove obsolete XS-Python-Version field * Run debconf-updatepo, outdating a bunch of translations * Use getent utility instead of perl. (Elan Ruusamäe) * Initial FreeBSD support with pkgng plugin. (William Johansson) * Fix README.md symlink in package (Sebastian Schmidt, Antoine Beaupré, closes: #791566) * Fix typo of GIT_COMMITTER_EMAIL. * Update git URL in control file. * Send yum pre-commit output to /dev/null Thanks, Andrew Colin Kissa * Set LANG=C internally when doing some operations that have been reported to fail in other locales. * Fix name of DNF plugin. * Add --version Thanks Andreas Wansner. * New website, http://etckeeper.branchable.com/ * Add build-depends on dh-python. * Added support for Fedora's DNF highlevel package manager. Thanks, Peter Listiak and Petr Spacek. * Add architecture info to dpkg list-installed. Closes: #768145 * Orphaned the Debian package. @ text @d1 1 a1 1 $NetBSD: patch-debian_cron.daily,v 1.2 2017/05/18 21:19:08 schmonz Exp $ @ 1.2 log @Update to 1.15. From the changelog: * Recommend cron-daemon, rather than cron, as etckeeper only needs cron.daily functionality. Closes: #762721 * Handle failure to commit in post-install, pre-install by showing a warning, rather than propigating the error to apt. This avoids breaking the apt run when eg, git is misconfigured and cannot commit. pre-install already did this when it was able to use debconf to display a message, but now debconf is not used, and it always behaves this way. Closes: #760011 * Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: #753903 * Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. * update-ignore, uninit: Fix parsing of ignore files containing '\' * Portability fixes. Thanks, Harald Dunkel. * Add support for pushing to multiple remote repositories. Thanks, Rouben. * Fix handling of git ignores like dir/* Thanks, Pim van den Berg * Fix too broad matching of .gitignored files. Closes: #732339 * Remove lvm/backup from default ignores, because lvm documentation recommends backing that up, for use by vgcfgrestore. * Fix exporting of some git variables. Closes: #728583 * Fix git update-ignore syntax. Closes: #721873 * Avoid listing .gitignored files in .etckeeper file. Closes: #607665 Thanks, Zdenek Crha * Fix hilarious typo hardcoding my name. Closes: #718425 * Guard git config calls. Closes: #717957 * Quote user and group names, in case one contains a space. * Added support for the pacman package manager. (Thanks, Tiago Stürmer Daitx) * Use user.name and user.email from the .gitconfig file belonging to the user who sued or sudoed to root, in preference to making up values for that user. * cron.daily: Fix typo in stale lockfile handling code. Closes: #717908 * Deal with unix^wlinux portability nonsense. @ text @d1 1 a1 1 $NetBSD: patch-debian_cron.daily,v 1.1 2013/05/27 08:36:00 sbd Exp $ d5 1 a5 1 --- debian/cron.daily.orig 2014-07-02 19:17:18.000000000 +0000 d7 1 a7 1 @@@@ -1,10 +1,10 @@@@ d10 1 a10 1 -if [ -x /usr/bin/etckeeper ] && [ -e /etc/etckeeper/etckeeper.conf ]; then d12 1 a12 1 +if [ -x @@PREFIX@@/bin/etckeeper ] && [ -e @@PKG_SYSCONFDIR@@/etckeeper.conf ]; then d15 4 a18 6 # 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 @ 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 --- debian/cron.daily.orig 2011-12-05 15:41:29.000000000 +0000 d18 1 a18 1 if [ -e "$pe" ] && [ -n "$(find "$lockfile" -mtime +1)" ]; then @