From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AE76E15827B for ; Sun, 17 Aug 2025 10:17:57 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 955A4340441 for ; Sun, 17 Aug 2025 10:17:57 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 867C7110280; Sun, 17 Aug 2025 10:17:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 7CFCC110280 for ; Sun, 17 Aug 2025 10:17:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 29DE933BE26 for ; Sun, 17 Aug 2025 10:17:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 90128335F for ; Sun, 17 Aug 2025 10:17:54 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1755425844.18d7eaf76b3c071f183b0d9fc0bdca51396b71dd.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/etckeeper/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/etckeeper/Manifest sys-apps/etckeeper/etckeeper-1.18.23.ebuild X-VCS-Directories: sys-apps/etckeeper/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 18d7eaf76b3c071f183b0d9fc0bdca51396b71dd X-VCS-Branch: master Date: Sun, 17 Aug 2025 10:17:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 002bd436-afbb-494b-9a2d-fc906af5743c X-Archives-Hash: 334f2be134976a8057c15314d9a887db commit: 18d7eaf76b3c071f183b0d9fc0bdca51396b71dd Author: Sam James gentoo org> AuthorDate: Sun Aug 17 10:16:53 2025 +0000 Commit: Sam James gentoo 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 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" +}