diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-09-16 15:26:25 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-09-16 15:35:23 +0200 |
commit | 0a5ec788662b9b18aa65806a706904bf9860b837 (patch) | |
tree | db2f346c01a296d724ea800f1d9baa1279d8d2a8 /package/dmraid/dmraid.mk | |
parent | 78e7c0b642a0decf6dad37026b3f70bb480f645b (diff) | |
download | buildroot-0a5ec788662b9b18aa65806a706904bf9860b837.tar.gz buildroot-0a5ec788662b9b18aa65806a706904bf9860b837.zip |
dmraid: misc cleanup
Fix install into staging (YES instead of yes), fix uninstall target,
use default target-install handling, install headers/lib/man pages into
target if requested.
A small patch is needed for 'make remove' to work.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/dmraid/dmraid.mk')
-rw-r--r-- | package/dmraid/dmraid.mk | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/package/dmraid/dmraid.mk b/package/dmraid/dmraid.mk index f3e58c1093..e98161c3da 100644 --- a/package/dmraid/dmraid.mk +++ b/package/dmraid/dmraid.mk @@ -9,16 +9,21 @@ DMRAID_SITE:=http://people.redhat.com/~heinzm/sw/dmraid/src DMRAID_SUBDIR:=$(DMRAID_VERSION) # lib and tools race with parallel make DMRAID_MAKE = $(MAKE1) -DMRAID_DEPENDENCIES:=lvm2 -DMRAID_INSTALL_STAGING:=yes +DMRAID_INSTALL_STAGING = YES +DMRAID_UNINSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) remove +DMRAID_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install -define DMRAID_INSTALL_TARGET_CMDS - $(INSTALL) -m 0755 $(@D)/$(DMRAID_SUBDIR)/tools/dmraid $(TARGET_DIR)/usr/sbin +DMRAID_DEPENDENCIES = lvm2 + +define DMRAID_INSTALL_INITSCRIPT $(INSTALL) -m 0755 package/dmraid/dmraid.init $(TARGET_DIR)/etc/init.d/S20dmraid endef +DMRAID_POST_INSTALL_TARGET_HOOKS += DMRAID_INSTALL_INITSCRIPT + define DMRAID_UNINSTALL_TARGET_CMDS - rm -f $(TARGET_DIR)/usr/sbin/dmraid $(TARGET_DIR)/etc/init.d/S20dmraid + $(MAKE) DESTDIR=$(TARGET_DIR) remove -C $(@D)/$(DMRAID_SUBDIR) + rm -f $(TARGET_DIR)/etc/init.d/S20dmraid endef $(eval $(call AUTOTARGETS,package,dmraid)) |