summaryrefslogtreecommitdiffstats
path: root/package/liblockfile
diff options
context:
space:
mode:
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
commit1f92831170d5be9cb0511f6f9360d3c2daf3d24c (patch)
tree831eb1a20f5213fa08ba2d7b39c932aaefd70449 /package/liblockfile
parent0a41ba39e26b08d9a000a917eeccd948e9da12a7 (diff)
downloadbuildroot-novena-1f92831170d5be9cb0511f6f9360d3c2daf3d24c.tar.gz
buildroot-novena-1f92831170d5be9cb0511f6f9360d3c2daf3d24c.zip
Add new packages.
Diffstat (limited to 'package/liblockfile')
-rw-r--r--package/liblockfile/Config.in5
-rw-r--r--package/liblockfile/liblockfile-install.patch16
-rw-r--r--package/liblockfile/liblockfile.mk67
3 files changed, 88 insertions, 0 deletions
diff --git a/package/liblockfile/Config.in b/package/liblockfile/Config.in
new file mode 100644
index 000000000..0cd8d7325
--- /dev/null
+++ b/package/liblockfile/Config.in
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_LIBLOCKFILE
+ bool "liblockfile"
+ default n
+ help
+ NFS-safe locking library.
diff --git a/package/liblockfile/liblockfile-install.patch b/package/liblockfile/liblockfile-install.patch
new file mode 100644
index 000000000..bfa197c64
--- /dev/null
+++ b/package/liblockfile/liblockfile-install.patch
@@ -0,0 +1,16 @@
+diff -ur liblockfile-1.06.1/Makefile.in liblockfile-1.06.1-patched/Makefile.in
+--- liblockfile-1.06.1/Makefile.in 2001-03-16 22:08:33.000000000 -0600
++++ liblockfile-1.06.1-patched/Makefile.in 2007-04-11 07:18:38.000000000 -0500
+@@ -60,11 +60,7 @@
+
+ install_common:
+ install -m 644 lockfile.h maillock.h $(ROOT)$(includedir)
+- if [ "$(MAILGROUP)" != "" ]; then\
+- install -g $(MAILGROUP) -m 2755 dotlockfile $(ROOT)$(bindir);\
+- else \
+- install -g root -m 755 dotlockfile $(ROOT)$(bindir); \
+- fi
++ install -m 2755 dotlockfile $(ROOT)$(bindir);\
+ install -m 644 *.1 $(ROOT)$(mandir)/man1
+ install -m 644 *.3 $(ROOT)$(mandir)/man3
+
diff --git a/package/liblockfile/liblockfile.mk b/package/liblockfile/liblockfile.mk
new file mode 100644
index 000000000..50e0bed39
--- /dev/null
+++ b/package/liblockfile/liblockfile.mk
@@ -0,0 +1,67 @@
+#############################################################
+#
+# liblockfile
+#
+#############################################################
+LIBLOCKFILE_VERSION=1.06.1
+LIBLOCKFILE_SOURCE:=liblockfile_$(LIBLOCKFILE_VERSION).tar.gz
+LIBLOCKFILE_SITE:=http://ftp.debian.org/debian/pool/main/libl/liblockfile/
+LIBLOCKFILE_CAT:=$(ZCAT)
+LIBLOCKFILE_DIR:=$(BUILD_DIR)/liblockfile-$(LIBLOCKFILE_VERSION)
+LIBLOCKFILE_BINARY:=liblockfile.so.1.0
+
+$(DL_DIR)/$(LIBLOCKFILE_SOURCE):
+ $(WGET) -P $(DL_DIR) $(LIBLOCKFILE_SITE)/$(LIBLOCKFILE_SOURCE)
+
+liblockfile-source: $(DL_DIR)/$(LIBLOCKFILE_SOURCE)
+
+$(LIBLOCKFILE_DIR)/.unpacked: $(DL_DIR)/$(LIBLOCKFILE_SOURCE)
+ $(LIBLOCKFILE_CAT) $(DL_DIR)/$(LIBLOCKFILE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(LIBLOCKFILE_DIR) package/liblockfile/ *.patch
+ touch $(LIBLOCKFILE_DIR)/.unpacked
+
+$(LIBLOCKFILE_DIR)/.configured: $(LIBLOCKFILE_DIR)/.unpacked
+ (cd $(LIBLOCKFILE_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --enable-shared \
+ );
+ touch $(LIBLOCKFILE_DIR)/.configured
+
+$(STAGING_DIR)/lib/$(LIBLOCKFILE_BINARY): $(LIBLOCKFILE_DIR)/.configured
+ mkdir -p $(STAGING_DIR)/man/man1 $(STAGING_DIR)/man/man3
+ $(MAKE) -C $(LIBLOCKFILE_DIR) prefix= ROOT=$(STAGING_DIR) install
+ ln -sf $(LIBLOCKFILE_BINARY) $(STAGING_DIR)/lib/liblockfile.so.1
+ cp -a $(LIBLOCKFILE_DIR)/liblockfile.a $(STAGING_DIR)/lib
+
+$(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY): $(STAGING_DIR)/lib/$(LIBLOCKFILE_BINARY)
+ -mkdir -p $(TARGET_DIR)/usr/lib
+ cp -a $(STAGING_DIR)/lib/liblockfile.so* $(TARGET_DIR)/usr/lib
+ $(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY)
+
+liblockfile: uclibc $(TARGET_DIR)/usr/lib/$(LIBLOCKFILE_BINARY)
+
+liblockfile-clean:
+ rm -f $(TARGET_DIR)/usr/lib/liblockfile.so*
+ rm -f $(STAGING_DIR)/lib/liblockfile*
+ rm -f $(STAGING_DIR)/include/lockfile.h
+ rm -f $(STAGING_DIR)/include/mailfile.h
+ rm -rf $(STAGING_DIR)/man
+ $(MAKE) -C $(LIBLOCKFILE_DIR) clean
+
+liblockfile-dirclean:
+ rm -rf $(LIBLOCKFILE_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBLOCKFILE)),y)
+TARGETS+=liblockfile
+endif