]>
Commit | Line | Data |
---|---|---|
1 | %define _sbindir /sbin | |
2 | # XXX --enable-kerberos needs krcmd | |
3 | %define myoptions --with-binmode=6755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --with-dumpdates="%{_sysconfdir}/dumpdates" --enable-readline --enable-largefile --enable-qfa | |
4 | ||
5 | Summary: Programs for backing up and restoring ext2/ext3 filesystems. | |
6 | Name: dump | |
7 | Version: 0.4b26 | |
8 | Release: 1 | |
9 | License: BSD | |
10 | URL: http://dump.sourceforge.net | |
11 | Group: Applications/Archiving | |
12 | Source: http://download.sourceforge.net/dump/dump-%{version}.tar.gz | |
13 | BuildPrereq: e2fsprogs-devel >= 1.18, libtermcap-devel, readline-devel >= 4.1 | |
14 | Requires: rmt | |
15 | BuildRoot: %{_tmppath}/%{name}-root | |
16 | ||
17 | %description | |
18 | The dump package contains both dump and restore. Dump examines files | |
19 | in a filesystem, determines which ones need to be backed up, and | |
20 | copies those files to a specified disk, tape, or other storage medium. | |
21 | The restore command performs the inverse function of dump; it can | |
22 | restore a full backup of a filesystem. Subsequent incremental backups | |
23 | can then be layered on top of the full backup. Single files and | |
24 | directory subtrees may also be restored from full or partial backups. | |
25 | ||
26 | Install dump if you need a system for both backing up filesystems and | |
27 | restoring filesystems after backups. | |
28 | ||
29 | %package -n rmt | |
30 | Summary: Provides certain programs with access to remote tape devices. | |
31 | Group: Applications/Archiving | |
32 | ||
33 | %description -n rmt | |
34 | The rmt utility provides remote access to tape devices for programs | |
35 | like dump (a filesystem backup program), restore (a program for | |
36 | restoring files from a backup), and tar (an archiving program). | |
37 | ||
38 | %package -n dump-static | |
39 | Summary: Statically linked versions of dump and restore. | |
40 | Group: Applications/Archiving | |
41 | ||
42 | %description -n dump-static | |
43 | The dump package contains both dump and restore. Dump examines files in | |
44 | a filesystem, determines which ones need to be backed up, and copies | |
45 | those files to a specified disk, tape, or other storage medium. The | |
46 | restore command performs the inverse function of dump; it can restore a | |
47 | full backup of a filesystem. Subsequent incremental backups can then be | |
48 | layered on top of the full backup. Single files and directory subtrees | |
49 | may also be restored from full or partial backups. | |
50 | ||
51 | Install dump if you need a system for both backing up filesystems and | |
52 | restoring filesystems after backups. | |
53 | ||
54 | This package contains statically linked versions of dump and restore. | |
55 | ||
56 | %prep | |
57 | %setup -q | |
58 | ||
59 | %build | |
60 | %configure %{myoptions} --enable-static | |
61 | ||
62 | %ifarch alpha | |
63 | RPM_OPT_FLAGS="" | |
64 | %endif | |
65 | make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes \ | |
66 | -Wmissing-prototypes -Wno-char-subscripts" | |
67 | ||
68 | mv dump/dump dump/dump.static | |
69 | mv restore/restore restore/restore.static | |
70 | ||
71 | make distclean | |
72 | ||
73 | %configure %{myoptions} --enable-rmt | |
74 | ||
75 | make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes \ | |
76 | -Wmissing-prototypes -Wno-char-subscripts" | |
77 | ||
78 | %install | |
79 | rm -rf %{buildroot} | |
80 | mkdir -p %{buildroot}%{_sbindir} | |
81 | mkdir -p %{buildroot}%{_mandir}/man8 | |
82 | ||
83 | %makeinstall SBINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir}/man8 BINOWNER=$(id -un) BINGRP=$(id -gn) MANOWNER=$(id -un) MANGRP=$(id -gn) | |
84 | mkdir -p $RPM_BUILD_ROOT/usr/sbin | |
85 | ||
86 | cp dump/dump.static %{buildroot}%{_sbindir} | |
87 | cp restore/restore.static %{buildroot}%{_sbindir} | |
88 | ||
89 | pushd $RPM_BUILD_ROOT | |
90 | ln -sf dump .%{_sbindir}/rdump | |
91 | ln -sf dump.static .%{_sbindir}/rdump.static | |
92 | ln -sf restore .%{_sbindir}/rrestore | |
93 | ln -sf restore.static .%{_sbindir}/rrestore.static | |
94 | chmod ug-s .%{_sbindir}/rmt | |
95 | mkdir -p .%{_sysconfdir} | |
96 | > .%{_sysconfdir}/dumpdates | |
97 | ln -sf ..%{_sbindir}/rmt .%{_sysconfdir}/rmt | |
98 | # quick workaround :) | |
99 | mv sbin/* usr/sbin/ | |
100 | mv usr/sbin/*static sbin/ | |
101 | mv usr/sbin/rmt sbin/ | |
102 | # somehow, rpm didn't strip these... | |
103 | strip usr/sbin/* sbin/* || : | |
104 | popd | |
105 | ||
106 | %clean | |
107 | rm -rf %{buildroot} | |
108 | ||
109 | %files | |
110 | %defattr(-,root,root) | |
111 | %doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO | |
112 | %doc dump.lsm examples | |
113 | %attr(0664,root,disk) %config(noreplace) %{_sysconfdir}/dumpdates | |
114 | %attr(0755,root,root) /usr/sbin/dump | |
115 | /usr/sbin/rdump | |
116 | %attr(0755,root,root) /usr/sbin/restore | |
117 | /usr/sbin/rrestore | |
118 | %{_mandir}/man8/dump.* | |
119 | %{_mandir}/man8/rdump.* | |
120 | %{_mandir}/man8/restore.* | |
121 | %{_mandir}/man8/rrestore.* | |
122 | ||
123 | %files -n rmt | |
124 | %defattr(-,root,root) | |
125 | %attr(0755,root,root) %{_sbindir}/rmt | |
126 | %{_sysconfdir}/rmt | |
127 | %{_mandir}/man8/rmt.* | |
128 | ||
129 | %files -n dump-static | |
130 | %defattr(-,root,root) | |
131 | %attr(0755,root,root) %{_sbindir}/dump.static | |
132 | %{_sbindir}/rdump.static | |
133 | %attr(0755,root,root) %{_sbindir}/restore.static | |
134 | %{_sbindir}/rrestore.static | |
135 | ||
136 | %changelog | |
137 | * Mon Jan 7 2002 Stelian Pop <pop@noos.fr> | |
138 | - dump 0.4b26 released, first packaging. | |
139 | ||
140 | * Sat Nov 17 2001 Stelian Pop <pop@noos.fr> | |
141 | - dump 0.4b25 released, first packaging. | |
142 | ||
143 | * Wed Sep 12 2001 Stelian Pop <pop@noos.fr> | |
144 | - dump 0.4b24 released, first packaging. | |
145 | ||
146 | * Fri Jul 20 2001 Stelian Pop <pop@noos.fr> | |
147 | - dump 0.4b23 released, first packaging. | |
148 | ||
149 | * Sat May 12 2001 Stelian Pop <pop@noos.fr> | |
150 | - dump 0.4b22 released, first packaging. | |
151 | ||
152 | * Sat Jan 30 2001 Stelian Pop <pop@noos.fr> | |
153 | - dump 0.4b21 released, first packaging. | |
154 | ||
155 | * Fri Nov 10 2000 Stelian Pop <pop@noos.fr> | |
156 | - dump 0.4b20 released, first packaging. | |
157 | ||
158 | * Sun Aug 20 2000 Stelian Pop <pop@noos.fr> | |
159 | - dump 0.4b19 released, first packaging. | |
160 | ||
161 | * Thu Jun 30 2000 Stelian Pop <pop@noos.fr> | |
162 | - dump 0.4b18 released, first packaging. | |
163 | ||
164 | * Thu Jun 1 2000 Stelian Pop <pop@noos.fr> | |
165 | - dump 0.4b17 released, first packaging. | |
166 | ||
167 | * Sat Mar 11 2000 Stelian Pop <pop@noos.fr> | |
168 | - dump 0.4b16 released, first packaging. | |
169 | ||
170 | * Thu Mar 2 2000 Stelian Pop <pop@noos.fr> | |
171 | - dump 0.4b15 released, first packaging. | |
172 | ||
173 | * Thu Feb 10 2000 Stelian Pop <pop@noos.fr> | |
174 | - dump 0.4b14 released, first packaging. | |
175 | ||
176 | * Fri Jan 21 2000 Stelian Pop <pop@noos.fr> | |
177 | - dump 0.4b13 released, first packaging. | |
178 | ||
179 | * Fri Jan 8 2000 Stelian Pop <pop@noos.fr> | |
180 | - dump 0.4b12 released, first packaging. | |
181 | ||
182 | * Sun Dec 5 1999 Stelian Pop <pop@noos.fr> | |
183 | - dump 0.4b11 released, first packaging. | |
184 | ||
185 | * Sun Nov 21 1999 Stelian Pop <pop@noos.fr> | |
186 | - dump 0.4b10 released, first packaging. | |
187 | ||
188 | * Thu Nov 11 1999 Stelian Pop <pop@noos.fr> | |
189 | - make static versions also for rescue purposes. | |
190 | ||
191 | * Wed Nov 5 1999 Stelian Pop <pop@noos.fr> | |
192 | - dump 0.4b9 released, first packaging. | |
193 | ||
194 | * Wed Nov 3 1999 Stelian Pop <pop@noos.fr> | |
195 | - dump 0.4b8 released, first packaging. | |
196 | ||
197 | * Thu Oct 8 1999 Stelian Pop <pop@noos.fr> | |
198 | - dump 0.4b7 released, first packaging. | |
199 | ||
200 | * Thu Sep 30 1999 Stelian Pop <pop@noos.fr> | |
201 | - dump 0.4b6 released, first packaging. | |
202 | ||
203 | * Fri Sep 10 1999 Jeff Johnson <jbj@redhat.com> | |
204 | - recompile with e2fsprogs = 1.15 (#4962). | |
205 | ||
206 | * Sat Jul 31 1999 Jeff Johnson <jbj@redhat.com> | |
207 | - workaround egcs bug (#4281) that caused dump problems (#2989). | |
208 | - use sigjmp_buf, not jmp_buf (#3260). | |
209 | - invoke /etc/rmt (instead of rmt) like other unices. (#3272). | |
210 | - use glibc21 err/glob rather than the internal compatibility routines. | |
211 | - wire $(OPT) throughout Makefile's. | |
212 | - fix many printf problems, mostly lint clean. | |
213 | - merge SuSE, Debian and many OpenBSD fixes. | |
214 | ||
215 | * Thu Mar 25 1999 Jeff Johnson <jbj@redhat.com> | |
216 | - remove setuid/setgid bits from /sbin/rmt (dump/restore are OK). | |
217 | ||
218 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> | |
219 | - auto rebuild in the new build environment (release 6) | |
220 | ||
221 | * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com> | |
222 | - strip binaries. | |
223 | ||
224 | * Thu Mar 18 1999 Jeff Johnson <jbj@redhat.com> | |
225 | - Fix dangling symlinks (#1551). | |
226 | ||
227 | * Wed Mar 17 1999 Michael Maher <mike@redhat.com> | |
228 | - Top O' the morning, build root's fixed for man pages. | |
229 | ||
230 | * Fri Feb 19 1999 Preston Brown <pbrown@redhat.com> | |
231 | - upgraded to dump 0.4b4, massaged patches. | |
232 | ||
233 | * Tue Feb 02 1999 Ian A Cameron <I.A.Cameron@open.ac.uk> | |
234 | - added patch from Derrick J Brashear for traverse.c to stop bread errors | |
235 | ||
236 | * Wed Jan 20 1999 Jeff Johnson <jbj@redhat.com> | |
237 | - restore original 6755 root.tty to dump/restore, defattr did tty->root (#684). | |
238 | - mark /etc/dumpdates as noreplace. | |
239 | ||
240 | * Tue Jul 14 1998 Jeff Johnson <jbj@redhat.com> | |
241 | - add build root. | |
242 | ||
243 | * Tue May 05 1998 Prospector System <bugs@redhat.com> | |
244 | - translations modified for de, fr, tr | |
245 | ||
246 | * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com> | |
247 | - added a patch for resolving linux/types.h and sys/types.h conflicts | |
248 | ||
249 | * Wed Dec 31 1997 Erik Troan <ewt@redhat.com> | |
250 | - added prototype of llseek() so dump would work on large partitions | |
251 | ||
252 | * Thu Oct 30 1997 Donnie Barnes <djb@redhat.com> | |
253 | - made all symlinks relative instead of absolute | |
254 | ||
255 | * Thu Jul 10 1997 Erik Troan <ewt@redhat.com> | |
256 | - built against glibc | |
257 | ||
258 | * Thu Mar 06 1997 Michael K. Johnson <johnsonm@redhat.com> | |
259 | - Moved rmt to its own package. | |
260 | ||
261 | * Tue Feb 11 1997 Michael Fulbright <msf@redhat.com> | |
262 | - Added endian cleanups for SPARC | |
263 | ||
264 | * Fri Feb 07 1997 Michael K. Johnson <johnsonm@redhat.com> | |
265 | - Made /etc/dumpdates writeable by group disk. |