2006-07-11 00:09:37 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# dmraid
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-03-04 14:22:38 +01:00
|
|
|
DMRAID_VERSION:=1.0.0.rc15
|
2006-07-11 00:09:37 +02:00
|
|
|
DMRAID_SOURCE:=dmraid-$(DMRAID_VERSION).tar.bz2
|
|
|
|
DMRAID_SITE:=http://people.redhat.com/~heinzm/sw/dmraid/src
|
2009-03-04 14:22:38 +01:00
|
|
|
DMRAID_SUBDIR:=$(DMRAID_VERSION)
|
2009-05-07 09:33:48 +02:00
|
|
|
# lib and tools race with parallel make
|
|
|
|
DMRAID_MAKE = $(MAKE1)
|
2009-06-15 15:52:54 +02:00
|
|
|
DMRAID_DEPENDENCIES:=lvm2
|
2009-03-04 14:22:38 +01:00
|
|
|
DMRAID_INSTALL_STAGING:=yes
|
2006-07-11 00:09:37 +02:00
|
|
|
|
2009-03-04 14:22:38 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,dmraid))
|
2006-07-11 00:09:37 +02:00
|
|
|
|
2009-03-04 14:22:38 +01:00
|
|
|
$(DMRAID_TARGET_INSTALL_TARGET): $(DMRAID_TARGET_INSTALL_STAGING)
|
|
|
|
$(call MESSAGE,"Installing to target")
|
|
|
|
$(INSTALL) -m 0755 $(STAGING_DIR)/usr/sbin/dmraid $(TARGET_DIR)/usr/sbin
|
2006-07-19 19:51:12 +02:00
|
|
|
$(INSTALL) -m 0755 package/dmraid/dmraid.init $(TARGET_DIR)/etc/init.d/dmraid
|
2009-03-04 14:22:38 +01:00
|
|
|
touch $@
|
2006-07-11 00:09:37 +02:00
|
|
|
|
2009-03-04 14:22:38 +01:00
|
|
|
ifeq ($(BR2_ENABLE_DEBUG),)
|
|
|
|
$(DMRAID_HOOK_POST_INSTALL): $(DMRAID_TARGET_INSTALL_TARGET)
|
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/usr/sbin/dmraid
|
|
|
|
touch $@
|
2006-07-11 00:09:37 +02:00
|
|
|
endif
|
2009-03-04 14:22:38 +01:00
|
|
|
|
|
|
|
$(DMRAID_TARGET_UNINSTALL):
|
|
|
|
$(call MESSAGE,"Uninstalling")
|
|
|
|
# makefile has no uninstall target..
|
|
|
|
# $(MAKE) DESTDIR=$(STAGING_DIR) -C $(DMRAID_DIR) uninstall
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/dmraid $(TARGET_DIR)/etc/init.d/dmraid
|
|
|
|
rm -f $(DMRAID_TARGET_INSTALL_TARGET) $(DMRAID_HOOK_POST_INSTALL)
|