File: dump.spec

package info (click to toggle)
dump 0.4b41-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,356 kB
  • ctags: 1,987
  • sloc: ansic: 17,610; sh: 3,435; makefile: 213; sed: 5
file content (309 lines) | stat: -rw-r--r-- 10,073 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
%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"

Summary: Programs for backing up and restoring ext2/ext3 filesystems.
Name: dump
Version: 0.4b41
Release: 1
License: BSD
URL: http://dump.sourceforge.net
Group: Applications/Archiving
Source: dump-%{version}.tar.gz
BuildPrereq: e2fsprogs-devel >= 1.18
BuildPrereq: libtermcap-devel, readline-devel, ncurses-devel
BuildPrereq: zlib-devel, bzip2-devel
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 package contains statically linked versions of dump and restore.

%prep
%setup -q

%build
%configure %{myoptions} --enable-static -disable-rmt

%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}

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 SBINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir}/man8 BINOWNER=$(id -un) BINGRP=$(id -gn) MANOWNER=$(id -un) MANGRP=$(id -gn)
mkdir -p $RPM_BUILD_ROOT/usr/sbin

cp dump/dump.static %{buildroot}%{_sbindir}
cp restore/restore.static %{buildroot}%{_sbindir}

pushd $RPM_BUILD_ROOT
  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
  # quick workaround :)
  mv sbin/* usr/sbin/
  mv usr/sbin/*static sbin/
  mv usr/sbin/rmt sbin/
  # somehow, rpm didn't strip these...
  strip usr/sbin/* sbin/* || :  
popd

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO
%doc dump.lsm examples
%attr(0664,root,disk)	%config(noreplace) %{_sysconfdir}/dumpdates
%attr(0755,root,root)	/usr/sbin/dump
/usr/sbin/rdump
%attr(0755,root,root)	/usr/sbin/restore
/usr/sbin/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
* Mon Jan  2 2006 Stelian Pop <stelian@popies.net>
- dump 0.4b41 released, first packaging.

* Fri Jan 21 2005 Stelian Pop <stelian@popies.net>
- dump 0.4b39 released, first packaging.

* Fri Jan  7 2005 Stelian Pop <stelian@popies.net>
- dump 0.4b38 released, first packaging.

* Wed Jul  7 2004 Stelian Pop <stelian@popies.net>
- dump 0.4b37 released, first packaging.

* Wed Apr 21 2004 Stelian Pop <stelian@popies.net>
- dump 0.4b36 released, first packaging.

* Sun Dec 21 2003 Stelian Pop <stelian@popies.net>
- dump 0.4b35 released, first packaging.

* Fri Apr 18 2003 Stelian Pop <stelian@popies.net>
- dump 0.4b34 released, first packaging.

* Mon Feb 10 2003 Stelian Pop <stelian@popies.net>
- dump 0.4b33 released, first packaging.

* Fri Nov 15 2002 Stelian Pop <stelian@popies.net>
- dump 0.4b32 released, first packaging.

* Tue Jul 30 2002 Stelian Pop <stelian@popies.net>
- dump 0.4b31 released, first packaging.

* Thu Jul 25 2002 Stelian Pop <stelian@popies.net>
- dump 0.4b30 released, first packaging.

* Sat Jun  8 2002 Stelian Pop <stelian@popies.net>
- dump 0.4b29 released, first packaging.

* Fri Apr 12 2002 Stelian Pop <stelian@popies.net>
- dump 0.4b28 released, first packaging.

* Fri Feb 15 2002 Stelian Pop <stelian@popies.net>
- dump 0.4b27 released, first packaging.

* Mon Jan  7 2002 Stelian Pop <stelian@popies.net>
- dump 0.4b26 released, first packaging.

* Sat Nov 17 2001 Stelian Pop <stelian@popies.net>
- dump 0.4b25 released, first packaging.

* Wed Sep 12 2001 Stelian Pop <stelian@popies.net>
- dump 0.4b24 released, first packaging.

* Fri Jul 20 2001 Stelian Pop <stelian@popies.net>
- dump 0.4b23 released, first packaging.

* Sat May 12 2001 Stelian Pop <stelian@popies.net>
- dump 0.4b22 released, first packaging.

* Sat Jan 30 2001 Stelian Pop <stelian@popies.net>
- dump 0.4b21 released, first packaging.

* Fri Nov 10 2000 Stelian Pop <stelian@popies.net>
- dump 0.4b20 released, first packaging.

* Sun Aug 20 2000 Stelian Pop <stelian@popies.net>
- dump 0.4b19 released, first packaging.

* Thu Jun 30 2000 Stelian Pop <stelian@popies.net>
- dump 0.4b18 released, first packaging.

* Thu Jun  1 2000 Stelian Pop <stelian@popies.net>
- dump 0.4b17 released, first packaging.

* Sat Mar 11 2000 Stelian Pop <stelian@popies.net>
- dump 0.4b16 released, first packaging.

* Thu Mar  2 2000 Stelian Pop <stelian@popies.net>
- dump 0.4b15 released, first packaging.

* Thu Feb 10 2000 Stelian Pop <stelian@popies.net>
- dump 0.4b14 released, first packaging.

* Fri Jan 21 2000 Stelian Pop <stelian@popies.net>
- dump 0.4b13 released, first packaging.

* Fri Jan 8 2000 Stelian Pop <stelian@popies.net>
- dump 0.4b12 released, first packaging.

* Sun Dec 5 1999 Stelian Pop <stelian@popies.net>
- dump 0.4b11 released, first packaging.

* Sun Nov 21 1999 Stelian Pop <stelian@popies.net>
- dump 0.4b10 released, first packaging.

* Thu Nov 11 1999 Stelian Pop <stelian@popies.net>
- make static versions also for rescue purposes.

* Wed Nov 5 1999 Stelian Pop <stelian@popies.net>
- dump 0.4b9 released, first packaging.

* Wed Nov 3 1999 Stelian Pop <stelian@popies.net>
- dump 0.4b8 released, first packaging.

* Thu Oct 8 1999 Stelian Pop <stelian@popies.net>
- dump 0.4b7 released, first packaging.

* Thu Sep 30 1999 Stelian Pop <stelian@popies.net>
- dump 0.4b6 released, first packaging.

* Fri Sep 10 1999 Jeff Johnson <jbj@redhat.com>
- recompile with e2fsprogs = 1.15 (#4962).

* Sat Jul 31 1999 Jeff Johnson <jbj@redhat.com>
- 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 <jbj@redhat.com>
- remove setuid/setgid bits from /sbin/rmt (dump/restore are OK).

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 6)

* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
- strip binaries.

* Thu Mar 18 1999 Jeff Johnson <jbj@redhat.com>
- Fix dangling symlinks (#1551).

* Wed Mar 17 1999 Michael Maher <mike@redhat.com>
- Top O' the morning, build root's fixed for man pages.  

* Fri Feb 19 1999 Preston Brown <pbrown@redhat.com>
- upgraded to dump 0.4b4, massaged patches.

* Tue Feb 02 1999 Ian A Cameron <I.A.Cameron@open.ac.uk>
- added patch from Derrick J Brashear for traverse.c to stop bread errors

* Wed Jan 20 1999 Jeff Johnson <jbj@redhat.com>
- restore original 6755 root.tty to dump/restore, defattr did tty->root (#684).
- mark /etc/dumpdates as noreplace.

* Tue Jul 14 1998 Jeff Johnson <jbj@redhat.com>
- add build root.

* Tue May 05 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
- added a patch for resolving linux/types.h and sys/types.h conflicts

* Wed Dec 31 1997 Erik Troan <ewt@redhat.com>
- added prototype of llseek() so dump would work on large partitions

* Thu Oct 30 1997 Donnie Barnes <djb@redhat.com>
- made all symlinks relative instead of absolute

* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
- built against glibc

* Thu Mar 06 1997 Michael K. Johnson <johnsonm@redhat.com>
- Moved rmt to its own package.

* Tue Feb 11 1997 Michael Fulbright <msf@redhat.com>
- Added endian cleanups for SPARC

* Fri Feb 07 1997 Michael K. Johnson <johnsonm@redhat.com> 
- Made /etc/dumpdates writeable by group disk.