source: MondoRescue/trunk/mindi/mindi.spec @ 158

Last change on this file since 158 was 158, checked in by bcornec, 15 years ago

merge -r155:157 $SVN_M/branches/2.05

  • Property svn:keywords set to Id
File size: 12.9 KB
2# $Id: mindi.spec 158 2005-12-08 09:09:51Z bcornec $
4%define is_mandriva %(test -e /etc/mandriva-release && echo 1 || echo 0)
5%define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
6%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
7%define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
8%define is_redhat %(test -e /etc/redhat-release && echo 1 || echo 0)
10%define name    mindi
11%define version 1.04_berlios
12%define mrel    1
14%if %is_redhat
15%define src     %{name}-%{version}.tgz
16Group:          Applications/Archiving
17Autoreq:    0
20%if %is_mandrake
21%define src     %{name}-%{version}.tar.bz2
22Group:          Archiving/Backup
23Autoreqprov: no
26%if %is_mandriva
27%define src     %{name}-%{version}.tar.bz2
28Group:          Archiving/Backup
29Autoreqprov: no
32Summary:    Mindi creates emergency boot disks/CDs using your kernel, tools and modules
33Name:       %name
34Version:    %version
35Release:    %mrel
36License:    GPL
37Group:      System/Kernel and hardware
39Source:     %{src}
40BuildRoot:  %{_tmppath}/%{name}-%{version}
41Requires:   bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools, afio, which
42# Not on all systems
43#Conflicts: bonnie++
46Mindi takes your kernel, modules, tools and libraries, and puts them on N
47bootable disks (or 1 bootable CD image). You may then boot from the disks/CD
48and do system maintenance - e.g. format partitions, backup/restore data,
49verify packages, etc.
52%{__rm}  -rf $RPM_BUILD_ROOT
53%setup -n %name-%{version}
56%ifarch ia64
57%{__make} -f Makefile.parted2fdisk clean
58%{__make} -f Makefile.parted2fdisk
62export DONT_RELINK=1
64%{__rm} -rf $RPM_BUILD_ROOT
67%{__mkdir_p} $MINDIDIR $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_sysconfdir}/mindi $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT/%{_mandir}/man8
68%{__cp} deplist.txt $RPM_BUILD_ROOT%{_sysconfdir}/mindi/
69%{__cp} -af * $MINDIDIR
70%{__cp} -af mindi.8 $RPM_BUILD_ROOT/%{_mandir}/man8
72%ifarch ia64
73    %{__make} -f Makefile.parted2fdisk DEST=${MINDIDIR}/ install
74    %{__mv} $MINDIDIR/rootfs/bin/busybox-ia64 $MINDIDIR/rootfs/bin/busybox
75    %{__mv} $MINDIDIR/rootfs/sbin/parted2fdisk-ia64 $MINDIDIR/rootfs/sbin/parted2fdisk
77    %{__mv} $MINDIDIR/rootfs/bin/busybox-i386 $MINDIDIR/rootfs/bin/busybox
78    %{__mv} $MINDIDIR/rootfs/bin/ $MINDIDIR/rootfs/bin/
79    %{__ln_s} fdisk $MINDIDIR/rootfs/sbin/parted2fdisk
81%{__rm} -f $MINDIDIR/rootfs/bin/busybox-ia64 $MINDIDIR/rootfs/sbin/parted2fdisk-ia64 $MINDIDIR/rootfs/bin/busybox-i386 $MINDIDIR/rootfs/bin/
84# These are installed twice if not removed here
86( cd $MINDIDIR
90# Symlinks
92cd $RPM_BUILD_ROOT%{_sbindir}
93%{__ln_s} -f %{_datadir}/mindi/mindi .
94%{__ln_s} -f %{_datadir}/mindi/analyze-my-lvm .
95%ifarch ia64
96%{__ln_s} -f %{_datadir}/mindi/ .
100%{__rm} -rf $RPM_BUILD_ROOT
103%ifarch ia64
104    %{__mkdir_p} /usr/local/bin
105    if [ "`file /sbin/fdisk |grep 'LF 64-bit LSB executable'`" ] ; then
106        %{__cp} /sbin/fdisk /sbin/fdisk.mondosav
107        %{__mv} /sbin/fdisk /usr/local/bin/fdisk
108        %{__ln_s} -f /usr/share/mindi/ /sbin/fdisk
109        echo "Warning: you fdisk binary is now under /usr/local/bin"
110    fi
115%config(noreplace) %{_sysconfdir}/mindi/deplist.txt
117%attr(755,root,root) %{_sbindir}/mindi
118%attr(755,root,root) %{_sbindir}/analyze-my-lvm
121%attr(755,root,root) %{_datadir}/mindi/analyze-my-lvm
122%attr(755,root,root) %{_datadir}/mindi/mindi
123%attr(755,root,root) %{_datadir}/mindi/
124%attr(755,root,root) %{_datadir}/mindi/aux-tools/sbin/*
125%attr(755,root,root) %{_datadir}/mindi/rootfs/bin/*
126%attr(755,root,root) %{_datadir}/mindi/rootfs/sbin/*
129* Tue Sep 06 2005 Bruno Cornec <> 1.04_berlios
130- Merge of patches mentionned on mondo ML + ia64 updates
131- Fix bugs when called alone
133* Tue May 03 2005 Hugo Rabson <> 1.04_cvs_20050503
134- supports exec-shield
136* Wed Aug 04 2004 Hugo Rabson <> 1.03
137- better support of SLES 8
139* Mon Jun 28 2004 Hugo Rabson <> 1.02
140- better kernel-level logging
141- added ACL, xattr binaries to deplist.txt
142- fixed obscure bug which occasionally stopped mindi from correctly finding
143  and documenting all LVM2 LVM-on-RAID volumes
145* Fri Jun 25 2004 Hugo Rabson <> 1.01
146- added ide_tape and other modules to mindi's config detection
147- unmount errant ramdisk ($mtpt) if fail to create boot floppy
148- better support of ISO dirs at restore-time (Conor Daly)
150* Fri Jun 18 2004 Hugo Rabson <> 1.00
151- first 1.0x release
152- busybox now static
153- trap Ctrl-Alt-Del; trigger soft reset
154- better SuSE 9.1 support
155- added (IA64) (Bruno Cornec)
156- add LVM2 support for kernel 2.6 (Takeru Komoriya)
157- better detection of multiple Mindis (Martin Fürstenau)
158- don't complain if just a Mindi boot CD & not a platform for Mondo
159- updated busybox to 1.0.0pre10
160- removed uClibc
161- add memtest support
162- 2.6 kernel support
163- removed Embleer files (Andree Leidenfrost)
164- added kernel-only floppy support, to accommodate really big kernels
165- updated+rebuilt busybox
166- added star support
167- mount /sys at boot-time
168- better 64-bit and 2.6 kernel support
169- better LVM, failsafe kernel support (Jim Richard)
170- use LILO, not raw kernel, on 1.4MB boot floppy
171- record names of unsaved modules, for future reference
172- enlarged ramdisk by 8MB
174* Wed Oct 22 2003 Hugo Rabson <> 0.95
175- changed some '==' to '=' --- now more RH6-friendly
176- allow absolute pathnames again in deplist
177- disable multifunc cd thing
178- better Gentoo support (Bill)
179- better OnStream support
180- better Slackware support (Laurenz)
181- added partimagehack-static to deplist.txt
182- recompiled Busybox - now 10k smaller; better stack-handling
183- fixed boot screen typo
184- added support for 'auto' fs format
185- better devfs support for Mandrake users
186- better Debian+LVM support (Ralph Grewe)
187- updated analyze-my-lvm to handle floating-point gigabyte -L values
189* Thu Jul 24 2003 Anonymous <root@rohan> 0.94
190- altered rootfs's /dev entry to stop cvs from becoming confused
192- added multi-function CD support to mindi and sbin/post-init
193- re-mount root as rw just in case
194- ask user to remove last data (floppy) disk if nec. (Tom Mortell)
195- added support for 5th column in mountlist.txt for labels
196- added symlinks.tgz
197- suppress erroneous error msgs re: failsafe kernel
199* Sun May 18 2003 Hugo Rabson <> 0.93
200- added cciss.o to SCSI_MODS
201- if format type is (e.g.) ext3,ext2 then use 1st entry
202- re-enabled fsck*
203- if cciss in use the enable it at boot-time
204- added /dev/ataraid/* to boot disk via ataraid.tgz (Luc S.)
205- better ISO support
206- tweaked Mindi to use 10-15% fewer floppies
207- added RUN_AFTER_INITIAL_BOOT_PHASE to let user specify a command
208  to be run by Mindi before it bootstraps to aux data disks;
209  e.g. 'echo engage > /proc/scsi/something'
210- added RUN_AFTER_BOOT_PHASE_COMPLETE to let user specify a command
211  to be run by Mindi after it boots but before it runs mondorestore
212- allow for Debian & other Stiefkinder that use 'none', not 'swap'
213  as the mountpoint of the swap partition
214- removed afio dependency
215- re-worked and tarball not to use tgz's
216- cleared up the boot msg
217- updated busybox to 0.60.5; updated uClibc to 0.9.19
218- add #!/bin/sh to start of insert-all-my-modules
219- fixed obscure bug in install-additional-tools
220- changed grep -m to grep | head -n1 for Debian users
221- moved vmlinuz, lib.tar.bz2 to mindi-kernel tarball/rpm
223* Wed Apr 09 2003 Hugo Rabson <> 0.92
224- fixed LVM/RAID bugs (Brian Borgeson)
225- if bad lilo, give more verbose error before quitting
226- added mt and perl to deplist.txt
227- insist on gawk being present
228- insmod ide-cd, cdrom, isofs, just in case
229- boot-time tmpfs ramdisk is now 40m (was 34m)
230- cleaned up logs
231- iso mode now calls Interactive
232- make SizeOfPartition() more Debian-friendly (Andree Leidenfrost)
233- clean up some calls to grep, esp. partition_mountpt=...
234- corrected some bashisms, to suit Debian ped- er, users
235- made first line refer to bash, not sh, to make sure
236  the Debian people know Mindi requires bash, not hs
237- changed grep -v "#" and grep -vx "#.*" to grep -vx " *#.*"
238- disabled code which would have made Mindi use sfdisk instead of fdisk
239  if it looked as if Debian's fdisk would misbehave
241* Wed Feb 12 2003 Hugo Rabson <> 0.91
242- new devel branch
243- EXTRA_SPACE=16384
244- updated ResolveSoftlinks() to work better with b0rkn Gentoo devfs /dev
245- patched analyze-my-lvm (Benjamin Mampaey)
246- detect built-in boot.b files in lilo
247- cleaned up spec file a bit, more use of macros (Jesse Keating)
248- return w/err, don't abort, if Matt Nelson's RH8 system is farked
249- better at finding isolinux.bin
250- better at analyzing dependencies when running on broken distributions
251- try harder to boot from CD, even if tape fails
252- added ADDITIONAL_BOOT_PARAMS to be sent to kernel
253- better resolution of relative softlinks, leading to fewer
254  duplicates on data disks and therefore fewer data disks
255- detect Debian+devfs; use sfdisk instead of fdisk in that
256  eventuality, to work around yet another of Debian's warts
257- removed /lib/libuuid.* from rootfs.tgz
258- fixed vi
259- mindi now uses gawk --traditional (making gawk behave in a functionally
260  identical way to awk) - PASS; great, so now Debian needs to fix its awk :)
261- removed / from list of dirs accessed when trying to resolve deplist entry
262- spinner bugfix; handle odd LABELs properly (Tom Mortell)
263- fixed LVM/RAID bugs (Brian Borgeson)
265* Mon Dec 02 2002 Hugo Rabson <> 0.72_20021202
266- misc code clean-up
267- save boot device's boot sector
268- detect and beware Compaq diagnostic partitions
269- better handling of devfs V non-devfs kernels and boot devs
270- trimmed busybox 0.60.3 binary on boot disk
271- mindi now resides in /usr/local/bin
272- removed lilo from dependencies
273- more Gentoo-friendly
275* Sun Nov 18 2002 Hugo Rabson <> 0.71
276- if your kernel's builddate doesn't match any of the kernels in
277  your /boot directory then fudge the issue & find the closest
278  match (*grumble* Debian)
279- scan tape & CD at start, to force inclusion of modules on boot device
280- double EXTRA_SPACE if >7 disks
281- slimmer, more lithesome logfile
282- now accepts --findkernel
283- line 1982 - dd count=24000 should be count=$ramdisksize (Andras Korn)
284- better handling of non-Linux partitions on DevFS-enabled kernels
285- misc clean-ups
286- fixed Debian/ramdisksize/bloat problem (Johannes Franken)
287- fixed 2.4.20/fdisk eccentricity (Alistair Stevens)
288- updated kernel to 2.4.18-mdk6
289- generate mountlist in dev-abetical order ;)
290- fixed minor bug in .spec file
291- better at finding /boot/boot.b if your distro breaks the de facto standard
292- fixed minor bug in MakeMountlist
293- fixed
294- cleaned up deplist.txt
295- added rudimentary -v / --version flag
296- line 1180 or so --- duplicate mindi.iso entries --- fixed
297- added /bin/[ - a softlink to /bin/sh
298- ListAllPartitions() - sanity fix (KP)
299- fixed .spec bug
300- better feedback
301- added Markus's RAID patch
302- ListAllPartitions() - include /mnt/win* (Hugo)
304* Sun Sep 08 2002 Hugo Rabson <> 0.70
305- better logging by dependency-calculating code
306- better handling of dependencies, specifically softlinks
307- if called by mondo then use mondo's temp dir as our temp dir too
308- changed gawk to $AWK in a few places, to allow for Debian
309- added host* config files to deplist
310- added tftp, ifconfig to busybox
311- added RPC support to uClibc
312- cleaned up creation of Mondo-Mindi configuration file
313- fixed bug in TryToFindKernelPath which stopped it from handling
314  multiple, same-version kernels gracefully
315- cleaned up deplist.txt
316- receive 'DIFFERENTIAL' variable from Mondo
317- better Debian compatibility, esp. w/detection of ver# (Hector Alvarez)
318- better devfs support; call fgrep in places instead of grep (Andrew Korn)
319- fixed analyze-my-lvm (Ralph Gruwe)
320- moved 50K of stuff from rootfs.tgz to aux-tools.tgz
321- added x11-tools.tgz option
322- updated /dev/console and /dev/tty0 (Paul Stevens)
323- cleaned up /mnt/groovy-stuff V /tmp/tmpfs code
324- catch sigint, sighup, etc.
325- fixed LILO-related message.txt mistake
326- .spec file clean-up; automation; config file (Carl Wilhem Soderstrom)
327- better devfs support (Andrew Korn)
329* Sun Jul 14 2002 Hugo Rabson <> 0.64-1
330- fixed RH7.3 readonly bug
331- improved nfs config file creation
332- search more locations for isolinux.bin
333- added isonuke option
334- faster data disk creation
335- better DevFS support (Hector Alvarez, DuckX)
336- nfs-related fix (Hans Lie)
337- abort if vfat filesystem present but mkfs.vfat missing
338- removed softlink to pico
339- allow Mondo to say no compression will be used
340- added [ to ramdisk
341- tar data disks with -b [block size] of 32k
342- don't autoboot to 'RESTORE' screen - it's scary!
343- let user choose lilo or syslinux as boot loader
344- added syslinux support
345- cleaned up message screens
Note: See TracBrowser for help on using the repository browser.