X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=dump.spec;h=15899b1f33ec1e781728d5e740fd68a23c9a0254;hb=4f94452b3d04736ed24c99d1f267853f818528d5;hp=2a2b793462bfff074ab3af62a7d6b1df9a912b70;hpb=08ebf8d7df645851cb5597fd7f755551655c5aa8;p=dump.git diff --git a/dump.spec b/dump.spec index 2a2b793..15899b1 100644 --- a/dump.spec +++ b/dump.spec @@ -1,10 +1,10 @@ Summary: Programs for backing up and restoring filesystems. Name: dump -Version: 0.4b9 +Version: 0.4b18 Release: 1 Copyright: UCB Group: Applications/Archiving -Source: http://perso.cybercable.fr/pop/dump/dump-%{version}.tar.gz +Source: http://sourceforge.net/download.php/dump/dump-%{version}.tar.gz Requires: rmt BuildRoot: /var/tmp/%{name}-root @@ -29,12 +29,39 @@ 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: Programs for backing up and restoring filesystems. +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 %build -%configure --with-binmode=6755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --enable-rmt +./configure --prefix=/usr --with-binmode=0755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --enable-static --enable-readline + +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 --prefix=/usr --with-binmode=0755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --enable-rmt --enable-readline make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts" @@ -43,12 +70,17 @@ rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/sbin mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/man/man8 -make install BINDIR=$RPM_BUILD_ROOT/sbin MANDIR=${RPM_BUILD_ROOT}%{_prefix}/man/man8 +make install BINDIR=$RPM_BUILD_ROOT/sbin MANDIR=${RPM_BUILD_ROOT}%{_prefix}/man/man8 BINOWNER=$(id -un) BINGRP=$(id -gn) MANOWNER=$(id -un) MANGRP=$(id -gn) + +cp dump/dump.static $RPM_BUILD_ROOT/sbin +cp restore/restore.static $RPM_BUILD_ROOT/sbin { cd $RPM_BUILD_ROOT strip ./sbin/* || : ln -sf dump ./sbin/rdump + ln -sf dump.static ./sbin/rdump.static ln -sf restore ./sbin/rrestore + ln -sf restore.static ./sbin/rrestore.static chmod ug-s ./sbin/rmt mkdir -p ./etc > ./etc/dumpdates @@ -60,24 +92,61 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) -%doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README THANKS TODO dump.lsm +%doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO dump.lsm %attr(0664,root,disk) %config(noreplace) /etc/dumpdates -%attr(6755,root,tty) /sbin/dump +%attr(0755,root,tty) /sbin/dump /sbin/rdump -%attr(6755,root,tty) /sbin/restore +%attr(0755,root,tty) /sbin/restore /sbin/rrestore -%{_prefix}/man/man8/dump.8 -%{_prefix}/man/man8/rdump.8 -%{_prefix}/man/man8/restore.8 -%{_prefix}/man/man8/rrestore.8 +%{_prefix}/man/man8/dump.* +%{_prefix}/man/man8/rdump.* +%{_prefix}/man/man8/restore.* +%{_prefix}/man/man8/rrestore.* %files -n rmt %defattr(-,root,root) %attr(0755,root,root) /sbin/rmt /etc/rmt -%{_prefix}/man/man8/rmt.8 +%{_prefix}/man/man8/rmt.* + +%files -n dump-static +%defattr(-,root,root) +%attr(0755,root,tty) /sbin/dump.static +/sbin/rdump.static +%attr(0755,root,tty) /sbin/restore.static +/sbin/rrestore.static %changelog +* Thu Jun 30 2000 Stelian Pop +- dump 0.4b18 released, first 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. + +* Thu Mar 2 2000 Stelian Pop +- dump 0.4b15 released, first packaging. + +* Thu Feb 10 2000 Stelian Pop +- dump 0.4b14 released, first packaging. + +* Fri Jan 21 2000 Stelian Pop +- dump 0.4b13 released, first packaging. + +* Fri Jan 8 2000 Stelian Pop +- dump 0.4b12 released, first packaging. + +* Sun Dec 5 1999 Stelian Pop +- dump 0.4b11 released, first packaging. + +* 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.