|
|
bab9d7 |
|
|
|
3b03ad |
Summary: Relax-and-Recover is a Linux disaster recovery and system migration tool
|
|
|
3b03ad |
Name: rear
|
|
|
3b03ad |
Version: 1.17.2
|
|
|
1f19fa |
Release: 7%{?dist}
|
|
|
3b03ad |
License: GPLv3
|
|
|
3b03ad |
Group: Applications/File
|
|
|
3b03ad |
URL: http://relax-and-recover.org/
|
|
|
bab9d7 |
|
|
|
bab9d7 |
# as GitHub stopped with download section we need to go back to Sourceforge for downloads
|
|
|
3b03ad |
Source0: https://sourceforge.net/projects/rear/files/rear/1.17/%{version}/rear-%{version}.tar.gz
|
|
|
3b03ad |
Source1: 36_teaming.sh
|
|
|
3b03ad |
Patch0: rear-grep-fix.patch
|
|
|
3b03ad |
Patch1: rear-teaming-interface.patch
|
|
|
1f19fa |
Patch2: uuid_xfs.patch
|
|
|
3b03ad |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
bab9d7 |
|
|
|
bab9d7 |
### Dependencies on all distributions
|
|
|
3b03ad |
Requires: binutils
|
|
|
3b03ad |
Requires: ethtool
|
|
|
3b03ad |
Requires: gzip
|
|
|
3b03ad |
Requires: iputils
|
|
|
3b03ad |
Requires: parted
|
|
|
3b03ad |
Requires: tar
|
|
|
3b03ad |
Requires: openssl
|
|
|
3b03ad |
Requires: gawk
|
|
|
3b03ad |
Requires: attr
|
|
|
bab9d7 |
|
|
|
bab9d7 |
### If you require NFS, you may need the below packages
|
|
|
3b03ad |
#Requires: nfsclient portmap rpcbind
|
|
|
bab9d7 |
|
|
|
bab9d7 |
### We drop LSB requirements because it pulls in too many dependencies
|
|
|
bab9d7 |
### The OS is hardcoded in /etc/rear/os.conf instead
|
|
|
3b03ad |
#Requires: redhat-lsb
|
|
|
bab9d7 |
|
|
|
bab9d7 |
### Required for Bacula/MySQL support
|
|
|
3b03ad |
#Requires: bacula-mysql
|
|
|
bab9d7 |
|
|
|
bab9d7 |
### Required for OBDR
|
|
|
3b03ad |
#Requires: lsscsi sg3_utils
|
|
|
bab9d7 |
|
|
|
bab9d7 |
### Optional requirement
|
|
|
3b03ad |
#Requires: cfg2html
|
|
|
bab9d7 |
|
|
|
3b03ad |
%ifarch x86_64 i686
|
|
|
3b03ad |
Requires: syslinux
|
|
|
bab9d7 |
%endif
|
|
|
bab9d7 |
%ifarch ppc ppc64
|
|
|
3b03ad |
Requires: yaboot
|
|
|
bab9d7 |
%endif
|
|
|
bab9d7 |
|
|
|
3b03ad |
Requires: crontabs
|
|
|
3b03ad |
Requires: iproute
|
|
|
3b03ad |
Requires: mkisofs
|
|
|
bab9d7 |
|
|
|
bab9d7 |
# mingetty is not available anymore with RHEL 7 (use agetty instead via systemd)
|
|
|
bab9d7 |
# Note that CentOS also has %rhel defined so there is no need to use %centos
|
|
|
bab9d7 |
%if 0%{?rhel} && 0%{?rhel} > 6
|
|
|
3b03ad |
Requires: util-linux
|
|
|
bab9d7 |
%else
|
|
|
3b03ad |
Requires: mingetty
|
|
|
3b03ad |
Requires: util-linux
|
|
|
bab9d7 |
%endif
|
|
|
bab9d7 |
|
|
|
bab9d7 |
### The rear-snapshot package is no more
|
|
|
bab9d7 |
#Obsoletes: rear-snapshot
|
|
|
bab9d7 |
|
|
|
bab9d7 |
%description
|
|
|
bab9d7 |
Relax-and-Recover is the leading Open Source disaster recovery and system
|
|
|
bab9d7 |
migration solution. It comprises of a modular
|
|
|
bab9d7 |
frame-work and ready-to-go workflows for many common situations to produce
|
|
|
bab9d7 |
a bootable image and restore from backup using this image. As a benefit,
|
|
|
bab9d7 |
it allows to restore to different hardware and can therefore be used as
|
|
|
bab9d7 |
a migration tool as well.
|
|
|
bab9d7 |
|
|
|
bab9d7 |
Currently Relax-and-Recover supports various boot media (incl. ISO, PXE,
|
|
|
bab9d7 |
OBDR tape, USB or eSATA storage), a variety of network protocols (incl.
|
|
|
bab9d7 |
sftp, ftp, http, nfs, cifs) as well as a multitude of backup strategies
|
|
|
bab9d7 |
(incl. IBM TSM, HP DataProtector, Symantec NetBackup, EMC NetWorker,
|
|
|
bab9d7 |
Bacula, Bareos, rsync).
|
|
|
bab9d7 |
|
|
|
bab9d7 |
Relax-and-Recover was designed to be easy to set up, requires no maintenance
|
|
|
bab9d7 |
and is there to assist when disaster strikes. Its setup-and-forget nature
|
|
|
bab9d7 |
removes any excuse for not having a disaster recovery solution implemented.
|
|
|
bab9d7 |
|
|
|
bab9d7 |
Professional services and support are available.
|
|
|
bab9d7 |
|
|
|
bab9d7 |
%pre
|
|
|
bab9d7 |
if [ $1 -gt 1 ] ; then
|
|
|
bab9d7 |
# during upgrade remove obsolete directories
|
|
|
bab9d7 |
%{__rm} -rf %{_datadir}/rear/output/NETFS
|
|
|
bab9d7 |
fi
|
|
|
bab9d7 |
|
|
|
bab9d7 |
%prep
|
|
|
bab9d7 |
%setup -q
|
|
|
bab9d7 |
|
|
|
3b03ad |
%patch0 -p1
|
|
|
3b03ad |
%patch1 -p1
|
|
|
1f19fa |
%patch2 -p1
|
|
|
3b03ad |
|
|
|
bab9d7 |
echo "30 1 * * * root /usr/sbin/rear checklayout || /usr/sbin/rear mkrescue" >rear.cron
|
|
|
bab9d7 |
|
|
|
bab9d7 |
### Add a specific os.conf so we do not depend on LSB dependencies
|
|
|
bab9d7 |
%{?fedora:echo -e "OS_VENDOR=Fedora\nOS_VERSION=%{?fedora}" >etc/rear/os.conf}
|
|
|
bab9d7 |
%{?rhel:echo -e "OS_VENDOR=RedHatEnterpriseServer\nOS_VERSION=%{?rhel}" >etc/rear/os.conf}
|
|
|
bab9d7 |
|
|
|
bab9d7 |
%build
|
|
|
bab9d7 |
|
|
|
bab9d7 |
%install
|
|
|
bab9d7 |
%{__rm} -rf %{buildroot}
|
|
|
bab9d7 |
%{__make} install DESTDIR="%{buildroot}"
|
|
|
bab9d7 |
%{__install} -Dp -m0644 rear.cron %{buildroot}%{_sysconfdir}/cron.d/rear
|
|
|
bab9d7 |
#%{__install} -Dp -m0644 etc/udev/rules.d/62-rear-usb.rules %{buildroot}%{_sysconfdir}/udev/rules.d/62-rear-usb.rules
|
|
|
3b03ad |
cp %{SOURCE1} %{buildroot}%{_datadir}/rear/rescue/GNU/Linux/36_teaming.sh
|
|
|
bab9d7 |
%clean
|
|
|
bab9d7 |
%{__rm} -rf %{buildroot}
|
|
|
bab9d7 |
|
|
|
bab9d7 |
%files
|
|
|
bab9d7 |
%defattr(-, root, root, 0755)
|
|
|
bab9d7 |
%doc AUTHORS COPYING README.adoc doc/*.txt
|
|
|
bab9d7 |
%doc %{_mandir}/man8/rear.8*
|
|
|
bab9d7 |
%config(noreplace) %{_sysconfdir}/cron.d/rear
|
|
|
bab9d7 |
%config(noreplace) %{_sysconfdir}/rear/
|
|
|
bab9d7 |
#%config(noreplace) %{_sysconfdir}/udev/rules.d/62-rear-usb.rules
|
|
|
bab9d7 |
%{_datadir}/rear/
|
|
|
bab9d7 |
%{_localstatedir}/lib/rear/
|
|
|
bab9d7 |
%{_sbindir}/rear
|
|
|
bab9d7 |
|
|
|
bab9d7 |
%changelog
|
|
|
1f19fa |
* Tue Dec 13 2016 Jakub Mazanek <jmazanek@redhat.com> - 1.17.2-7
|
|
|
1f19fa |
- Correcting UUID creation on xfs filesystem
|
|
|
1f19fa |
Resolves: #1404167
|
|
|
1f19fa |
|
|
|
3b03ad |
* Tue Jul 19 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-6
|
|
|
3b03ad |
- Replace experimental grep -P with grep -E
|
|
|
3b03ad |
Resolves: #1290205
|
|
|
3b03ad |
|
|
|
3b03ad |
* Wed Mar 23 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-5
|
|
|
3b03ad |
- Remove backuped patched files
|
|
|
3b03ad |
Related: #1283930
|
|
|
3b03ad |
|
|
|
3b03ad |
* Wed Mar 23 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-4
|
|
|
3b03ad |
- Rear recovery over teaming interface will not work
|
|
|
3b03ad |
Resolves: #1283930
|
|
|
3b03ad |
|
|
|
3b03ad |
* Tue Mar 08 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-3
|
|
|
3b03ad |
- Replace experimental grep -P with grep -E
|
|
|
3b03ad |
Resolves: #1290205
|
|
|
3b03ad |
|
|
|
3b03ad |
* Tue Feb 23 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-2
|
|
|
3b03ad |
- rear does not require syslinux
|
|
|
3b03ad |
- changing to arch package so that syslinux is installed
|
|
|
3b03ad |
- Resolves: #1283927
|
|
|
3b03ad |
|
|
|
bab9d7 |
* Mon Sep 14 2015 Petr Hracek <phracek@redhat.com> - 1.17.2-1
|
|
|
bab9d7 |
- New upstream release 1.17.2
|
|
|
bab9d7 |
Related: #1059196
|
|
|
bab9d7 |
|
|
|
bab9d7 |
* Wed May 13 2015 Petr Hracek <phracek@redhat.com> 1.17.0-2
|
|
|
bab9d7 |
- Fix Source tag
|
|
|
bab9d7 |
Related: #1059196
|
|
|
bab9d7 |
|
|
|
bab9d7 |
* Mon May 04 2015 Petr Hracek <phracek@redhat.com> 1.17.0-1
|
|
|
bab9d7 |
- Initial package for RHEL 7
|
|
|
bab9d7 |
Resolves: #1059196
|
|
|
bab9d7 |
|
|
|
bab9d7 |
* Fri Oct 17 2014 Gratien D'haese <gratien.dhaese@gmail.com>
|
|
|
bab9d7 |
- added the suse_version lines to identify the corresponding OS_VERSION
|
|
|
bab9d7 |
|
|
|
bab9d7 |
* Fri Jun 20 2014 Gratien D'haese <gratien.dhaese@gmail.com>
|
|
|
bab9d7 |
- add %%pre section
|
|
|
bab9d7 |
|
|
|
bab9d7 |
* Thu Apr 11 2013 Gratien D'haese <gratien.dhaese@gmail.com>
|
|
|
bab9d7 |
- changes Source
|
|
|
bab9d7 |
|
|
|
bab9d7 |
* Thu Jun 03 2010 Dag Wieers <dag@wieers.com>
|
|
|
bab9d7 |
- Initial package. (using DAR)
|