summaryrefslogtreecommitdiffstats
path: root/obsolete-buildroot/make/raidtools.mk
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-05-25 04:32:27 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-05-25 04:32:27 +0000
commit3ac1acb9ea70080aaaf49ae211835f057e60eefa (patch)
treea2e08d2be3224409a033d25af8861d9853e72de7 /obsolete-buildroot/make/raidtools.mk
parent1eb1b593980fdc06ab92f8e354129b0aadc4f1b0 (diff)
Initial revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/make/raidtools.mk')
-rw-r--r--obsolete-buildroot/make/raidtools.mk59
1 files changed, 59 insertions, 0 deletions
diff --git a/obsolete-buildroot/make/raidtools.mk b/obsolete-buildroot/make/raidtools.mk
new file mode 100644
index 000000000..657f245f3
--- /dev/null
+++ b/obsolete-buildroot/make/raidtools.mk
@@ -0,0 +1,59 @@
+#############################################################
+#
+# raidtools2
+#
+#############################################################
+RAIDTOOLS2_SOURCE:=raidtools2-1.00.3.tar.gz
+RAIDTOOLS2_SITE:=
+RAIDTOOLS2_DIR:=$(BUILD_DIR)/raidtools2-1.00.3
+RAIDTOOLS2_CAT:=zcat
+RAIDTOOLS2_BINARY:=mkraid
+RAIDTOOLS2_TARGET_BINARY:=sbin/mkraid
+
+$(DL_DIR)/$(RAIDTOOLS2_SOURCE):
+ $(WGET) -P $(DL_DIR) $(RAIDTOOLS2_SITE)/$(RAIDTOOLS2_SOURCE)
+
+raidtools2-source: $(DL_DIR)/$(RAIDTOOLS2_SOURCE)
+
+$(RAIDTOOLS2_DIR)/.unpacked: $(DL_DIR)/$(RAIDTOOLS2_SOURCE)
+ $(RAIDTOOLS2_CAT) $(DL_DIR)/$(RAIDTOOLS2_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch $(RAIDTOOLS2_DIR)/.unpacked
+
+$(RAIDTOOLS2_DIR)/.configured: $(RAIDTOOLS2_DIR)/.unpacked
+ (cd $(RAIDTOOLS2_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --datadir=/usr/share/misc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ $(DISABLE_NLS) \
+ --enable-fsect-man5 \
+ );
+ touch $(RAIDTOOLS2_DIR)/.configured
+
+$(RAIDTOOLS2_DIR)/$(RAIDTOOLS2_BINARY): $(RAIDTOOLS2_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(RAIDTOOLS2_DIR)
+
+$(TARGET_DIR)/$(RAIDTOOLS2_TARGET_BINARY): $(RAIDTOOLS2_DIR)/$(RAIDTOOLS2_BINARY)
+ $(MAKE) ROOTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(RAIDTOOLS2_DIR) install
+ rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
+ $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
+
+raidtools2: zlib uclibc $(TARGET_DIR)/$(RAIDTOOLS2_TARGET_BINARY)
+
+raidtools2-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(RAIDTOOLS2_DIR) uninstall
+ -$(MAKE) -C $(RAIDTOOLS2_DIR) clean
+
+raidtools2-dirclean:
+ rm -rf $(RAIDTOOLS2_DIR)