All pastes #562551 Raw Edit

Anonymous

public shellscript v1 · immutable
·published 2007-06-12 20:47 UTC
rendered paste body
%define _prefix /var/opt/mkcdrec%define _boot_arch x86Summary: mkCDrec (make CD-ROM Recovery) disaster recovery tool-setName: mkcdrecVersion: v0.9.6Release: 1mdv2007.1Source: mkCDrec_%{version}.tar.gz##Source1: busybox-1.01.tar.bz2URL: http://mkcdrec.ota.be/License: GPLGroup: Archiving/BackupPackager: Patrice FERLET (metal3d@copix.org)%if %{_boot_arch}==ia64Prereq: chkconfig fileutils cdrecord mkisofs tar ash mtools rsyncRequires: kernel >= 2.0.0, util-linux >= 2.11, parted >= 1.6BuildRequires: gcc >= 2.96%endif%if %{_boot_arch}==x86_64Prereq: fileutils cdrecord mkisofs tar ash rsync syslinuxRequires: kernel >= 2.0.0, util-linux >= 2.11BuildRequires: gcc >= 2.96%endif%if %{_boot_arch}==x86Prereq: coreutils fileutils cdrecord mkisofs tar ash syslinux rsyncRequires: kernel >= 2.0.0, util-linux >= 2.11BuildRequires: syslinux >= 1.60, gcc >= 2.96%endifBuildRoot: %{_tmppath}/%{name}-%{version}-rootPrefix: %{_prefix}%descriptionmkCDrec (Make CDROM Recovery) makes a bootable (El Torito) disaster recoveryimage, including backups of the Linux system to one or more CD-ROM(s)(multi-volume sets). Otherwise, the backups can be stored on another disk,NFS disk, or (remote) tape. After a disk crash or system intrusion, the systemcan be booted from the CD-ROM and one can restore the complete system as it was. It also features disk cloning, which allows one to restore a diskto another disk (the destination disk does not have to be of the same size,as it calculates the partition layout itself). Currently, ext2, ext3, minix, msdos, fat, vfat, reiserfs, xfs and jfs filesystems are supported.One Button Disaster Recovery (OBDR) is also supported as recovery method.%changelog* Thu Jun 07 2007 Patrice FERLET- Create Rpm for Mandriva- install in Archiving/Backup group* Tue Aug 15 2006 Gratien D'haese- remove webmin from spec file* Sun Jun 18 2006 Gratien D'haese- remove the perl pre-requisite (only needed if users want perl ADD_PERL=true)* Sun Oct 30 2005 Gratien D'haese- Config.sh became a config file instead of plain file- remove mtools from x86_64 Prereq list- added syslinux to x86_64 Prereq list- added OBDR to the description line- man page mkcdrec.8 saved as plain file and as gzip'ed file- remove all CVS directory for install- added Source1 and changed %setup* Sat Sep 10 2005 Gratien D'haese- add mkcdrec script* Wed Jun 23 2004 Guillaume Radde & Gratien D'haese- add support for IA64- add webmin module* Tue Jun 09  2004 Gratien D'haese- remove sfdisk, tinylogin and udpcp* Tue Jun 01  2004 Gratien D'haese- Updated Prereq list* Sat Jan 24  2004 Gratien D'haese- remove "cksfv*/src/cksfv" from binaries* Tue Nov 13 2003 Gratien D'haese- add contributions directory* Sun Sep 7 2003 Gratien D'haese- added doc/style to rpm* Mon May  5 2003 Michal Jaegermann- spec edits for sanity* Sat Feb 22 2003 Gratien D'haese - changed the rules for syslinux/isolinux* Sat Jan 10 2003 Gratien D'haese - finishing mkcdrec2.spec for our i386 binary RPM* Tue Dec 10 2002 Gratien D'haese - extending mkcdrec2.spec file* Sat Feb 09 2002 Gratien D'haese - initial draft of mkcdrec2.spec file and modified the original makerpms.sh   shell script from samba team.%prep%setup -n mkcdrec##%setup -n mkcdrec -a 1%buildmake -f Makefile.%{_boot_arch} build%installfind . -name CVS | xargs rm -Rfvmkdir -p $RPM_BUILD_ROOT%{_prefix}/busybox/appletsmkdir -p $RPM_BUILD_ROOT%{_prefix}/binmkdir -p $RPM_BUILD_ROOT%{_prefix}/contributionsmkdir -p $RPM_BUILD_ROOT%{_prefix}/modulesmkdir -p $RPM_BUILD_ROOT%{_prefix}/scripts/messagesmkdir -p $RPM_BUILD_ROOT%{_prefix}/docmkdir -p $RPM_BUILD_ROOT%{_prefix}/doc/stylemkdir -p $RPM_BUILD_ROOT%{_prefix}/doc/imagesmkdir -p $RPM_BUILD_ROOT%{_prefix}/usrmkdir -p $RPM_BUILD_ROOT%{_prefix}/etcmkdir -p $RPM_BUILD_ROOT%{_mandir}/man8for fname in busybox*/busybox  busybox*/busybox.links; do	install -m 755 $fname $RPM_BUILD_ROOT%{_prefix}/busyboxdoneinstall -m 755 busybox*/applets/install.sh $RPM_BUILD_ROOT%{_prefix}/busybox/appletsfor fname in  cutstream*/cutstream \ pastestream*/pastestream mediacheck/checkisomd5 mediacheck/implantisomd5do	install -m 755 $fname $RPM_BUILD_ROOT%{_prefix}/bindonefor fname in contributions/*.sh contributions/mkcdrec; do	install -m 755 $fname $RPM_BUILD_ROOT%{_prefix}/contributionsdonefor fname in scripts/messages/*; do	install -m 755 $fname $RPM_BUILD_ROOT%{_prefix}/scripts/messagesdonefor fname in `find scripts -type f`; do	install -m 755 $fname $RPM_BUILD_ROOT%{_prefix}/$fnamedonefor fname in modules/*; do	install -m 755 $fname $RPM_BUILD_ROOT%{_prefix}/modulesdonefor fname in `find etc -type d`; do	install -d -m 755  $fname $RPM_BUILD_ROOT%{_prefix}/$fnamedonefor fname in `find etc -type f`; do	install -m 755  $fname $RPM_BUILD_ROOT%{_prefix}/$fnamedonefor fname in `find usr -type d`; do	install -d -m 755  $fname $RPM_BUILD_ROOT%{_prefix}/$fnamedonefor fname in `find usr -type f`; do	install -m 755  $fname $RPM_BUILD_ROOT%{_prefix}/$fnamedonefor fname in `find . -type f -maxdepth 1`; do	install -m 755  $fname $RPM_BUILD_ROOT%{_prefix}/$fnamedoneinstall -m 755 doc/mkcdrec.8 $RPM_BUILD_ROOT%{_mandir}/man8gzip -c $RPM_BUILD_ROOT%{_mandir}/man8/mkcdrec.8 > \	$RPM_BUILD_ROOT%{_mandir}/man8/mkcdrec.8.gzfor file in \    $RPM_BUILD_ROOT%{_prefix}/.cvsignore \    $RPM_BUILD_ROOT%{_prefix}/COPYING \    $RPM_BUILD_ROOT%{_prefix}/Changelog \    $RPM_BUILD_ROOT%{_prefix}/README \; do rm -f $file ; done  %files%defattr(-,root,root)%doc Changelog README COPYING%doc %{_prefix}/doc%config %{_prefix}/Config.sh%{_prefix}/VERSION%{_prefix}/.config.bb%{_prefix}/busybox%{_prefix}/bin%{_prefix}/contributions%{_prefix}/scripts%{_prefix}/modules%{_prefix}/etc%{_prefix}/usr%{_prefix}/linuxrc%{_prefix}/linuxrc_find_and_prep_root%{_prefix}/linuxrc_post%{_prefix}/linuxrc_pre%{_prefix}/Makefile%{_prefix}/Makefile.new-powermac%{_prefix}/Makefile.x86%{_prefix}/Makefile.sparc%{_prefix}/Makefile.ia64%{_prefix}/Makefile.x86_64%{_mandir}/man8/*%postinstall -m 750 %{_prefix}/contributions/mkcdrec /usr/sbin/mkcdrec%postun# rm the mkcdrec wrapperrm -f /usr/sbin/mkcdrec