diff --git a/.cvsignore b/.cvsignore index e69de29..86e8428 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +dump-0.4b19.tar.gz diff --git a/dump.spec b/dump.spec new file mode 100644 index 0000000..295f5be --- /dev/null +++ b/dump.spec @@ -0,0 +1,287 @@ +%define _sbindir /sbin +# XXX --enable-kerberos needs krcmd +%define myoptions --with-binmode=6755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --with-dumpdates="%{_sysconfdir}/dumpdates" --enable-readline + +Summary: Programs for backing up and restoring filesystems. +Name: dump +Version: 0.4b19 +Release: 4 +Copyright: UCB +Group: Applications/Archiving +Source: http://sourceforge.net/download.php/dump/dump-%{version}.tar.gz +Patch0: dump-0.4b19-bigfile.patch +Requires: rmt +BuildRoot: %{_tmppath}/%{name}-root + +%description +The dump package contains both dump and restore. Dump examines files in +a filesystem, determines which ones need to be backed up, and copies +those files to a specified disk, tape or other storage medium. The +restore command performs the inverse function of dump; it can restore a +full backup of a filesystem. Subsequent incremental backups can then be +layered on top of the full backup. Single files and directory subtrees +may also be restored from full or partial backups. + +Install dump if you need a system for both backing up filesystems and +restoring filesystems after backups. + +%package -n rmt +Summary: Provides certain programs with access to remote tape devices. +Group: Applications/Archiving + +%description -n rmt +The rmt utility provides remote access to tape devices for programs +like dump (a filesystem backup program), restore (a program for +restoring files from a backup) and tar (an archiving program). + +%package -n dump-static +Summary: Statically linked versions of dump and restore. +Group: Applications/Archiving + +%description -n dump-static +The dump package contains both dump and restore. Dump examines files in +a filesystem, determines which ones need to be backed up, and copies +those files to a specified disk, tape or other storage medium. The +restore command performs the inverse function of dump; it can restore a +full backup of a filesystem. Subsequent incremental backups can then be +layered on top of the full backup. Single files and directory subtrees +may also be restored from full or partial backups. + +Install dump if you need a system for both backing up filesystems and +restoring filesystems after backups. + +This packages contains statically linked versions of dump and restore. + +%prep +%setup -q +%patch0 -p1 -b .bigfile + +%build +%configure %{myoptions} --enable-static + +%ifarch alpha +RPM_OPT_FLAGS="" +%endif +make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts" + +mv dump/dump dump/dump.static +mv restore/restore restore/restore.static + +make distclean + +%configure %{myoptions} --enable-rmt + +make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts" + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{_sbindir} +mkdir -p %{buildroot}%{_mandir}/man8 + +%makeinstall BINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir}/man8 BINOWNER=$(id -un) BINGRP=$(id -gn) MANOWNER=$(id -un) MANGRP=$(id -gn) + +cp dump/dump.static %{buildroot}%{_sbindir} +cp restore/restore.static %{buildroot}%{_sbindir} + +{ cd %{buildroot} + strip .%{_sbindir}/* || : + ln -sf dump .%{_sbindir}/rdump + ln -sf dump.static .%{_sbindir}/rdump.static + ln -sf restore .%{_sbindir}/rrestore + ln -sf restore.static .%{_sbindir}/rrestore.static + chmod ug-s .%{_sbindir}/rmt + mkdir -p .%{_sysconfdir} + > .%{_sysconfdir}/dumpdates + ln -sf ..%{_sbindir}/rmt .%{_sysconfdir}/rmt +} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO +%doc dump.lsm +%attr(0664,root,disk) %config(noreplace) %{_sysconfdir}/dumpdates +%attr(0755,root,root) %{_sbindir}/dump +%{_sbindir}/rdump +%attr(0755,root,root) %{_sbindir}/restore +%{_sbindir}/rrestore +%{_mandir}/man8/dump.* +%{_mandir}/man8/rdump.* +%{_mandir}/man8/restore.* +%{_mandir}/man8/rrestore.* + +%files -n rmt +%defattr(-,root,root) +%attr(0755,root,root) %{_sbindir}/rmt +%{_sysconfdir}/rmt +%{_mandir}/man8/rmt.* + +%files -n dump-static +%defattr(-,root,root) +%attr(0755,root,root) %{_sbindir}/dump.static +%{_sbindir}/rdump.static +%attr(0755,root,root) %{_sbindir}/restore.static +%{_sbindir}/rrestore.static + +%changelog +* Wed Aug 30 2000 Matt Wilson +- rebuild to cope with glibc locale binary incompatibility, again + +* Wed Aug 30 2000 Preston Brown +- fix for dumping files between 2 and 4 gigs (#16466) + +* Mon Aug 21 2000 Matt Wilson +- don't use -O2 on alpha because of compiler ICE + +* Sun Aug 20 2000 Jeff Johnson +- update to 0.4b19. + +* Thu Aug 17 2000 Jeff Johnson +- summaries from specspo. + +* Wed Aug 16 2000 Erik Troan +- support LABEL= in fstab + +* Sat Jul 22 2000 Bill Nottingham +- if dump/restore aren't set(u|g)id, they don't need group tty (#12670) + +* Wed Jul 19 2000 Jakub Jelinek +- rebuild to cope with glibc locale binary incompatibility + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Tue Jun 27 2000 Preston Brown +- whoops I had dump commented out of the file list. fixed. +- dropped suid bits on the static binaries. +- fix char buffer size issue (#11880) + +* Mon Jun 19 2000 Preston Brown +- dropped SUID bits + +* Tue Jun 6 2000 Jeff Johnson +- update to 0.4b17. +- FHS packaging. + +* Thu Jun 1 2000 Stelian Pop +- dump 0.4b17 released, first packaging. + +* Sat Mar 11 2000 Stelian Pop +- dump 0.4b16 released, first packaging. + +* Tue Mar 7 2000 Jeff Johnson +- use posix signal handling to preserve dump functionality with libc5. + +* Thu Mar 2 2000 Bill Nottingham +- update to 0.4b15 + +* Thu Feb 10 2000 Jeff Johnson +- dump -0ufB /dev/ftape 1638000 /mnt2 fails to use /mnt2 as tape device (#8036) + +* Thu Feb 10 2000 Stelian Pop +- dump 0.4b14 released, first packaging. + +* Wed Feb 9 2000 Jeff Johnson +- compress man pages. + +* Thu Jan 27 2000 Jeff Johnson +- update to 0.4b13. + +* Fri Jan 21 2000 Stelian Pop +- dump 0.4b13 released, first packaging. + +* Mon Jan 10 2000 Jeff Johnson +- dump 0.4b12 released, first packaging. + +* Sun Dec 5 1999 Stelian Pop +- dump 0.4b11 released, first packaging. + +* Sat Nov 27 1999 Jeff Johnson +- intergrate Stelian's fixes (Thanks!). + +* Sun Nov 21 1999 Stelian Pop +- dump 0.4b10 released, first packaging. + +* Thu Nov 11 1999 Stelian Pop +- make static versions also for rescue purposes. + +* Wed Nov 5 1999 Stelian Pop +- dump 0.4b9 released, first packaging. + +* Wed Nov 3 1999 Stelian Pop +- dump 0.4b8 released, first packaging. + +* Thu Oct 8 1999 Stelian Pop +- dump 0.4b7 released, first packaging. + +* Thu Sep 30 1999 Stelian Pop +- dump 0.4b6 released, first packaging. + +* Fri Sep 10 1999 Jeff Johnson +- recompile with e2fsprogs = 1.15 (#4962). + +* Sat Jul 31 1999 Jeff Johnson +- workaround egcs bug (#4281) that caused dump problems (#2989). +- use sigjmp_buf, not jmp_buf (#3260). +- invoke /etc/rmt (instead of rmt) like other unices. (#3272). +- use glibc21 err/glob rather than the internal compatibility routines. +- wire $(OPT) throughout Makefile's. +- fix many printf problems, mostly lint clean. +- merge SuSE, Debian and many OpenBSD fixes. + +* Thu Mar 25 1999 Jeff Johnson +- remove setuid/setgid bits from /sbin/rmt (dump/restore are OK). + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 6) + +* Fri Mar 19 1999 Jeff Johnson +- strip binaries. + +* Thu Mar 18 1999 Jeff Johnson +- Fix dangling symlinks (#1551). + +* Wed Mar 17 1999 Michael Maher +- Top O' the morning, build root's fixed for man pages. + +* Fri Feb 19 1999 Preston Brown +- upgraded to dump 0.4b4, massaged patches. + +* Tue Feb 02 1999 Ian A Cameron +- added patch from Derrick J Brashear for traverse.c to stop bread errors + +* Wed Jan 20 1999 Jeff Johnson +- restore original 6755 root.tty to dump/restore, defattr did tty->root (#684). +- mark /etc/dumpdates as noreplace. + +* Tue Jul 14 1998 Jeff Johnson +- add build root. + +* Tue May 05 1998 Prospector System +- translations modified for de, fr, tr + +* Thu Apr 30 1998 Cristian Gafton +- added a patch for resolving linux/types.h and sys/types.h conflicts + +* Wed Dec 31 1997 Erik Troan +- added prototype of llseek() so dump would work on large partitions + +* Thu Oct 30 1997 Donnie Barnes +- made all symlinks relative instead of absolute + +* Thu Jul 10 1997 Erik Troan +- built against glibc + +* Thu Mar 06 1997 Michael K. Johnson +- Moved rmt to its own package. + +* Tue Feb 11 1997 Michael Fulbright +- Added endian cleanups for SPARC + +* Fri Feb 07 1997 Michael K. Johnson +- Made /etc/dumpdates writeable by group disk. diff --git a/sources b/sources index e69de29..f94df2c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d58e1433d0584eac3e9ae3cb6b9e8a3f dump-0.4b19.tar.gz