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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3A8791584AD for ; Tue, 29 Apr 2025 06:53:41 +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)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 207B9340DE6 for ; Tue, 29 Apr 2025 06:53:41 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id E165D11036B; Tue, 29 Apr 2025 06:53:35 +0000 (UTC) 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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id DA5EB11036B for ; Tue, 29 Apr 2025 06:53:35 +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 9507F342FB0 for ; Tue, 29 Apr 2025 06:53:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A3E7C254A for ; Tue, 29 Apr 2025 06:53:33 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1745909558.cea665f5a7ebda6375d582f282de757432791bd7.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/snapper/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-backup/snapper/Manifest app-backup/snapper/snapper-0.12.2.ebuild X-VCS-Directories: app-backup/snapper/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: cea665f5a7ebda6375d582f282de757432791bd7 X-VCS-Branch: master Date: Tue, 29 Apr 2025 06:53:33 +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: e40cd361-1311-4e18-b4c2-5f58c0f3fd14 X-Archives-Hash: 18e968e86f9533302fe5e1fbd56de611 commit: cea665f5a7ebda6375d582f282de757432791bd7 Author: Yixun Lan gentoo org> AuthorDate: Tue Apr 29 06:47:32 2025 +0000 Commit: Yixun Lan gentoo org> CommitDate: Tue Apr 29 06:52:38 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cea665f5 app-backup/snapper: add 0.12.2 Signed-off-by: Yixun Lan gentoo.org> app-backup/snapper/Manifest | 1 + app-backup/snapper/snapper-0.12.2.ebuild | 90 ++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/app-backup/snapper/Manifest b/app-backup/snapper/Manifest index 3c79f14b5846..f90707955dbf 100644 --- a/app-backup/snapper/Manifest +++ b/app-backup/snapper/Manifest @@ -1,2 +1,3 @@ DIST snapper-0.12.0.tar.gz 530406 BLAKE2B 575a1cf251c789c38f3cce623e6074dde4d195914f7b391f2a0d4f588e5ff90b47c56b1897cb9a6d6a7789ed6d5e3676cb9ac3719fa33e9dabdc26227ea5b1e2 SHA512 f022ce76633e3d64e2c3c825a9113b2f77d0e672188b4af644e37388cb3636b4878131917a734aab3b74e744b5e437d53657744df37ec53671442cef4e3bb873 DIST snapper-0.12.1.tar.gz 536687 BLAKE2B 1fbc8a99848016974db82c3993cd22fe402fba49ab128919e291704f602447c3d5b63f9681eff038e4bfbf89da8e5516516b22e8d93ca637ecca89c33ce89df6 SHA512 be7e227c7b7935d9be25ada77b758e654102881b8b7886fca312a9be990fbf701db774bfcccde4a05b9e1c0b31aa7f757a7a94a254c49fd54ba7a1395b3a6716 +DIST snapper-0.12.2.tar.gz 543425 BLAKE2B bc88fa28629e3d04ecd243c577838ed151dcc96457f15b4c5900d534565201726c040d03a1f2cbfd22fc29ed219462e8cc5e93f158def66079150df6c4e366a6 SHA512 7c422db43296c74edb629dcc0936ca335c440922c8f21701b07515069ec3ef79023d8a78875d0953480ecea1bf5284a50ff39a1778e56f42b8fa2c46ce3e8bfa diff --git a/app-backup/snapper/snapper-0.12.2.ebuild b/app-backup/snapper/snapper-0.12.2.ebuild new file mode 100644 index 000000000000..46ac21b22084 --- /dev/null +++ b/app-backup/snapper/snapper-0.12.2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools systemd + +DESCRIPTION="Command-line program for btrfs and lvm snapshot management" +HOMEPAGE="http://snapper.io/" +SRC_URI="https://github.com/openSUSE/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +IUSE="lvm pam test systemd xattr" +RESTRICT="test" + +BDEPEND="app-text/docbook-xsl-stylesheets + dev-libs/libxslt + sys-devel/gettext + virtual/pkgconfig" + +RDEPEND="dev-libs/boost:= + dev-libs/json-c:= + dev-libs/libxml2 + dev-libs/icu:= + sys-apps/acl + sys-apps/dbus + sys-apps/util-linux + >=sys-fs/btrfs-progs-3.17.1 + sys-libs/zlib + virtual/libintl + lvm? ( sys-fs/lvm2 ) + pam? ( sys-libs/pam ) + xattr? ( sys-apps/attr )" + +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.11.0-cron-confd.patch + "${FILESDIR}"/${PN}-0.10.1-testsuite.patch +) + +src_prepare() { + default + + sed -e "s,/usr/lib/systemd/system,$(systemd_get_systemunitdir),g" \ + -i data/Makefile.* \ + || die "Failed to fix systemd services and timers installation path" + eautoreconf +} + +src_configure() { + # ext4 code does not work anymore + # snapper does not build without btrfs + local myeconfargs=( + --disable-silent-rules + --with-conf="/etc/conf.d" + --enable-zypp + --enable-rollback + --enable-btrfs-quota + --disable-ext4 + --enable-btrfs + --enable-doc + $(use_enable lvm) + $(use_enable pam) + $(use_enable test tests) + $(use_enable systemd) + $(use_enable xattr xattrs) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + # Existing configuration file required to function + keepdir /etc/snapper/configs + newconfd data/sysconfig.snapper snapper + find "${D}" -name '*.la' -delete || die +} + +pkg_postinst() { + elog "In order to use Snapper, you need to set up" + elog "at least one config first. To do this, run:" + elog "snapper create-config " + elog "For more information, see man (8) snapper or" + elog "http://snapper.io/documentation.html and" + elog "https://wiki.gentoo.org/wiki/Snapper" +}