1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 EGIT_REPO_URI="git://github.com/openSUSE/snapper.git"
9 AUTOTOOLS_IN_SOURCE_BUILD=1
10 inherit eutils autotools-utils git-r3
12 DESCRIPTION="Command-line program for btrfs and ext4 snapshot management"
13 HOMEPAGE="http://snapper.io/"
19 IUSE="+btrfs ext4 lvm pam xattr"
21 RDEPEND="dev-libs/boost[threads]
29 btrfs? ( >=sys-fs/btrfs-progs-3.17.1 )
30 ext4? ( sys-fs/e2fsprogs )
33 xattr? ( sys-apps/attr )"
39 DOCS=( AUTHORS README package/snapper.changes )
41 PATCHES=( "${FILESDIR}"/cron-confd.patch )
45 --with-conf="/etc/conf.d"
46 --docdir="/usr/share/doc/${PF}"
52 $(use_enable xattr xattrs)
54 autotools-utils_src_configure
58 autotools-utils_src_install
59 # Existing configuration file required to function
60 newconfd data/sysconfig.snapper snapper
64 elog "In order to use Snapper, you need to set up"
65 elog "at least one config first. To do this, run:"
66 elog "snapper create-config <subvolume>"
67 elog "For more information, see man (8) snapper or"
68 elog "http://snapper.io/documentation.html"