blob: 712b1f606fe8ce374bd4728ac6078db479280c9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=1
DESCRIPTION="LVM Snapshot Backup Wrapper"
HOMEPAGE="http://www.bashinator.org/projects/lvm-snapshot-backup-wrapper"
SRC_URI="http://www.bashinator.org/projects/lvm-snapshot-backup-wrapper/releases/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="rdiff-backup +rsnapshot sudo"
DEPEND=""
RDEPEND="app-shells/bashinator:0
>=app-admin/lvm-snaptool-1
sudo? ( app-admin/sudo )
rdiff-backup? ( app-backup/rdiff-backup )
rsnapshot? ( net-misc/rsync )"
src_compile() { :; }
src_install() {
insinto /etc/${PN}
doins ${PN}.cfg.sh
doins bashinator.cfg.sh
dosbin ${PN}.sh
insinto /usr/share/${PN}
doins ${PN}.lib.sh
docinto example
PORTAGE_COMPRESS= dodoc example/*
use sudo && {
einfo "for setting up backups using an unprivileged user and sudo,"
einfo "please see the bundled example authorized_keys and sudoers files."
}
}
pkg_postinst() {
einfo "Please note that, starting with this version, the library script"
einfo "has been moved from /usr/lib to /usr/share."
}
|