commit: 90363e03cb5a1108acfdcd5aee659473e8bac22c Author: Yixun Lan <dlan <AT> gentoo <DOT> org> AuthorDate: Tue Dec 20 06:44:34 2016 +0000 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> CommitDate: Tue Dec 20 06:44:34 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90363e03
app-backup/snapper: version bump Package-Manager: Portage-2.3.3, Repoman-2.3.1 app-backup/snapper/Manifest | 1 + app-backup/snapper/snapper-0.4.0.ebuild | 73 +++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/app-backup/snapper/Manifest b/app-backup/snapper/Manifest index b55abfb..1324361 100644 --- a/app-backup/snapper/Manifest +++ b/app-backup/snapper/Manifest @@ -1,2 +1,3 @@ DIST snapper-0.2.8.tar.bz2 475053 SHA256 a44608648ed21a1346f8ae9345044901c39ad01abb501806a22c9d4a771eadc5 SHA512 ce1529062943c34b9de2eafb62c6e28b39bda6f4afc23ec5df5ddd42f213cbaf0d77d94d11d982285114ceecd27bd48206436119af84b2769ed4792aab01c75d WHIRLPOOL 3463cf8beb7adb1f3869645b20928dc21fc9cb72f8ed5275688e0b53c97b8103d0536e3246f12fcdc90c1889d221d13ce131b1920c7298232212c003ea9abb6d DIST snapper-0.3.3.tar.bz2 545800 SHA256 e64f42417fffed65524ce125eb31b5dbdd802a519ef04dd88c9251ef2784fe10 SHA512 f24f6d121f9a613549899b7bf3751f6d9c101db716d7bc3858a2add9f90e08861fc46927ce0130efc232240a91e24934820d0c2b1b65f206ac80d04cdaaec39d WHIRLPOOL 8a55ec12330d13bb1c4a630584418eb0e4f64580324ec8ff9fe444a1d52a4eafddac6c6c6cefc8aec760d84336f24c389e3f6d79ff07d9a40bb69cedbf35c8b7 +DIST snapper-0.4.0.tar.bz2 570614 SHA256 3818e123c29ffb1e3c62104c7623643cdc1fcab9494ba2c7e71825fbf68f6c77 SHA512 e4e75b31932309fd4cd3abc462826414f727ae5eec4fd79922d34a6fecd80e3e7bd5d8da4d3e5ac6ede021a21e68cb2ca127559567e8089b9d4636b6e6b61711 WHIRLPOOL 7799aba8e26a46d333d801f1733299ca68161a465702a7666bc68780de773f265bfcddc62126c1c703fde21af8052c878ddd4a87a662f5ad48c5230939a16bc5 diff --git a/app-backup/snapper/snapper-0.4.0.ebuild b/app-backup/snapper/snapper-0.4.0.ebuild new file mode 100644 index 00000000..3617c5a --- /dev/null +++ b/app-backup/snapper/snapper-0.4.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Command-line program for btrfs and ext4 snapshot management" +HOMEPAGE="http://snapper.io/" +SRC_URI="ftp://ftp.suse.com/pub/projects/snapper/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+btrfs ext4 lvm pam xattr" + +RDEPEND="dev-libs/boost:=[threads] + dev-libs/libxml2 + dev-libs/icu:= + sys-apps/acl + sys-apps/dbus + sys-apps/util-linux + sys-libs/zlib + virtual/libintl + btrfs? ( >=sys-fs/btrfs-progs-3.17.1 ) + ext4? ( sys-fs/e2fsprogs ) + lvm? ( sys-fs/lvm2 ) + pam? ( sys-libs/pam ) + xattr? ( sys-apps/attr )" + +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig" + +REQUIRED_USE="|| ( btrfs ext4 lvm )" + +DOCS=( AUTHORS ) + +src_prepare() { + epatch "${FILESDIR}"/cron-confd.patch +} + +src_configure() { + local myeconfargs=( + --with-conf="/etc/conf.d" + --docdir="/usr/share/doc/${PF}" + --disable-zypp + --enable-rollback + $(use_enable btrfs) + $(use_enable ext4) + $(use_enable lvm) + $(use_enable pam) + $(use_enable xattr xattrs) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + # Existing configuration file required to function + newconfd data/sysconfig.snapper snapper + prune_libtool_files +} + +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 <subvolume>" + elog "For more information, see man (8) snapper or" + elog "http://snapper.io/documentation.html" +}