mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
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>
This commit is contained in:
parent
78e7c0b642
commit
0a5ec78866
22
package/dmraid/dmraid-fix-make-remove.patch
Normal file
22
package/dmraid/dmraid-fix-make-remove.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
[PATCH]: dmraid: fix make remove for header files
|
||||||
|
|
||||||
|
prefix/include/dmraid is not empty, so we need rm -rf
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
||||||
|
---
|
||||||
|
1.0.0.rc15/include/Makefile.in | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
Index: dmraid/1.0.0.rc15/include/Makefile.in
|
||||||
|
===================================================================
|
||||||
|
--- dmraid.orig/1.0.0.rc15/include/Makefile.in
|
||||||
|
+++ dmraid/1.0.0.rc15/include/Makefile.in
|
||||||
|
@@ -24,7 +24,7 @@ install: install_dmraid_headers
|
||||||
|
|
||||||
|
remove_dmraid_headers:
|
||||||
|
@echo "Removing $(HEADERS) from $(includedir)/dmraid"
|
||||||
|
- rm -f $(includedir)/dmraid
|
||||||
|
+ rm -rf $(includedir)/dmraid
|
||||||
|
|
||||||
|
remove: remove_dmraid_headers
|
||||||
|
|
@ -9,16 +9,21 @@ DMRAID_SITE:=http://people.redhat.com/~heinzm/sw/dmraid/src
|
|||||||
DMRAID_SUBDIR:=$(DMRAID_VERSION)
|
DMRAID_SUBDIR:=$(DMRAID_VERSION)
|
||||||
# lib and tools race with parallel make
|
# lib and tools race with parallel make
|
||||||
DMRAID_MAKE = $(MAKE1)
|
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
|
DMRAID_DEPENDENCIES = lvm2
|
||||||
$(INSTALL) -m 0755 $(@D)/$(DMRAID_SUBDIR)/tools/dmraid $(TARGET_DIR)/usr/sbin
|
|
||||||
|
define DMRAID_INSTALL_INITSCRIPT
|
||||||
$(INSTALL) -m 0755 package/dmraid/dmraid.init $(TARGET_DIR)/etc/init.d/S20dmraid
|
$(INSTALL) -m 0755 package/dmraid/dmraid.init $(TARGET_DIR)/etc/init.d/S20dmraid
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
DMRAID_POST_INSTALL_TARGET_HOOKS += DMRAID_INSTALL_INITSCRIPT
|
||||||
|
|
||||||
define DMRAID_UNINSTALL_TARGET_CMDS
|
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
|
endef
|
||||||
|
|
||||||
$(eval $(call AUTOTARGETS,package,dmraid))
|
$(eval $(call AUTOTARGETS,package,dmraid))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user