From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/etckeeper/
Date: Sun, 17 Aug 2025 10:17:54 +0000 (UTC) [thread overview]
Message-ID: <1755425844.18d7eaf76b3c071f183b0d9fc0bdca51396b71dd.sam@gentoo> (raw)
commit: 18d7eaf76b3c071f183b0d9fc0bdca51396b71dd
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 17 10:16:53 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Aug 17 10:17:24 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18d7eaf7
sys-apps/etckeeper: add 1.18.23
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/etckeeper/Manifest | 1 +
sys-apps/etckeeper/etckeeper-1.18.23.ebuild | 100 ++++++++++++++++++++++++++++
2 files changed, 101 insertions(+)
diff --git a/sys-apps/etckeeper/Manifest b/sys-apps/etckeeper/Manifest
index c78af7c4a022..b7b0b8226c31 100644
--- a/sys-apps/etckeeper/Manifest
+++ b/sys-apps/etckeeper/Manifest
@@ -1 +1,2 @@
DIST etckeeper-1.18.22.tar.gz 119999 BLAKE2B 579e94ef6ab6f198c162be78148ea2032149e558d73bfc5d040cb9288f33d6b5c48b0073c5578fae4050b647943cbb6bb5b67cce87f9687531fa84a21c287ff9 SHA512 e35ab90862c1f4426c17aec4d9ffe5975c652b290645ac333e9f27fcc157b9eba5e0efe73553a400464102c939f085f4e08f4b04564a015ad6941b1d50dbbe76
+DIST etckeeper-1.18.23.tar.gz 126006 BLAKE2B ebf58cb0521d378c7f39d6da0b46000ecec2bda5e0d011bc2999d0a41ce27cbc7e493d8a9dcdaf9a7380f4c04bd04addfcf4596dcd7cf9cb24b58aca78bb1360 SHA512 d82585c4c6b8958b281d8361816ae5439a00e1e043e9083903430988c265f2e6cb990e172da66ae3aca0280614ddd284b07dc6d2f5a68661f843afd8d62f0ce7
diff --git a/sys-apps/etckeeper/etckeeper-1.18.23.ebuild b/sys-apps/etckeeper/etckeeper-1.18.23.ebuild
new file mode 100644
index 000000000000..a1c6dee88397
--- /dev/null
+++ b/sys-apps/etckeeper/etckeeper-1.18.23.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 prefix systemd tmpfiles
+
+DESCRIPTION="A collection of tools to let /etc be stored in a repository"
+HOMEPAGE="https://etckeeper.branchable.com/"
+SRC_URI="https://git.joeyh.name/index.cgi/etckeeper.git/snapshot/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="cron test"
+
+BDEPEND="test? (
+ dev-util/bats
+ dev-vcs/git
+)"
+
+RDEPEND="app-portage/portage-utils
+ cron? ( virtual/cron )
+ || (
+ dev-vcs/git
+ dev-vcs/mercurial
+ dev-vcs/darcs
+ )
+"
+
+RESTRICT="!test? ( test )"
+
+src_prepare() {
+ default
+ hprefixify *.d/* etckeeper
+ local systemdunitdir="$(systemd_get_systemunitdir)"
+ systemdunitdir="${systemdunitdir#${EPREFIX}}"
+ sed -i \
+ -e s'@zsh/vendor-completions@zsh/site-functions@' \
+ -e s"@/lib/systemd/system@"${systemdunitdir}"@" \
+ -e '/etckeeper-bzr\/__init__\.py/d' \
+ Makefile || die
+
+ # pre-configure for portage.
+ sed -i \
+ -e 's/^HIGHLEVEL_PACKAGE_MANAGER=apt/HIGHLEVEL_PACKAGE_MANAGER=emerge/' \
+ -e 's/^LOWLEVEL_PACKAGE_MANAGER=dpkg/LOWLEVEL_PACKAGE_MANAGER=qlist/' \
+ etckeeper.conf || die
+
+ rm -v init.d/60darcs-deleted-symlinks || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+
+ doenvd "$(prefixify_ro "${FILESDIR}"/99${PN})"
+
+ newbashcomp bash_completion ${PN}
+ dodoc doc/README.mdwn
+ newdoc "${FILESDIR}"/bashrc-r1 bashrc.example
+
+ rm -rv "${ED}/var/cache" || die
+ newtmpfiles "${FILESDIR}/${PN}".tmpfilesd "${PN}".conf
+
+ if use cron ; then
+ exeinto /etc/cron.daily
+ newexe - etckeeper <<'_EOF_'
+#!/bin/sh
+set -e
+if [ -e /etc/etckeeper/daily ] && [ -e /etc/etckeeper/etckeeper.conf ]; then
+ . /etc/etckeeper/etckeeper.conf
+ if [ "$AVOID_DAILY_AUTOCOMMITS" != "1" ]; then
+ /etc/etckeeper/daily
+ fi
+fi
+_EOF_
+ fi
+
+ local conf_update_dir="/etc/portage/conf-update.d"
+ insinto "${conf_update_dir}"
+ newins "${FILESDIR}/${PN}-conf-update-hook" "${PN}"
+ fperms 755 "${conf_update_dir}/${PN}"
+}
+
+pkg_postinst() {
+ tmpfiles_process "${PN}.conf"
+
+ elog "${PN} supports git, mercurial and darcs"
+ elog "This ebuild just ensures at least one is installed!"
+ elog
+ elog "You may want to adjust your /etc/portage/bashrc"
+ elog "see the example file in /usr/share/doc/${PF}"
+ elog
+ elog "To initialise your etc-dir as a repository run:"
+ elog "${PN} init -d /etc"
+}
next reply other threads:[~2025-08-17 10:17 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-17 10:17 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-06 1:51 [gentoo-commits] repo/gentoo:master commit in: sys-apps/etckeeper/ Sam James
2025-04-14 7:11 Petr Vaněk
2025-04-13 21:22 Sam James
2025-03-27 11:49 Sam James
2025-03-27 11:49 Sam James
2025-03-27 11:49 Sam James
2025-03-27 11:49 Sam James
2025-03-27 11:03 Sam James
2025-02-24 11:21 Petr Vaněk
2024-12-13 5:07 Sam James
2024-12-13 5:07 Sam James
2024-06-04 17:49 Viorel Munteanu
2024-05-19 17:49 Arthur Zamarin
2024-05-19 17:09 Sam James
2024-05-19 17:09 Sam James
2024-05-19 17:06 Arthur Zamarin
2024-05-19 17:02 Arthur Zamarin
2023-11-30 3:07 Sam James
2023-07-08 3:39 Sam James
2023-07-07 10:14 Sam James
2023-07-07 4:40 Sam James
2023-07-07 4:40 Sam James
2023-07-07 4:40 Sam James
2023-07-07 3:36 Sam James
2022-11-01 15:47 Arthur Zamarin
2022-11-01 8:44 Agostino Sarubbo
2022-11-01 8:29 Agostino Sarubbo
2022-11-01 8:28 Agostino Sarubbo
2022-11-01 8:26 Agostino Sarubbo
2022-11-01 6:51 Georgy Yakovlev
2022-10-01 5:36 Sam James
2022-06-05 23:03 Conrad Kostecki
2022-05-20 4:01 Georgy Yakovlev
2022-05-05 12:01 Jakov Smolić
2022-03-27 2:33 Sam James
2022-03-18 12:26 Arthur Zamarin
2022-03-15 16:27 Sam James
2021-11-20 7:32 Georgy Yakovlev
2021-11-20 7:28 Agostino Sarubbo
2021-11-19 8:10 Agostino Sarubbo
2021-11-19 6:18 Arthur Zamarin
2021-11-19 2:43 Sam James
2021-07-22 22:25 Marek Szuba
2021-07-10 2:12 Georgy Yakovlev
2020-11-24 6:06 Georgy Yakovlev
2020-03-31 10:01 Agostino Sarubbo
2020-03-31 7:23 Georgy Yakovlev
2020-03-31 7:18 Agostino Sarubbo
2020-01-08 11:27 Georgy Yakovlev
2018-10-13 22:02 Patrice Clement
2018-10-03 5:15 Georgy Yakovlev
2018-10-01 3:54 Benda XU
2018-09-24 18:48 Mikle Kolyada
2018-04-23 14:50 Aaron Bauman
2018-04-05 21:33 Michał Górny
2018-04-05 21:33 Michał Górny
2018-04-05 21:33 Michał Górny
2017-11-21 18:00 Manuel Rüger
2017-05-28 21:18 Manuel Rüger
2016-08-06 13:34 Manuel Rüger
2016-08-06 13:27 Manuel Rüger
2016-07-16 22:31 Manuel Rüger
2016-03-15 15:27 Agostino Sarubbo
2016-03-06 12:58 Agostino Sarubbo
2016-02-15 23:22 Manuel Rüger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1755425844.18d7eaf76b3c071f183b0d9fc0bdca51396b71dd.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox