diff options
author | 2012-02-19 17:34:20 +0000 | |
---|---|---|
committer | 2012-02-19 17:34:20 +0000 | |
commit | e05aa58f412fb093773af1ec789c1ff66cc66930 (patch) | |
tree | 37a041521f93f406e871b62f4066364fa446520b /app-backup | |
parent | net-dns/nsd: version bump (diff) | |
download | sunrise-reviewed-e05aa58f412fb093773af1ec789c1ff66cc66930.tar.gz sunrise-reviewed-e05aa58f412fb093773af1ec789c1ff66cc66930.tar.bz2 sunrise-reviewed-e05aa58f412fb093773af1ec789c1ff66cc66930.zip |
app-backup/rear: New ebuild for bug 404439. Thanks to floppym, hasufell and Tommy[D]
svn path=/sunrise/; revision=12763
Diffstat (limited to 'app-backup')
-rw-r--r-- | app-backup/rear/ChangeLog | 11 | ||||
-rw-r--r-- | app-backup/rear/Manifest | 5 | ||||
-rw-r--r-- | app-backup/rear/files/rear-1.12.0-broken_lib_dir_workaround.patch | 18 | ||||
-rw-r--r-- | app-backup/rear/metadata.xml | 8 | ||||
-rw-r--r-- | app-backup/rear/rear-1.12.0-r1.ebuild | 57 |
5 files changed, 99 insertions, 0 deletions
diff --git a/app-backup/rear/ChangeLog b/app-backup/rear/ChangeLog new file mode 100644 index 000000000..0080ca781 --- /dev/null +++ b/app-backup/rear/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-backup/rear +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*rear-1.12.0-r1 (19 Feb 2012) + + 19 Feb 2012; Brian Wiborg (baccenfutter) <baccenfutter@c-base.org> + +rear-1.12.0-r1.ebuild, +files/rear-1.12.0-broken_lib_dir_workaround.patch, + +metadata.xml: + New ebuild for bug 404439. Thanks to floppym, hasufell and Tommy[D] + diff --git a/app-backup/rear/Manifest b/app-backup/rear/Manifest new file mode 100644 index 000000000..f9c3058a8 --- /dev/null +++ b/app-backup/rear/Manifest @@ -0,0 +1,5 @@ +AUX rear-1.12.0-broken_lib_dir_workaround.patch 1034 RMD160 189651fc3b7b86217c1d394b62abab2074aa5e50 SHA1 67f8abcb3b6f18e5d649b8735e714d803a7f1ba9 SHA256 5df725e02dd71bbdcd7c4ebe75ac2735bd28fd389e0f3787cdd32b412f779618 +DIST rear-1.12.0.tar.gz 324641 RMD160 358906bdbf681f953b090e5f7a4fff5038a73cfc SHA1 e672d35c9531f231a7ec1b10b3bd89057dae504c SHA256 1e9e8f1ce31f60251d3382c7f6ea0d2b262282e213aadd2a119aa4dac1509519 +EBUILD rear-1.12.0-r1.ebuild 1412 RMD160 9c3c9ad9ae1415e88a06b63474409bd6f0ce807d SHA1 e451d977346f591c5dc7a40404c50cd8cecadcc4 SHA256 7bb7eff4f12c779a10b6c70e589062c0ad3858b563d9289c8dd07dc5f8edbbe7 +MISC ChangeLog 382 RMD160 75fdd1a3a86f3e6ba90d705a11a2c2e6a8d7a874 SHA1 ec5d270dcea4bfebec25cf5b0676c3a9a23310a0 SHA256 6ccd6f817b957ad24a208a5d0dacee97e8c35dc63a459bf941095649eff09593 +MISC metadata.xml 637 RMD160 2ed65967a52e2c1357c394f0298352a7e19a23da SHA1 e571361ea458486d9856a6355eb778eaa55da729 SHA256 23729ec1f677c0361fb6df428f3f0f78e4bd5ebcecfc41a02604ceb8b31b3155 diff --git a/app-backup/rear/files/rear-1.12.0-broken_lib_dir_workaround.patch b/app-backup/rear/files/rear-1.12.0-broken_lib_dir_workaround.patch new file mode 100644 index 000000000..c994da45d --- /dev/null +++ b/app-backup/rear/files/rear-1.12.0-broken_lib_dir_workaround.patch @@ -0,0 +1,18 @@ +# Many Linux distributions other than Gentoo provide symlinks /lib64 and /lib32 pointing to /lib. Gentoo rather has /lib +# pointing to either /lib32 or /lib64 (depending on your arch). ReaR wasn't aware of the fact, that Gentoo handles this +# differently than most other distributions. This patch provides a workaround for ReaR's image creation workflow by +# flipping the symlink into Gentoo compatible style. +# +# The issue has been addressed upstream in Feb. 2012 and will be fixed shortly but not released before next major +# release. + +--- usr/share/rear/build/GNU/Linux/09_create_lib_directories_and_symlinks.sh.orig 2011-11-22 10:17:57.000000000 +0100 ++++ usr/share/rear/build/GNU/Linux/09_create_lib_directories_and_symlinks.sh 2012-02-05 12:45:58.322572332 +0100 +@@ -1,4 +1,6 @@ + # Create lib directories ++[ -L /lib ] && linktarget=$(readlink /lib) ++[ -n $linktarget ] && mv $ROOTFS_DIR/lib $ROOTFS_DIR/$linktarget + for libdir in /lib* ; do + # $libdir always contains a leading / ! + if [ -L $libdir ] ; then + diff --git a/app-backup/rear/metadata.xml b/app-backup/rear/metadata.xml new file mode 100644 index 000000000..d3e4987a3 --- /dev/null +++ b/app-backup/rear/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <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> + <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer> +</pkgmetadata> diff --git a/app-backup/rear/rear-1.12.0-r1.ebuild b/app-backup/rear/rear-1.12.0-r1.ebuild new file mode 100644 index 000000000..1e757b3ad --- /dev/null +++ b/app-backup/rear/rear-1.12.0-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit eutils + +DESCRIPTION="Fully automated disaster Recovery for GNU/Linux" +HOMEPAGE="http://rear.github.com" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="app-cdr/cdrtools + net-dialup/mingetty + net-fs/nfs-utils + sys-apps/iproute2 + sys-apps/lsb-release + sys-apps/util-linux + sys-block/parted + sys-boot/syslinux + sys-fs/udev + " + +src_prepare () { + epatch "${FILESDIR}/${P}-broken_lib_dir_workaround.patch" +} + +src_install () { + insinto /usr/share/ + doins -r usr/share/rear + insinto /etc/ + doins -r etc/rear + insinto /lib/udev/rules.d + doins etc/udev/rules.d/62-rear-usb.rules + insinto /etc/rear + doins usr/share/rear/conf/default.conf + dosbin usr/sbin/rear + + doman usr/share/rear/doc/rear.8 +} + +pkg_prerm () { + if [[ -z "${REPLACED_BY_VERSION}" ]]; then + # due to the nature of rear's image creation, there is a hard-coded + # relative symlinks that leads to a recursion error upon deletion. + rm "${EROOT}usr/share/rear/skel/default/lib/tls" + # for some odd reason portage tries to delete the parent directory + # befor the 'EXTERNAL' symlink is removed, leading to empty directory + # remaining behind. we want to avoid this until it has been fixed upstream. + rm "${EROOT}usr/share/rear/verify/EXTERNAL" + fi +} |