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: Thu, 25 Aug 2016 05:28:43
Message-Id: 1472102895.193c3388829fd5143105d94dda34fafc959bb0fa.dlan@gentoo
1 commit: 193c3388829fd5143105d94dda34fafc959bb0fa
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 25 03:18:19 2016 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 25 05:28:15 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=193c3388
7
8 app-backup/snapper: version bump
9
10 Package-Manager: portage-2.3.0
11
12 app-backup/snapper/Manifest | 1 +
13 app-backup/snapper/snapper-0.3.3.ebuild | 73 +++++++++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/app-backup/snapper/Manifest b/app-backup/snapper/Manifest
17 index b81b7b1..b55abfb 100644
18 --- a/app-backup/snapper/Manifest
19 +++ b/app-backup/snapper/Manifest
20 @@ -1 +1,2 @@
21 DIST snapper-0.2.8.tar.bz2 475053 SHA256 a44608648ed21a1346f8ae9345044901c39ad01abb501806a22c9d4a771eadc5 SHA512 ce1529062943c34b9de2eafb62c6e28b39bda6f4afc23ec5df5ddd42f213cbaf0d77d94d11d982285114ceecd27bd48206436119af84b2769ed4792aab01c75d WHIRLPOOL 3463cf8beb7adb1f3869645b20928dc21fc9cb72f8ed5275688e0b53c97b8103d0536e3246f12fcdc90c1889d221d13ce131b1920c7298232212c003ea9abb6d
22 +DIST snapper-0.3.3.tar.bz2 545800 SHA256 e64f42417fffed65524ce125eb31b5dbdd802a519ef04dd88c9251ef2784fe10 SHA512 f24f6d121f9a613549899b7bf3751f6d9c101db716d7bc3858a2add9f90e08861fc46927ce0130efc232240a91e24934820d0c2b1b65f206ac80d04cdaaec39d WHIRLPOOL 8a55ec12330d13bb1c4a630584418eb0e4f64580324ec8ff9fe444a1d52a4eafddac6c6c6cefc8aec760d84336f24c389e3f6d79ff07d9a40bb69cedbf35c8b7
23
24 diff --git a/app-backup/snapper/snapper-0.3.3.ebuild b/app-backup/snapper/snapper-0.3.3.ebuild
25 new file mode 100644
26 index 00000000..e5fc8b4
27 --- /dev/null
28 +++ b/app-backup/snapper/snapper-0.3.3.ebuild
29 @@ -0,0 +1,73 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +inherit eutils
37 +
38 +DESCRIPTION="Command-line program for btrfs and ext4 snapshot management"
39 +HOMEPAGE="http://snapper.io/"
40 +SRC_URI="ftp://ftp.suse.com/pub/projects/snapper/${P}.tar.bz2"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="+btrfs ext4 lvm pam xattr"
46 +
47 +RDEPEND="dev-libs/boost[threads]
48 + dev-libs/libxml2
49 + dev-libs/icu:=
50 + sys-apps/acl
51 + sys-apps/dbus
52 + sys-apps/util-linux
53 + sys-libs/zlib
54 + virtual/libintl
55 + btrfs? ( >=sys-fs/btrfs-progs-3.17.1 )
56 + ext4? ( sys-fs/e2fsprogs )
57 + lvm? ( sys-fs/lvm2 )
58 + pam? ( sys-libs/pam )
59 + xattr? ( sys-apps/attr )"
60 +
61 +DEPEND="${RDEPEND}
62 + sys-devel/gettext
63 + virtual/pkgconfig"
64 +
65 +REQUIRED_USE="|| ( btrfs ext4 lvm )"
66 +
67 +DOCS=( AUTHORS )
68 +
69 +src_prepare() {
70 + epatch "${FILESDIR}"/cron-confd.patch
71 +}
72 +
73 +src_configure() {
74 + local myeconfargs=(
75 + --with-conf="/etc/conf.d"
76 + --docdir="/usr/share/doc/${PF}"
77 + --disable-zypp
78 + --enable-rollback
79 + $(use_enable btrfs)
80 + $(use_enable ext4)
81 + $(use_enable lvm)
82 + $(use_enable pam)
83 + $(use_enable xattr xattrs)
84 + )
85 +
86 + econf "${myeconfargs[@]}"
87 +}
88 +
89 +src_install() {
90 + default
91 + # Existing configuration file required to function
92 + newconfd data/sysconfig.snapper snapper
93 + prune_libtool_files
94 +}
95 +
96 +pkg_postinst() {
97 + elog "In order to use Snapper, you need to set up"
98 + elog "at least one config first. To do this, run:"
99 + elog "snapper create-config <subvolume>"
100 + elog "For more information, see man (8) snapper or"
101 + elog "http://snapper.io/documentation.html"
102 +}