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: Mon, 01 Jun 2020 06:57:19
Message-Id: 1590994380.c35ea4afaa0d50c5adb1e66c2501c83d629c0a21.dlan@gentoo
1 commit: c35ea4afaa0d50c5adb1e66c2501c83d629c0a21
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 1 06:18:24 2020 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 1 06:53:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c35ea4af
7
8 app-backup/snapper: version bump, 0.8.9
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
12
13 app-backup/snapper/Manifest | 1 +
14 app-backup/snapper/snapper-0.8.9.ebuild | 80 +++++++++++++++++++++++++++++++++
15 2 files changed, 81 insertions(+)
16
17 diff --git a/app-backup/snapper/Manifest b/app-backup/snapper/Manifest
18 index 6758ce8752e..3162b303dc6 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.6.tar.bz2 607016 BLAKE2B 3e496fa22b1ecce2079d79caeb530ca1538febcc6bdf04aa0256e5b43bb546ea66436e60eeaae6722bc869c60579bc47c556671c5878dd671c266102516f04bb SHA512 f01a309a8dcfff455bf480ff297108e8ec3603d469d50f08740176e22bc2b8dd211de678fa8ce12c1ccd828348a35c6d347ca51b829d7b8c30b3fbaba4e9e2d9
24 DIST snapper-0.8.7.tar.bz2 622381 BLAKE2B 82d1a9c91beb309e87acfa914b55b2ff5900edc023a5ecd6f2bee6b1a15adb1336656f3f1fffea4a9971aa449b7825750e6c680806d4574faada5bba0a6d14f1 SHA512 6fa63c2453f93a724f0ac23d84ff2c5aafc654463e84a4f767bb8a75a0d4fb7ca7314811179d5fefddddce0df4441298c67b473596aa720d86eeefa43011b727
25 +DIST snapper-0.8.9.tar.gz 373192 BLAKE2B 55c927136518e91b45631f3087fce13e8e08228274ef7c54164a7024e382a45bfa5b40687fd5e3d770fc87019d8e93af5c681013a023cd89dcb1f16863a77421 SHA512 5a3e45839cd4b5e621425df2e1214ca5014a391d17b489fdf7d315e8ac9959741c1f6fcf7adf644276ed11488bc0f88fcfa563198bd78824867d267df204659d
26
27 diff --git a/app-backup/snapper/snapper-0.8.9.ebuild b/app-backup/snapper/snapper-0.8.9.ebuild
28 new file mode 100644
29 index 00000000000..9b77e973fc0
30 --- /dev/null
31 +++ b/app-backup/snapper/snapper-0.8.9.ebuild
32 @@ -0,0 +1,80 @@
33 +# Copyright 1999-2020 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="lvm pam xattr"
48 +
49 +RDEPEND="dev-libs/boost:=[threads]
50 + dev-libs/libxml2
51 + dev-libs/icu:=
52 + sys-apps/acl
53 + sys-apps/dbus
54 + sys-apps/util-linux
55 + >=sys-fs/btrfs-progs-3.17.1
56 + sys-libs/zlib
57 + virtual/libintl
58 + lvm? ( sys-fs/lvm2 )
59 + pam? ( sys-libs/pam )
60 + xattr? ( sys-apps/attr )"
61 +
62 +DEPEND="${RDEPEND}
63 + dev-libs/libxslt
64 + sys-devel/gettext
65 + virtual/pkgconfig"
66 +
67 +PATCHES=(
68 + "${FILESDIR}"/cron-confd.patch
69 +)
70 +
71 +src_prepare() {
72 + default
73 +
74 + sed -e "s,/usr/lib/systemd/system,$(systemd_get_systemunitdir),g" \
75 + -i data/Makefile.* \
76 + || die "Failed to fix systemd services and timers installation path"
77 + eautoreconf
78 +}
79 +
80 +src_configure() {
81 + # ext4 code does not work anymore
82 + # snapper does not build without btrfs
83 + local myeconfargs=(
84 + --with-conf="/etc/conf.d"
85 + --disable-zypp
86 + --enable-rollback
87 + --disable-ext4
88 + --enable-btrfs
89 + $(use_enable lvm)
90 + $(use_enable pam)
91 + $(use_enable xattr xattrs)
92 + )
93 +
94 + econf "${myeconfargs[@]}"
95 +}
96 +
97 +src_install() {
98 + default
99 + # Existing configuration file required to function
100 + keepdir /etc/snapper/configs
101 + newconfd data/sysconfig.snapper snapper
102 + find "${D}" -name '*.la' -delete || die
103 + newbashcomp "${FILESDIR}"/${PN}.bash ${PN}
104 +}
105 +
106 +pkg_postinst() {
107 + elog "In order to use Snapper, you need to set up"
108 + elog "at least one config first. To do this, run:"
109 + elog "snapper create-config <subvolume>"
110 + elog "For more information, see man (8) snapper or"
111 + elog "http://snapper.io/documentation.html"
112 +}