diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /app-backup/rear/rear-2.6.ebuild | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'app-backup/rear/rear-2.6.ebuild')
-rw-r--r-- | app-backup/rear/rear-2.6.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-backup/rear/rear-2.6.ebuild b/app-backup/rear/rear-2.6.ebuild new file mode 100644 index 000000000000..6e4df5c99df6 --- /dev/null +++ b/app-backup/rear/rear-2.6.ebuild @@ -0,0 +1,60 @@ +# Copyright 2020 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-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 + virtual/cdrtools + 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 "if you want to save backups on smb/cifs servers" net-fs/cifs-utils + optfeature "if you want to encrypt your backups" dev-libs/openssl dev-libs/libressl +} |