Package-Name: raidtools
Requires: popt
Source: http://people.redhat.com/mingo/raidtools//(raidtools-\d+\.\d+(\.\d+)?\.tar\.gz)/[\0-\377]*raidtools-(\d+.\d+(.\d+)?).tar.gz $1
Zap-Before-Install: 1
Repack:
	tar xzvfp "$(SOURCE)"
Compile:
	cp -pf COPYING README "$(PREFIX)/"
	$(MAKE) -f ../Makefile configure
	$(MAKE)
#FIXME: this creates stuff in /dev -- should we consider that okay?
	$(MAKE) install
Install:
	mv -f "$(PREFIX)"/sbin/{arytst,detect_multipath,lsraid,mkraid,raid0run,raidhotadd,raidhotremove,raidreconf,raidsetfaulty,raidstart,raidstop} /sbin/
	$(MAKE) instman SECTION=5 MAN=raidtab
	$(MAKE) instman SECTION=8 MAN="ckraid lsraid mkraid raid0run raidadd raidreconf raidrun raidstart raidstop"
Patch: <<EOT
######## begin gcc 3.3.1 patch
diff -ur ../raidtools-1.00.3-orig/mkraid.c mkraid.c
--- ../raidtools-1.00.3-orig/mkraid.c	2003-01-15 17:58:25 +0900
+++ mkraid.c	2003-09-28 00:22:05 +0900
@@ -171,31 +171,31 @@
     if (old_force_flag && (func == mkraid)) {
 	fprintf(stderr, 
 
-"
- WARNING!
-
- NOTE: if you are recovering a double-disk error or some other failure mode
- that made your array unrunnable but data is still intact then it's strongly
- recommended to use the lsraid utility and to read the lsraid HOWTO.
-
- If your RAID array holds useful and not yet backed up data then --force
- and the hot-add/hot-remove functionality should be used with extreme care!
- If your /etc/raidtab file is not in sync with the real array configuration,
- then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use
- -f if the array is in degraded mode.
-
- If your /etc/raidtab file matches the real layout of on-disk data then
- recreating the array will not hurt your data, but be aware of the risks
- of doing this anyway: freshly created RAID1 and RAID5 arrays do a full
- resync of their mirror/parity blocks, which, if the raidtab is incorrect,
- the resync will wipe out data irrecoverably. Also, if your array is in
- degraded mode then the raidtab must match the degraded config exactly,
- otherwise you'll get the same kind of data destruction during resync.
- (see the failed-disk raidtab option.) You have been warned!
-
- [ If your array holds no data, or you have it all backed up, or if you
- know precisely what you are doing and you still want to proceed then use
- the --really-force (or -R) flag. ]
+"\n\
+ WARNING!\n\
+\n\
+ NOTE: if you are recovering a double-disk error or some other failure mode\n\
+ that made your array unrunnable but data is still intact then it's strongly\n\
+ recommended to use the lsraid utility and to read the lsraid HOWTO.\n\
+\n\
+ If your RAID array holds useful and not yet backed up data then --force\n\
+ and the hot-add/hot-remove functionality should be used with extreme care!\n\
+ If your /etc/raidtab file is not in sync with the real array configuration,\n\
+ then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use\n\
+ -f if the array is in degraded mode.\n\
+\n\
+ If your /etc/raidtab file matches the real layout of on-disk data then\n\
+ recreating the array will not hurt your data, but be aware of the risks\n\
+ of doing this anyway: freshly created RAID1 and RAID5 arrays do a full\n\
+ resync of their mirror/parity blocks, which, if the raidtab is incorrect,\n\
+ the resync will wipe out data irrecoverably. Also, if your array is in\n\
+ degraded mode then the raidtab must match the degraded config exactly,\n\
+ otherwise you'll get the same kind of data destruction during resync.\n\
+ (see the failed-disk raidtab option.) You have been warned!\n\
+\n\
+ [ If your array holds no data, or you have it all backed up, or if you\n\
+ know precisely what you are doing and you still want to proceed then use\n\
+ the --really-force (or -R) flag. ]\n\
 ");
 	return EXIT_FAILURE;
     }
######## end gcc 3.3.1 patch
--- Makefile.in.old	2003-01-15 17:58:25 +0900
+++ Makefile.in	2003-08-13 22:57:23 +0900
@@ -15,7 +15,7 @@
 srcdir  = @srcdir@
 VPATH   = @srcdir@
 
-SBIN    = @sbindir@
+SBIN    = @prefix@/@sbindir@
 USR     = @prefix@
-MAN     = $(USR)/share/man
+MAN     = $(USR)/man
 
EOT

-/etc/raidtab
/etc/raidtab
/sbin/arytst
/sbin/detect_multipath
/sbin/lsraid
/sbin/mkraid
/sbin/raid0run
/sbin/raidhotadd
/sbin/raidhotremove
/sbin/raidreconf
/sbin/raidsetfaulty
/sbin/raidstart
/sbin/raidstop
/pkg/raidtools/
/usr/share/man/man5/raidtab.5.gz
/usr/share/man/man8/ckraid.8.gz
/usr/share/man/man8/lsraid.8.gz
/usr/share/man/man8/mkraid.8.gz
/usr/share/man/man8/raid0run.8.gz
/usr/share/man/man8/raidadd.8.gz
/usr/share/man/man8/raidreconf.8.gz
/usr/share/man/man8/raidrun.8.gz
/usr/share/man/man8/raidstart.8.gz
/usr/share/man/man8/raidstop.8.gz
