diff options
author | Martin Dummer <martin.dummer@gmx.net> | 2020-08-02 23:14:26 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-10-05 08:46:48 +0300 |
commit | 6eacc715e06b282225caf3d50e0f5269d8e425e3 (patch) | |
tree | edaf6807da21f2af56b51db6ace94b4882e387c5 /app-backup | |
parent | dev-libs/libbase58: conditionalize 'rm' in 0.1.4 (diff) | |
download | gentoo-6eacc715e06b282225caf3d50e0f5269d8e425e3.tar.gz gentoo-6eacc715e06b282225caf3d50e0f5269d8e425e3.tar.bz2 gentoo-6eacc715e06b282225caf3d50e0f5269d8e425e3.zip |
app-backup/rear: version bump to 2.6
re-introduce udev rule for backup start on backup disc connect
add proxy-maintainership
Closes: https://bugs.gentoo.org/696678
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/17487
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/files/rear-2.6-Makefile.patch | 34 | ||||
-rw-r--r-- | app-backup/rear/metadata.xml | 10 | ||||
-rw-r--r-- | app-backup/rear/rear-2.6.ebuild | 60 |
4 files changed, 104 insertions, 1 deletions
diff --git a/app-backup/rear/Manifest b/app-backup/rear/Manifest index 8ae2cae8ecf4..07cafa56e62c 100644 --- a/app-backup/rear/Manifest +++ b/app-backup/rear/Manifest @@ -1 +1,2 @@ DIST rear-2.4.tar.gz 611731 BLAKE2B f7cb6955302e0be6178393a678f050729b827f822df91d28245655d414892f225e25125f7e3bfad080e139ddc9c728121894b4ebde48c4dff2a8071fb4a5d46e SHA512 8a20c0ffd913b1b4c27f6125c1ca31404daaceccb2bfff7932f1ea402806657252afc3f6719c75dcab2de18b7975f83544dac92f43a742654f90494454d7c088 +DIST rear-2.6.tar.gz 750866 BLAKE2B de803951c040bb85d4659fc81ffb9264b2771a45675aca4eb0a6318201802475014c2b760415ac61ab734286f5e1e84b0c858df166b9be356384a243a7badb78 SHA512 0b6deac8f1b4adc3bcfcd19e82b5e5719df1c1c2347e3dde9bb47b6086856ebf5d08e485b876633190bb6f92a0e1c567bb65a30554205a32eec4b929e5815a6c diff --git a/app-backup/rear/files/rear-2.6-Makefile.patch b/app-backup/rear/files/rear-2.6-Makefile.patch new file mode 100644 index 000000000000..800dcf69cee3 --- /dev/null +++ b/app-backup/rear/files/rear-2.6-Makefile.patch @@ -0,0 +1,34 @@ +--- rear-2.6/Makefile.orig 2020-09-09 20:04:39.357666685 +0200 ++++ rear-2.6/Makefile 2020-09-09 20:06:12.537313922 +0200 +@@ -84,7 +84,7 @@ + clean: + rm -Rf dist build + rm -f build-stamp +- make -C doc clean ++ $(MAKE) -C doc clean + + ### You can call 'make validate' directly from your .git/hooks/pre-commit script + validate: +@@ -107,11 +107,11 @@ + + man: + @echo -e "\033[1m== Prepare manual ==\033[0;0m" +- make -C doc man ++ $(MAKE) -C doc man + + doc: + @echo -e "\033[1m== Prepare documentation ==\033[0;0m" +- make -C doc docs ++ $(MAKE) -C doc docs + + install-config: + @echo -e "\033[1m== Installing configuration ==\033[0;0m" +@@ -144,7 +144,7 @@ + + install-doc: + @echo -e "\033[1m== Installing documentation ==\033[0;0m" +- make -C doc install ++ $(MAKE) -C doc install + sed -i -e 's,/etc,$(sysconfdir),' \ + -e 's,/usr/sbin,$(sbindir),' \ + -e 's,/usr/share,$(datadir),' \ diff --git a/app-backup/rear/metadata.xml b/app-backup/rear/metadata.xml index 5d24f38283d0..ccfd9c81bce3 100644 --- a/app-backup/rear/metadata.xml +++ b/app-backup/rear/metadata.xml @@ -1,7 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person"> + <email>martin.dummer@gmx.net</email> + <name>Martin Dummer</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> <longdescription lang="en"> Relax and Recover (Rear) is the leading Open Source disaster recovery solution, and successor to mkcdrec. It comprises of a modular framework and ready-to-go workflows for many common situations to produce a bootable image and restore from backup using this image. As a benefit, it allows to restore to different hardware and can therefore be used as a migration tool as well. </longdescription> @@ -10,5 +17,6 @@ </use> <upstream> <remote-id type="sourceforge">rear</remote-id> + <remote-id type="github">rear/rear</remote-id> </upstream> </pkgmetadata> diff --git a/app-backup/rear/rear-2.6.ebuild b/app-backup/rear/rear-2.6.ebuild new file mode 100644 index 000000000000..5c7e1c9a80fc --- /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="libressl udev samba" + +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 +} |