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)
|
2010-09-16 15:26:25 +02:00
|
|
|
DMRAID_INSTALL_STAGING = YES
|
|
|
|
DMRAID_UNINSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) remove
|
|
|
|
DMRAID_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
2006-07-11 00:09:37 +02:00
|
|
|
|
2010-09-16 15:26:25 +02:00
|
|
|
DMRAID_DEPENDENCIES = lvm2
|
|
|
|
|
|
|
|
define DMRAID_INSTALL_INITSCRIPT
|
2010-09-16 15:14:35 +02:00
|
|
|
$(INSTALL) -m 0755 package/dmraid/dmraid.init $(TARGET_DIR)/etc/init.d/S20dmraid
|
2010-09-01 23:18:30 +02:00
|
|
|
endef
|
2009-03-04 14:22:38 +01:00
|
|
|
|
2010-09-16 15:26:25 +02:00
|
|
|
DMRAID_POST_INSTALL_TARGET_HOOKS += DMRAID_INSTALL_INITSCRIPT
|
|
|
|
|
2010-09-01 23:18:30 +02:00
|
|
|
define DMRAID_UNINSTALL_TARGET_CMDS
|
2010-09-16 15:26:25 +02:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) remove -C $(@D)/$(DMRAID_SUBDIR)
|
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/S20dmraid
|
2010-09-01 23:18:30 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,dmraid))
|