diff --git a/sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-libs/liblockfile-1.08 b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-libs/liblockfile-1.08 new file mode 100644 index 0000000000..4339c160dd --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-libs/liblockfile-1.08 @@ -0,0 +1,11 @@ +DEFINED_PHASES=configure install prepare setup +DEPEND=|| ( >=sys-devel/automake-1.11.1:1.11 ) >=sys-devel/autoconf-2.68 sys-devel/libtool +DESCRIPTION=Implements functions designed to lock the standard mailboxes +EAPI=2 +HOMEPAGE=http://www.debian.org/ +KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd +LICENSE=LGPL-2 +SLOT=0 +SRC_URI=mirror://debian/pool/main/libl/liblockfile/liblockfile_1.08.orig.tar.gz +_eclasses_=autotools addbdf6cce5024ac93ad2084ad5e1d2d eutils 33ef77a15337022e05342d2c772a7a5a libtool 0fd90d183673bf1107465ec45849d1ea multilib 5f4ad6cf85e365e8f0c6050ddd21659e portability 0be430f759a631e692678ed796e09f5c toolchain-funcs 6526ac6fc9aedf391efb91fcd75ace68 user 9e552f935106ff0bc92af16da64b4b29 +_md5_=f84b135f20cd66ab2f07cc99348f0e4c diff --git a/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/Manifest b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/Manifest new file mode 100644 index 0000000000..b3dd0a4457 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/Manifest @@ -0,0 +1 @@ +DIST liblockfile_1.08.orig.tar.gz 30236 RMD160 ea762d550e5013b79847097a293df0c20886aac5 SHA1 c3b67ca81abb45aa02c75c2a99f0e387b897fe73 SHA256 d63293d5091d7fdc0259563694e4d68771310dbc4e70e188e6b68e7a776405cb diff --git a/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/1.08-stale_lock.patch b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/1.08-stale_lock.patch new file mode 100644 index 0000000000..c64c52599e --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/1.08-stale_lock.patch @@ -0,0 +1,20 @@ +http://bugs.debian.org/505851 +--- liblockfile-1.08.orig/lockfile.c ++++ liblockfile-1.08/lockfile.c +@@ -391,13 +391,10 @@ + * Without a pid in the lockfile, the lock + * is valid if it is newer than 5 mins. + */ +-#if 0 ++ + if (now < st.st_mtime + 300) + return 0; +-#else +- if (now < st.st_mtime + 10) +- return 0; +-#endif ++ + return -1; + } + + diff --git a/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/Makefile.Darwin.in b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/Makefile.Darwin.in new file mode 100644 index 0000000000..bdd320fe6d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/Makefile.Darwin.in @@ -0,0 +1,80 @@ +# +# Makefile.in Makefile for the liblockfile package (Darwin version) +# +# Gentoo version for Darwin, based on original: +# version: @(#)Makefile.in 1.01 16-Apr-1999 miquels@cistron.nl +# + +VER = 1.0 +NVER = 0.1 + +CFLAGS = @CFLAGS@ -I. +LDFLAGS = @LDFLAGS@ +CC = @CC@ + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +libdir = @libdir@ +mandir = @mandir@ +nfslockdir = @nfslockdir@ +includedir = @includedir@ + +MAILGROUP = @MAILGROUP@ + +all: @TARGETS@ +install: @INSTALL_TARGETS@ + +static: liblockfile.a dotlockfile +shared: liblockfile.dylib dotlockfile +nfslib: nfslock.$(VER).dylib + +liblockfile.a: lockfile.o + ar rv liblockfile.a lockfile.o + +liblockfile.dylib: liblockfile.a + $(CC) $(LDFLAGS) -fPIC -dynamiclib -install_name @libdir@/liblockfile.1.0.dylib \ + -o liblockfile.dylib lockfile.o -lc + +nfslock.$(VER).dylib: nfslock.o + $(CC) $(LDFLAGS) -fPIC -dynamiclib -install_name nfslock.0.dylib \ + -o nfslock.$(NVER).dylib nfslock.o + +dotlockfile: dotlockfile.o xlockfile.o + $(CC) $(LDFLAGS) -o dotlockfile dotlockfile.o xlockfile.o + +lockfile.o: lockfile.c + $(CC) $(CFLAGS) -DLIB -DLOCKPROG=\"$(bindir)/dotlockfile\" \ + -c lockfile.c + +xlockfile.o: lockfile.c + $(CC) $(CFLAGS) -c lockfile.c -o xlockfile.o + +install_static: static install_common + install -m 644 liblockfile.a $(ROOT)$(libdir) + +install_shared: shared install_common + install -m 755 liblockfile.dylib \ + $(ROOT)$(libdir)/liblockfile.$(VER).dylib + ln -s liblockfile.$(VER).dylib $(ROOT)$(libdir)/liblockfile.dylib + +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 644 *.1 $(ROOT)$(mandir)/man1 + install -m 644 *.3 $(ROOT)$(mandir)/man3 + +install_nfslib: nfslib + install -m 755 nfslock.$(VER).dylib $(ROOT)$(nfslockdir) + +clean: + rm -f *.a *.o *.dylib dotlockfile + +distclean: clean + rm -f Makefile autoconf.h maillock.h \ + config.cache config.log config.status + diff --git a/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/liblockfile-1.06-respectflags.patch b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/liblockfile-1.06-respectflags.patch new file mode 100644 index 0000000000..1a8d0eb18c --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/liblockfile-1.06-respectflags.patch @@ -0,0 +1,18 @@ +Index: liblockfile-1.06/Makefile.in +=================================================================== +--- liblockfile-1.06.orig/Makefile.in ++++ liblockfile-1.06/Makefile.in +@@ -32,11 +32,11 @@ liblockfile.a: lockfile.o + ar rv liblockfile.a lockfile.o + + liblockfile.so: liblockfile.a +- $(CC) -fPIC -shared -Wl,-soname,liblockfile.so.1 \ ++ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,liblockfile.so.1 \ + -o liblockfile.so lockfile.o -lc + + nfslock.so.$(VER): nfslock.o +- $(CC) -fPIC -shared -Wl,-soname,nfslock.so.0 \ ++ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,nfslock.so.0 \ + -o nfslock.so.$(NVER) nfslock.o + + dotlockfile: dotlockfile.o xlockfile.o diff --git a/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/liblockfile-orphan-file.patch b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/liblockfile-orphan-file.patch new file mode 100644 index 0000000000..4a8c75ac41 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/files/liblockfile-orphan-file.patch @@ -0,0 +1,19 @@ +diff -ur liblockfile-1.06-orig/Makefile.in liblockfile-1.06/Makefile.in +--- liblockfile-1.06-orig/Makefile.in 2006-11-28 06:19:09.000000000 +0100 ++++ liblockfile-1.06/Makefile.in 2006-11-28 06:24:30.000000000 +0100 +@@ -5,6 +5,7 @@ + # + + VER = 1.0 ++MVER = 1 + NVER = 0.1 + + CFLAGS = @CFLAGS@ -I. +@@ -55,6 +56,7 @@ + install_shared: shared install_common + install -m 755 liblockfile.so \ + $(ROOT)$(libdir)/liblockfile.so.$(VER) ++ ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so.$(MVER) + ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so + if test "$(ROOT)" = ""; then @LDCONFIG@; fi + diff --git a/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/liblockfile-1.08.ebuild b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/liblockfile-1.08.ebuild new file mode 100644 index 0000000000..65d75f1de4 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-libs/liblockfile/liblockfile-1.08.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/liblockfile/liblockfile-1.08.ebuild,v 1.7 2010/04/08 19:37:15 jer Exp $ + +EAPI=2 + +inherit eutils multilib autotools + +DESCRIPTION="Implements functions designed to lock the standard mailboxes" +HOMEPAGE="http://www.debian.org/" +SRC_URI="mirror://debian/pool/main/libl/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" +IUSE="" + +pkg_setup() { + enewgroup mail 12 +} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-stale_lock.patch + epatch "${FILESDIR}"/${PN}-1.06-respectflags.patch + epatch "${FILESDIR}"/${PN}-orphan-file.patch + eautoreconf +} + +src_configure() { + econf --with-mailgroup=mail --enable-shared +} + +src_install() { + dodir /usr/{bin,include,$(get_libdir)} /usr/share/man/{man1,man3} + emake ROOT="${D}" install || die + dodoc README Changelog || die +}