]> git.wh0rd.org - dump.git/blame - dump.spec
Only level 0 and no -u when dumping a subdirectory
[dump.git] / dump.spec
CommitLineData
c154548c
SP
1Summary: Programs for backing up and restoring filesystems.
2Name: dump
8cca05cc 3Version: 0.4b18
c154548c
SP
4Release: 1
5Copyright: UCB
6Group: Applications/Archiving
ebcbe7f6 7Source: http://sourceforge.net/download.php/dump/dump-%{version}.tar.gz
c154548c
SP
8Requires: rmt
9BuildRoot: /var/tmp/%{name}-root
10
11%description
12The dump package contains both dump and restore. Dump examines files in
13a filesystem, determines which ones need to be backed up, and copies
14those files to a specified disk, tape or other storage medium. The
15restore command performs the inverse function of dump; it can restore a
16full backup of a filesystem. Subsequent incremental backups can then be
17layered on top of the full backup. Single files and directory subtrees
18may also be restored from full or partial backups.
19
20Install dump if you need a system for both backing up filesystems and
21restoring filesystems after backups.
22
23%package -n rmt
24Summary: Provides certain programs with access to remote tape devices.
25Group: Applications/Archiving
26
27%description -n rmt
28The rmt utility provides remote access to tape devices for programs
29like dump (a filesystem backup program), restore (a program for
30restoring files from a backup) and tar (an archiving program).
31
dc8d1876
SP
32%package -n dump-static
33Summary: Programs for backing up and restoring filesystems.
34Group: Applications/Archiving
35
36%description -n dump-static
37The dump package contains both dump and restore. Dump examines files in
38a filesystem, determines which ones need to be backed up, and copies
39those files to a specified disk, tape or other storage medium. The
40restore command performs the inverse function of dump; it can restore a
41full backup of a filesystem. Subsequent incremental backups can then be
42layered on top of the full backup. Single files and directory subtrees
43may also be restored from full or partial backups.
44
45Install dump if you need a system for both backing up filesystems and
46restoring filesystems after backups.
47
48This packages contains statically linked versions of dump and restore.
49
c154548c
SP
50%prep
51%setup -q
52
53%build
54
093ed98c 55./configure --prefix=/usr --with-binmode=0755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --enable-static --enable-readline
dc8d1876
SP
56
57make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
58
59mv dump/dump dump/dump.static
60mv restore/restore restore/restore.static
61
62make distclean
63
882090d1 64./configure --prefix=/usr --with-binmode=0755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --enable-rmt --enable-readline
c154548c
SP
65
66make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
67
68%install
69rm -rf $RPM_BUILD_ROOT
70mkdir -p $RPM_BUILD_ROOT/sbin
71mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/man/man8
72
6dda05e4 73make 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)
c154548c 74
dc8d1876
SP
75cp dump/dump.static $RPM_BUILD_ROOT/sbin
76cp restore/restore.static $RPM_BUILD_ROOT/sbin
77
c154548c
SP
78{ cd $RPM_BUILD_ROOT
79 strip ./sbin/* || :
80 ln -sf dump ./sbin/rdump
dc8d1876 81 ln -sf dump.static ./sbin/rdump.static
c154548c 82 ln -sf restore ./sbin/rrestore
dc8d1876 83 ln -sf restore.static ./sbin/rrestore.static
c154548c
SP
84 chmod ug-s ./sbin/rmt
85 mkdir -p ./etc
86 > ./etc/dumpdates
87 ln -sf ../sbin/rmt ./etc/rmt
88}
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
93%files
94%defattr(-,root,root)
d8476fa5 95%doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO dump.lsm
c154548c 96%attr(0664,root,disk) %config(noreplace) /etc/dumpdates
882090d1 97%attr(0755,root,tty) /sbin/dump
c154548c 98/sbin/rdump
882090d1 99%attr(0755,root,tty) /sbin/restore
c154548c 100/sbin/rrestore
30a43325
SP
101%{_prefix}/man/man8/dump.*
102%{_prefix}/man/man8/rdump.*
103%{_prefix}/man/man8/restore.*
104%{_prefix}/man/man8/rrestore.*
c154548c
SP
105
106%files -n rmt
107%defattr(-,root,root)
108%attr(0755,root,root) /sbin/rmt
109/etc/rmt
30a43325 110%{_prefix}/man/man8/rmt.*
c154548c 111
dc8d1876
SP
112%files -n dump-static
113%defattr(-,root,root)
882090d1 114%attr(0755,root,tty) /sbin/dump.static
dc8d1876 115/sbin/rdump.static
882090d1 116%attr(0755,root,tty) /sbin/restore.static
dc8d1876
SP
117/sbin/rrestore.static
118
c154548c 119%changelog
8cca05cc
SP
120* Thu Jun 30 2000 Stelian Pop <pop@cybercable.fr>
121- dump 0.4b18 released, first packaging.
122
ac443b63
SP
123* Thu Jun 1 2000 Stelian Pop <pop@cybercable.fr>
124- dump 0.4b17 released, first packaging.
125
126* Sat Mar 11 2000 Stelian Pop <pop@cybercable.fr>
107a347c
SP
127- dump 0.4b16 released, first packaging.
128
2f7e72ce
SP
129* Thu Mar 2 2000 Stelian Pop <pop@cybercable.fr>
130- dump 0.4b15 released, first packaging.
131
688653ea
SP
132* Thu Feb 10 2000 Stelian Pop <pop@cybercable.fr>
133- dump 0.4b14 released, first packaging.
134
d4b74b5c
SP
135* Fri Jan 21 2000 Stelian Pop <pop@cybercable.fr>
136- dump 0.4b13 released, first packaging.
137
0d0bc326 138* Fri Jan 8 2000 Stelian Pop <pop@cybercable.fr>
df172bbb
SP
139- dump 0.4b12 released, first packaging.
140
cf9aab8e
SP
141* Sun Dec 5 1999 Stelian Pop <pop@cybercable.fr>
142- dump 0.4b11 released, first packaging.
143
c930abff
SP
144* Sun Nov 21 1999 Stelian Pop <pop@cybercable.fr>
145- dump 0.4b10 released, first packaging.
146
dc8d1876
SP
147* Thu Nov 11 1999 Stelian Pop <pop@cybercable.fr>
148- make static versions also for rescue purposes.
149
08ebf8d7
SP
150* Wed Nov 5 1999 Stelian Pop <pop@cybercable.fr>
151- dump 0.4b9 released, first packaging.
152
c154548c
SP
153* Wed Nov 3 1999 Stelian Pop <pop@cybercable.fr>
154- dump 0.4b8 released, first packaging.
155
156* Thu Oct 8 1999 Stelian Pop <pop@cybercable.fr>
157- dump 0.4b7 released, first packaging.
158
159* Thu Sep 30 1999 Stelian Pop <pop@cybercable.fr>
160- dump 0.4b6 released, first packaging.
161
162* Fri Sep 10 1999 Jeff Johnson <jbj@redhat.com>
163- recompile with e2fsprogs = 1.15 (#4962).
164
165* Sat Jul 31 1999 Jeff Johnson <jbj@redhat.com>
166- workaround egcs bug (#4281) that caused dump problems (#2989).
167- use sigjmp_buf, not jmp_buf (#3260).
168- invoke /etc/rmt (instead of rmt) like other unices. (#3272).
169- use glibc21 err/glob rather than the internal compatibility routines.
170- wire $(OPT) throughout Makefile's.
171- fix many printf problems, mostly lint clean.
172- merge SuSE, Debian and many OpenBSD fixes.
173
174* Thu Mar 25 1999 Jeff Johnson <jbj@redhat.com>
175- remove setuid/setgid bits from /sbin/rmt (dump/restore are OK).
176
177* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
178- auto rebuild in the new build environment (release 6)
179
180* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
181- strip binaries.
182
183* Thu Mar 18 1999 Jeff Johnson <jbj@redhat.com>
184- Fix dangling symlinks (#1551).
185
186* Wed Mar 17 1999 Michael Maher <mike@redhat.com>
187- Top O' the morning, build root's fixed for man pages.
188
189* Fri Feb 19 1999 Preston Brown <pbrown@redhat.com>
190- upgraded to dump 0.4b4, massaged patches.
191
192* Tue Feb 02 1999 Ian A Cameron <I.A.Cameron@open.ac.uk>
193- added patch from Derrick J Brashear for traverse.c to stop bread errors
194
195* Wed Jan 20 1999 Jeff Johnson <jbj@redhat.com>
196- restore original 6755 root.tty to dump/restore, defattr did tty->root (#684).
197- mark /etc/dumpdates as noreplace.
198
199* Tue Jul 14 1998 Jeff Johnson <jbj@redhat.com>
200- add build root.
201
202* Tue May 05 1998 Prospector System <bugs@redhat.com>
203- translations modified for de, fr, tr
204
205* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
206- added a patch for resolving linux/types.h and sys/types.h conflicts
207
208* Wed Dec 31 1997 Erik Troan <ewt@redhat.com>
209- added prototype of llseek() so dump would work on large partitions
210
211* Thu Oct 30 1997 Donnie Barnes <djb@redhat.com>
212- made all symlinks relative instead of absolute
213
214* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
215- built against glibc
216
217* Thu Mar 06 1997 Michael K. Johnson <johnsonm@redhat.com>
218- Moved rmt to its own package.
219
220* Tue Feb 11 1997 Michael Fulbright <msf@redhat.com>
221- Added endian cleanups for SPARC
222
223* Fri Feb 07 1997 Michael K. Johnson <johnsonm@redhat.com>
224- Made /etc/dumpdates writeable by group disk.