diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-05-07 03:58:30 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-05-07 03:58:30 +0000 |
commit | 1f92831170d5be9cb0511f6f9360d3c2daf3d24c (patch) | |
tree | 831eb1a20f5213fa08ba2d7b39c932aaefd70449 /package/lockfile-progs | |
parent | 0a41ba39e26b08d9a000a917eeccd948e9da12a7 (diff) | |
download | buildroot-novena-1f92831170d5be9cb0511f6f9360d3c2daf3d24c.tar.gz buildroot-novena-1f92831170d5be9cb0511f6f9360d3c2daf3d24c.zip |
Add new packages.
Diffstat (limited to 'package/lockfile-progs')
-rw-r--r-- | package/lockfile-progs/Config.in | 6 | ||||
-rw-r--r-- | package/lockfile-progs/lockfile-progs.mk | 44 |
2 files changed, 50 insertions, 0 deletions
diff --git a/package/lockfile-progs/Config.in b/package/lockfile-progs/Config.in new file mode 100644 index 000000000..09903899a --- /dev/null +++ b/package/lockfile-progs/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_LOCKFILE_PROGS + bool "lockfile programs" + default n + select BR2_PACKAGE_LIBLOCKFILE + help + Build lockfile utility programs. diff --git a/package/lockfile-progs/lockfile-progs.mk b/package/lockfile-progs/lockfile-progs.mk new file mode 100644 index 000000000..c20e48bc3 --- /dev/null +++ b/package/lockfile-progs/lockfile-progs.mk @@ -0,0 +1,44 @@ +############################################################# +# +# lockfile-progs +# +############################################################# +LOCKFILE_PROGS_VERSION=0.1.10 +LOCKFILE_PROGS_SOURCE:=lockfile-progs_$(LOCKFILE_PROGS_VERSION).tar.gz +LOCKFILE_PROGS_SITE:=http://ftp.debian.org/debian/pool/main/l/lockfile-progs/ +LOCKFILE_PROGS_CAT:=$(ZCAT) +LOCKFILE_PROGS_DIR:=$(BUILD_DIR)/lockfile-progs-$(LOCKFILE_PROGS_VERSION) +LOCKFILE_PROGS_BINARY:=usr/bin/lockfile-create + +$(DL_DIR)/$(LOCKFILE_PROGS_SOURCE): + $(WGET) -P $(DL_DIR) $(LOCKFILE_PROGS_SITE)/$(LOCKFILE_PROGS_SOURCE) + +lockfile-progs-source: $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE) + +$(LOCKFILE_PROGS_DIR)/.unpacked: $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE) + $(LOCKFILE_PROGS_CAT) $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + touch $(LOCKFILE_PROGS_DIR)/.unpacked + +$(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY): $(LOCKFILE_PROGS_DIR)/.unpacked + $(MAKE) CC="$(TARGET_CC) $(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" -C $(LOCKFILE_PROGS_DIR) + cp -a $(LOCKFILE_PROGS_DIR)/bin/lockfile* $(TARGET_DIR)/usr/bin + $(STRIP) --strip-unneeded $(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY) + +lockfile-progs: uclibc liblockfile $(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY) + +lockfile-progs-clean: + rm -f $(TARGET_DIR)/usr/bin/lockfile*Z + $(MAKE) -C $(LOCKFILE_PROGS_DIR) clean + +lockfile-progs-dirclean: + rm -rf $(LOCKFILE_PROGS_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_LOCKFILE_PROGS)),y) +TARGETS+=lockfile-progs +endif |