aboutsummaryrefslogtreecommitdiff
path: root/package/lockfile-progs/lockfile-progs.mk
blob: 8c37d44f23a9f0c2975b04ea511afe767293ad3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
################################################################################
#
# lockfile-progs
#
################################################################################

LOCKFILE_PROGS_VERSION = 0.1.17
LOCKFILE_PROGS_SOURCE = lockfile-progs_$(LOCKFILE_PROGS_VERSION).tar.gz
LOCKFILE_PROGS_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lockfile-progs/
LOCKFILE_PROGS_DEPENDENCIES = liblockfile
LOCKFILE_PROGS_LICENSE = GPLv2
LOCKFILE_PROGS_LICENSE_FILES = COPYING

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
	for i in $(LOCKFILE_BINS); do \
		install -D -m 755 $(@D)/bin/$$i $(TARGET_DIR)/usr/bin/$$i; \
	done
endef

define LOCKFILE_PROGS_CLEAN_CMDS
	-$(MAKE) -C $(@D) clean
endef

$(eval $(generic-package))