summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/vlock
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc/vlock')
-rw-r--r--app-misc/vlock/Manifest1
-rw-r--r--app-misc/vlock/files/vlock-2.2.2-asneeded.patch11
-rw-r--r--app-misc/vlock/files/vlock-2.2.2-test_process.patch28
-rw-r--r--app-misc/vlock/metadata.xml5
-rw-r--r--app-misc/vlock/vlock-2.2.3.ebuild53
5 files changed, 98 insertions, 0 deletions
diff --git a/app-misc/vlock/Manifest b/app-misc/vlock/Manifest
new file mode 100644
index 000000000000..7456862c7d27
--- /dev/null
+++ b/app-misc/vlock/Manifest
@@ -0,0 +1 @@
+DIST vlock-2.2.3.tar.gz 54860 SHA256 85aa5aed1ae49351378a0bd527a013078f0f969372a63164b1944174ae1a5e39 SHA512 7eba8fe4f7085be7ef9169843d0814e55840b823dfc061727db037d2420e8ff4b669a3b08e15f61cdd9d5048c1e088288a46acad341cbe97585e64da2b58c855 WHIRLPOOL 3cc62216d07111eaa5c3298714274266e1a204c79423c1447205d8df7aadeaac51dcab287d7cda0456fbaf605cc5ac31a838350ac07878b6778f8903390328d6
diff --git a/app-misc/vlock/files/vlock-2.2.2-asneeded.patch b/app-misc/vlock/files/vlock-2.2.2-asneeded.patch
new file mode 100644
index 000000000000..8baeed37caf6
--- /dev/null
+++ b/app-misc/vlock/files/vlock-2.2.2-asneeded.patch
@@ -0,0 +1,11 @@
+--- tests/Makefile.old 2008-10-16 13:48:37.000000000 +0200
++++ tests/Makefile 2008-10-16 13:48:53.000000000 +0200
+@@ -16,7 +16,7 @@
+ TEST_SOURCES = $(TESTED_SOURCES:%=test_%)
+ TEST_OBJECTS = $(TEST_SOURCES:.c=.o)
+
+-vlock-test : override LDFLAGS+=-lcunit
++vlock-test : override LDLIBS+=-lcunit
+ vlock-test: vlock-test.o $(TEST_OBJECTS) $(TESTED_OBJECTS)
+
+ vlock-test.o: $(TEST_SOURCES:.c=.h)
diff --git a/app-misc/vlock/files/vlock-2.2.2-test_process.patch b/app-misc/vlock/files/vlock-2.2.2-test_process.patch
new file mode 100644
index 000000000000..83ecd4b14e2c
--- /dev/null
+++ b/app-misc/vlock/files/vlock-2.2.2-test_process.patch
@@ -0,0 +1,28 @@
+--- tests/test_process.c.old 2008-10-16 14:10:16.000000000 +0200
++++ tests/test_process.c 2008-10-16 14:11:26.000000000 +0200
+@@ -12,6 +12,7 @@
+
+ #include "test_process.h"
+
++/* Dustin Polke: This test is flaky, sometimes it passes, sometimes not... Thus exclude it
+ void test_wait_for_death(void)
+ {
+ pid_t pid = fork();
+@@ -25,6 +26,7 @@
+ CU_ASSERT(!wait_for_death(pid, 0, 2000));
+ CU_ASSERT(wait_for_death(pid, 0, 20000));
+ }
++*/
+
+ void test_ensure_death(void)
+ {
+@@ -137,7 +139,8 @@
+ }
+
+ CU_TestInfo process_tests[] = {
+- { "test_wait_for_death", test_wait_for_death },
++/* Dustin Polke: This test is flaky, sometimes it passes, sometimes not... Thus exclude it
++ { "test_wait_for_death", test_wait_for_death }, */
+ { "test_ensure_death", test_ensure_death },
+ { "test_create_child_function", test_create_child_function },
+ { "test_create_child_process", test_create_child_process },
diff --git a/app-misc/vlock/metadata.xml b/app-misc/vlock/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/vlock/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/vlock/vlock-2.2.3.ebuild b/app-misc/vlock/vlock-2.2.3.ebuild
new file mode 100644
index 000000000000..5bd63d854f50
--- /dev/null
+++ b/app-misc/vlock/vlock-2.2.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils pam toolchain-funcs multilib user
+
+DESCRIPTION="A console screen locker"
+HOMEPAGE="http://cthulhu.c3d2.de/~toidinamai/vlock/vlock.html"
+SRC_URI="http://cthulhu.c3d2.de/~toidinamai/vlock/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="pam test"
+
+RDEPEND="pam? ( sys-libs/pam )"
+DEPEND="${RDEPEND}
+ test? ( dev-util/cunit )"
+
+pkg_setup() {
+ enewgroup vlock
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${PN}-2.2.2-asneeded.patch" \
+ "${FILESDIR}/${PN}-2.2.2-test_process.patch"
+}
+
+src_configure() {
+ if use pam; then
+ myconf="--enable-pam"
+ else
+ myconf="--enable-shadow"
+ fi
+ # this package has handmade configure system which fails with econf...
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --libdir=/usr/$(get_libdir) \
+ ${myconf} \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ CFLAGS="${CFLAGS} -pedantic -std=gnu99" \
+ LDFLAGS="${LDFLAGS}" || die "configure failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use pam && pamd_mimic_system vlock auth
+ dodoc ChangeLog PLUGINS README README.X11 SECURITY STYLE TODO
+}