blob: aab95996cc8f35e98dabba19f481f623b4578861 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit optfeature udev
DESCRIPTION="Relax-and-Recover is a setup-and-forget bare metal disaster recovery solution"
HOMEPAGE="http://relax-and-recover.org/ https://github.com/rear/rear/"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="udev"
RDEPEND="
app-cdr/cdrtools
app-shells/bash
net-dialup/mingetty
net-fs/nfs-utils
sys-apps/gawk
sys-apps/iproute2
sys-apps/lsb-release
sys-apps/sed
sys-apps/util-linux
sys-block/parted
sys-boot/syslinux
udev? ( virtual/udev )
"
PATCHES=(
"${FILESDIR}/${P}-Makefile.patch"
)
src_compile() { :; }
src_install() {
emake DESTDIR="${D}" install
if use udev ; then
einfo "Deploy udev USB rule and udev will autostart ReaR workflows in case a USB"
einfo "drive with the label 'REAR_000' is connected, which in turn is the"
einfo "default label when running the \`rear format\` command."
udev_dorules etc/udev/rules.d/62-${PN}-usb.rules
fi
keepdir /etc/rear
keepdir /var/lib/rear
keepdir /var/log/rear
}
pkg_postinst() {
if use udev ; then
udev_reload
fi
optfeature "saving backups on smb/cifs servers" net-fs/cifs-utils
optfeature "encrypting backups" dev-libs/openssl
}
|