summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Hajdan <phajdan.jr@gentoo.org>2009-12-18 17:37:06 +0000
committerPaweł Hajdan <phajdan.jr@gentoo.org>2009-12-18 17:37:06 +0000
commitac868a9b8536eefadb9e0084261c3ea7059b7bd1 (patch)
tree312ab4fb74d68b43cc51c70c63789e96f09c4e20 /app-misc/lockfile-progs
parentBump to latest version, include support for 2.6.32 (diff)
downloadgentoo-2-ac868a9b8536eefadb9e0084261c3ea7059b7bd1.tar.gz
gentoo-2-ac868a9b8536eefadb9e0084261c3ea7059b7bd1.tar.bz2
gentoo-2-ac868a9b8536eefadb9e0084261c3ea7059b7bd1.zip
Adding app-misc/lockfile-progs to the tree (bug #106393).
Will be needed for the logcheck package (bug #105816). (Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'app-misc/lockfile-progs')
-rw-r--r--app-misc/lockfile-progs/ChangeLog8
-rw-r--r--app-misc/lockfile-progs/files/Makefile30
-rw-r--r--app-misc/lockfile-progs/lockfile-progs-0.1.13.ebuild31
-rw-r--r--app-misc/lockfile-progs/metadata.xml9
4 files changed, 78 insertions, 0 deletions
diff --git a/app-misc/lockfile-progs/ChangeLog b/app-misc/lockfile-progs/ChangeLog
new file mode 100644
index 000000000000..15e46601a49d
--- /dev/null
+++ b/app-misc/lockfile-progs/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-misc/lockfile-progs
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lockfile-progs/ChangeLog,v 1.1 2009/12/18 17:37:05 phajdan.jr Exp $
+
+ 18 Dec 2009; Pawel Hajdan jr <phajdan.jr@gentoo.org> +files/Makefile,
+ +metadata.xml:
+ New ebuild for lockfile-progs. Bug 106393.
+
diff --git a/app-misc/lockfile-progs/files/Makefile b/app-misc/lockfile-progs/files/Makefile
new file mode 100644
index 000000000000..07ff7d5dd476
--- /dev/null
+++ b/app-misc/lockfile-progs/files/Makefile
@@ -0,0 +1,30 @@
+all: lockfile-create
+.PHONY: all
+
+install: all
+ install -d $(DESTDIR)/usr/bin
+
+ install --mode=755 lockfile-create $(DESTDIR)/usr/bin/lockfile-create
+ ln -s lockfile-create $(DESTDIR)/usr/bin/lockfile-remove
+ ln -s lockfile-create $(DESTDIR)/usr/bin/lockfile-touch
+ ln -s lockfile-create $(DESTDIR)/usr/bin/lockfile-check
+
+ install --mode=755 lockfile-create $(DESTDIR)/usr/bin/mail-lock
+ ln -s mail-lock $(DESTDIR)/usr/bin/mail-unlock
+ ln -s mail-unlock $(DESTDIR)/usr/bin/mail-touchlock
+
+ install -d $(DESTDIR)/usr/share/man/man1
+
+ install --mode=644 lockfile-progs.1 $(DESTDIR)/usr/share/man/man1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/lockfile-create.1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/lockfile-remove.1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/lockfile-touch.1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/lockfile-check.1
+
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/mail-lock.1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/mail-unlock.1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/mail-touchlock.1
+.PHONY: install
+
+lockfile-create: lockfile-progs.o
+ ${CC} -o $@ ${CFLAGS} ${LDFLAGS} $^ -llockfile
diff --git a/app-misc/lockfile-progs/lockfile-progs-0.1.13.ebuild b/app-misc/lockfile-progs/lockfile-progs-0.1.13.ebuild
new file mode 100644
index 000000000000..482b7f6afdfe
--- /dev/null
+++ b/app-misc/lockfile-progs/lockfile-progs-0.1.13.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lockfile-progs/lockfile-progs-0.1.13.ebuild,v 1.1 2009/12/18 17:37:05 phajdan.jr Exp $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Programs to safely lock/unlock files and mailboxes"
+HOMEPAGE="http://packages.debian.org/sid/lockfile-progs"
+SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="net-libs/liblockfile"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/sid"
+
+src_prepare() {
+ # Provide better Makefile, with clear separation between compilation
+ # and installation.
+ cp "${FILESDIR}/Makefile" . || die "cp failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+}
diff --git a/app-misc/lockfile-progs/metadata.xml b/app-misc/lockfile-progs/metadata.xml
new file mode 100644
index 000000000000..9ca372f9b46f
--- /dev/null
+++ b/app-misc/lockfile-progs/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>phajdan.jr@gentoo.org</email>
+ <name>Pawel Hajdan jr</name>
+ </maintainer>
+</pkgmetadata>