summaryrefslogtreecommitdiffstats
path: root/package/lockfile-progs/lockfile-progs.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-09-29 22:40:31 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-09-29 22:40:31 +0200
commitccb974d7ea4a63ba3423e6bd7d91c18d02ea4fde (patch)
tree3da563999cb4ffc60a5ebd31bbf809b087b30678 /package/lockfile-progs/lockfile-progs.mk
parent9793ea56615616589e2eccdab65c49aa501c2ed4 (diff)
downloadbuildroot-novena-ccb974d7ea4a63ba3423e6bd7d91c18d02ea4fde.tar.gz
buildroot-novena-ccb974d7ea4a63ba3423e6bd7d91c18d02ea4fde.zip
lockfile-progs: cleanup install/uninstall
Install/uninstall all programs (including mail-*), and use install -D to copy to target. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/lockfile-progs/lockfile-progs.mk')
-rw-r--r--package/lockfile-progs/lockfile-progs.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/package/lockfile-progs/lockfile-progs.mk b/package/lockfile-progs/lockfile-progs.mk
index c7b55652a..f8d8ceeca 100644
--- a/package/lockfile-progs/lockfile-progs.mk
+++ b/package/lockfile-progs/lockfile-progs.mk
@@ -7,16 +7,25 @@ LOCKFILE_PROGS_VERSION = 0.1.15
LOCKFILE_PROGS_SOURCE = lockfile-progs_$(LOCKFILE_PROGS_VERSION).tar.gz
LOCKFILE_PROGS_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lockfile-progs/
+LOCKFILE_BINS = \
+ $(addprefix lockfile-,check create remove touch) \
+ $(addprefix mail-,lock touchlock unlock)
+
define LOCKFILE_PROGS_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef
define LOCKFILE_PROGS_INSTALL_TARGET_CMDS
- cp -a $(@D)/bin/lockfile* $(TARGET_DIR)/usr/bin
+ for i in $(LOCKFILE_BINS); do \
+ install -D -m 755 $(@D)/bin/$$i $(TARGET_DIR)/usr/bin/$$i; \
+ done
+endef
+
+define LOCKFILE_PROGS_UNINSTALL_TARGET_CMDS
+ rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(LOCKFILE_BINS))
endef
define LOCKFILE_PROGS_CLEAN_CMDS
- -rm -f $(TARGET_DIR)/usr/bin/lockfile-*
-$(MAKE) -C $(@D) clean
endef