app-backup/rear: add 2.9

Closes: https://bugs.gentoo.org/937411
Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
Part-of: https://github.com/gentoo/gentoo/pull/41666
Closes: https://github.com/gentoo/gentoo/pull/41666
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Martin Dummer
2025-04-19 18:10:58 +02:00
committed by Sam James
parent 6396ffdf39
commit 392d7d31ef
2 changed files with 67 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST rear-2.7.tar.gz 852253 BLAKE2B 9652887c13fd91d4f7ca96d8ff851750045b837268bde70da8bfac32950039116a04b89d46f57dd40dd92f55e7ca284ce751b1b71340f1c96c0f5ec5496b3966 SHA512 9cabc6c5ddb01934740b73098a80bf1e0c03140ac1fce7c399752c1145bb743573033f6e34ae59a13e34fa873c8e992ce50316ee0260d23667614d5250daa087
DIST rear-2.9.tar.gz 910395 BLAKE2B 13c49760f57b69604e5bd06511d2b1645b9922296cb9a5d5ee4c00fb3f5385d848fbececd9abbdbf96fc19decfe730a4769f62665672cb34f7fec1102ade6f7f SHA512 9e6a8545f533deacb85839a351de9c0201a34197e9306fc8eebb51ee72e5a56c168e3d8a03e6c774f8f524f144583bd5f3c38fb6c11f91be166e6c8c39603716

View File

@@ -0,0 +1,66 @@
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature udev
DESCRIPTION="Relax-and-Recover is a setup-and-forget bare metal disaster recovery solution"
HOMEPAGE="
https://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
sys-fs/multipath-tools
udev? ( virtual/udev )
"
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
}
pkg_postrm() {
if use udev; then
udev_reload
fi
}