diff options
author | Martin Dummer <martin.dummer@gmx.net> | 2022-08-11 22:05:26 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-08-28 11:22:10 +0300 |
commit | d93413d721b11c503f9abd3feaddc8ac07e59fa8 (patch) | |
tree | 163823c206edba79227131fc3a4fbe4c0dfbcdad /app-backup | |
parent | app-backup/rear: drop 2.4 (diff) | |
download | gentoo-d93413d721b11c503f9abd3feaddc8ac07e59fa8.tar.gz gentoo-d93413d721b11c503f9abd3feaddc8ac07e59fa8.tar.bz2 gentoo-d93413d721b11c503f9abd3feaddc8ac07e59fa8.zip |
app-backup/rear: add 2.7
Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/26828
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-backup')
-rw-r--r-- | app-backup/rear/Manifest | 1 | ||||
-rw-r--r-- | app-backup/rear/rear-2.7.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/app-backup/rear/Manifest b/app-backup/rear/Manifest index b5a5127a6127..aed693bdc563 100644 --- a/app-backup/rear/Manifest +++ b/app-backup/rear/Manifest @@ -1 +1,2 @@ DIST rear-2.6.tar.gz 750866 BLAKE2B de803951c040bb85d4659fc81ffb9264b2771a45675aca4eb0a6318201802475014c2b760415ac61ab734286f5e1e84b0c858df166b9be356384a243a7badb78 SHA512 0b6deac8f1b4adc3bcfcd19e82b5e5719df1c1c2347e3dde9bb47b6086856ebf5d08e485b876633190bb6f92a0e1c567bb65a30554205a32eec4b929e5815a6c +DIST rear-2.7.tar.gz 852253 BLAKE2B 9652887c13fd91d4f7ca96d8ff851750045b837268bde70da8bfac32950039116a04b89d46f57dd40dd92f55e7ca284ce751b1b71340f1c96c0f5ec5496b3966 SHA512 9cabc6c5ddb01934740b73098a80bf1e0c03140ac1fce7c399752c1145bb743573033f6e34ae59a13e34fa873c8e992ce50316ee0260d23667614d5250daa087 diff --git a/app-backup/rear/rear-2.7.ebuild b/app-backup/rear/rear-2.7.ebuild new file mode 100644 index 000000000000..ef577486b642 --- /dev/null +++ b/app-backup/rear/rear-2.7.ebuild @@ -0,0 +1,56 @@ +# Copyright 2020-2022 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="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 ) +" + +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 +} |