Bug#403055: ITP: array-info -- command line HP (Compaq) SmartArray status checker
[Raphaël Pinson]
> Array-info is a command line tool to retrieve informations and
> logical drives status from several RAID controllers (currently HP
> Compaq IDA and CISS).
Is it still being developed? The sourceforge CVS seem to be quite
dead. I had to copy the headers cpqarray.h, ida_cmd.h and ida_ioctl.h
from an old kernel (I used 2.4.21) to get it building, and add an
install target to make it convenient to install. The source tarball
include an obsolete array_info.o file, and there is no README with
contact information.
In short, I believe this source need some more work. Here is the
patch I applied to the makefile.
diff -ur src-0.12/Makefile src-0.12-local/Makefile
--- src-0.12/Makefile 2002-07-25 12:58:06.000000000 +0200
+++ src-0.12-local/Makefile 2006-12-15 16:11:16.000000000 +0100
@@ -1,4 +1,8 @@
-INCLUDES = -I/usr/src/linux/drivers/block
+DESTDIR =
+prefix = /usr/local
+bindir = $(prefix)/bin
+
+INCLUDES = -I/usr/src/linux/drivers/block -I./linuxheaders
CFLAGS = -g2 -Wall $(INCLUDES)
OBJS = compaq_info.o ida_info.o cciss_info.o md_info.o \
@@ -15,6 +19,10 @@
$(OUTPUT) : $(OBJS)
$(CC) -o $(OUTPUT) $(OBJS)
+install:
+ mkdir -p $(DESTDIR)$(bindir)/.
+ cp $(OUTPUT) $(DESTDIR)$(bindir)/.
+
release : indent clean
cd .. && cp -a $(REL_NAME) $(REL_NAME)-$(REL_VER) && tar czf $(REL_NAME)-$(REL_VER).tar.gz $(REL_NAME)-$(REL_VER)
I hope you can get it in shape, as it seem to be a very useful tool.
Friendly,
--
Petter Reinholdtsen
Reply to: