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