Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/snapper/
Date: Sun, 06 Jun 2021 06:35:08
Message-Id: 1622961169.ff054b9e0610b226c99ca8a1f09cf74ec703a3f6.dlan@gentoo
1 commit: ff054b9e0610b226c99ca8a1f09cf74ec703a3f6
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 6 06:32:49 2021 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 6 06:32:49 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff054b9e
7
8 app-backup/snapper: version bump, 0.8.16
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
12
13 app-backup/snapper/Manifest | 1 +
14 app-backup/snapper/snapper-0.8.16.ebuild | 89 ++++++++++++++++++++++++++++++++
15 2 files changed, 90 insertions(+)
16
17 diff --git a/app-backup/snapper/Manifest b/app-backup/snapper/Manifest
18 index 745cd271c34..79ab289556a 100644
19 --- a/app-backup/snapper/Manifest
20 +++ b/app-backup/snapper/Manifest
21 @@ -1,3 +1,4 @@
22 DIST snapper-0.5.6.tar.bz2 580047 BLAKE2B 3b945acbf734db1925dad5515323a64a2c08ee8226a593025f9160e0d1b1140734b2b498d036256946159900b50fec8567147dc0a974c281be747e977bcbd05b SHA512 392427d097cbe221bf7ca0ae20bc065dffaa4d0017ed750c41748d71128fc7ce054bb4425d6dbed7308a530df71815f80f56e60d72aab17ef3e0a16f3b3ba47e
23 DIST snapper-0.8.15.tar.gz 393310 BLAKE2B a977ed8cdcbd73b4e49713dc48407c9bdab88e3084f6d9030c555da860b7277961e8e742103bbe04a05a1efa9bbe916a08fc04da3c2bcb59df8d5e53c038c373 SHA512 cdcc811c4299373e22043780a2cc06e7d5bca44fbf62f92ecb76162e791849b6002b35fe804b8b89524fd5e3ed26ed4120f09b62b202e41fedb7339ab9fe267c
24 +DIST snapper-0.8.16.tar.gz 397215 BLAKE2B b59563746b89916f2906de61d7b7e1bd50be18095fa1ce18bb60e2e7103c5bc11dd1590d776eea2567a2ec39c5c01745afa83a0bc2e2f57142bab1aa68be7638 SHA512 91fb648a32de7c2e9cd549aab2545c75e3bad6a4d52446cb93089469ae6d76ad536f5dcce21b77f633907e9394b44928e99a9003ae6be5508d3fcff0c3fd4aae
25 DIST snapper-0.8.9.tar.gz 373192 BLAKE2B 55c927136518e91b45631f3087fce13e8e08228274ef7c54164a7024e382a45bfa5b40687fd5e3d770fc87019d8e93af5c681013a023cd89dcb1f16863a77421 SHA512 5a3e45839cd4b5e621425df2e1214ca5014a391d17b489fdf7d315e8ac9959741c1f6fcf7adf644276ed11488bc0f88fcfa563198bd78824867d267df204659d
26
27 diff --git a/app-backup/snapper/snapper-0.8.16.ebuild b/app-backup/snapper/snapper-0.8.16.ebuild
28 new file mode 100644
29 index 00000000000..2cfe0b2ba1f
30 --- /dev/null
31 +++ b/app-backup/snapper/snapper-0.8.16.ebuild
32 @@ -0,0 +1,89 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools systemd bash-completion-r1
39 +
40 +DESCRIPTION="Command-line program for btrfs and lvm snapshot management"
41 +HOMEPAGE="http://snapper.io/"
42 +SRC_URI="https://github.com/openSUSE/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="doc lvm pam test systemd xattr"
48 +RESTRICT="test"
49 +
50 +RDEPEND="dev-libs/boost:=[threads]
51 + dev-libs/json-c
52 + dev-libs/libxml2
53 + dev-libs/icu:=
54 + sys-apps/acl
55 + sys-apps/dbus
56 + sys-apps/util-linux
57 + >=sys-fs/btrfs-progs-3.17.1
58 + sys-libs/zlib
59 + virtual/libintl
60 + lvm? ( sys-fs/lvm2 )
61 + pam? ( sys-libs/pam )
62 + xattr? ( sys-apps/attr )"
63 +
64 +DEPEND="${RDEPEND}
65 + app-text/docbook-xsl-stylesheets
66 + dev-libs/libxslt
67 + sys-devel/gettext
68 + virtual/pkgconfig"
69 +
70 +PATCHES=(
71 + "${FILESDIR}"/cron-confd.patch
72 + "${FILESDIR}"/${PN}-0.8.15-testsuite.patch
73 +)
74 +
75 +src_prepare() {
76 + default
77 +
78 + sed -e "s,/usr/lib/systemd/system,$(systemd_get_systemunitdir),g" \
79 + -i data/Makefile.* \
80 + || die "Failed to fix systemd services and timers installation path"
81 + eautoreconf
82 +}
83 +
84 +src_configure() {
85 + # ext4 code does not work anymore
86 + # snapper does not build without btrfs
87 + local myeconfargs=(
88 + --disable-silent-rules
89 + --with-conf="/etc/conf.d"
90 + --enable-zypp
91 + --enable-rollback
92 + --enable-btrfs-quota
93 + --disable-ext4
94 + --enable-btrfs
95 + $(use_enable doc)
96 + $(use_enable lvm)
97 + $(use_enable pam)
98 + $(use_enable test tests)
99 + $(use_enable systemd)
100 + $(use_enable xattr xattrs)
101 + )
102 +
103 + econf "${myeconfargs[@]}"
104 +}
105 +
106 +src_install() {
107 + default
108 + # Existing configuration file required to function
109 + keepdir /etc/snapper/configs
110 + newconfd data/sysconfig.snapper snapper
111 + find "${D}" -name '*.la' -delete || die
112 + newbashcomp "${FILESDIR}"/${PN}.bash ${PN}
113 +}
114 +
115 +pkg_postinst() {
116 + elog "In order to use Snapper, you need to set up"
117 + elog "at least one config first. To do this, run:"
118 + elog "snapper create-config <subvolume>"
119 + elog "For more information, see man (8) snapper or"
120 + elog "http://snapper.io/documentation.html"
121 +}