diff options
Diffstat (limited to 'app-misc/vlock')
-rw-r--r-- | app-misc/vlock/Manifest | 5 | ||||
-rw-r--r-- | app-misc/vlock/files/vlock-2.2.2-asneeded.patch | 11 | ||||
-rw-r--r-- | app-misc/vlock/files/vlock-2.2.2-test_process.patch | 28 | ||||
-rw-r--r-- | app-misc/vlock/metadata.xml | 8 | ||||
-rw-r--r-- | app-misc/vlock/vlock-2.2.3-r1.ebuild | 56 |
5 files changed, 108 insertions, 0 deletions
diff --git a/app-misc/vlock/Manifest b/app-misc/vlock/Manifest new file mode 100644 index 000000000000..d9f289f7e4dc --- /dev/null +++ b/app-misc/vlock/Manifest @@ -0,0 +1,5 @@ +AUX vlock-2.2.2-asneeded.patch 393 BLAKE2B 1434b168d0f55c3a88e08f280d213850ed676343296f6a9244d6b8e2726aea1b67ef19a8813a402bb0d8e3257cc6478d9a8559d5a035d9413dfe3c9e1b966f25 SHA512 5fa18db0c5ce37d15ea1d1b0b1653b43cf33a2c0f8f56708973a6d5fc59f5357efa2e6cab7113893ebedb1eb3943c6a1c8a9649c7bb407ddf4c6cfaded6e52df +AUX vlock-2.2.2-test_process.patch 905 BLAKE2B 89d80dddc8b13c23a9da34b3570d44984f66156a756027ae6787e1678973375dfdaaae449f771cf925411f17bd03f733ec2bdb94be9736a75a7f3be0da8c097b SHA512 5963bad2bbbaa639cc917adb594e47df156a12dd832bc252343416152934b9e78b3b0ed2f46d529fd7612fc2c8188340a84d249ea9b7e5e31638711428efa597 +DIST vlock-2.2.3.tar.gz 54860 BLAKE2B 140b38dda15dd5c269729db1fbc3cc36dfea035c79e7998adb7f6ec56806408748701b986a2a1509aab6118a796a13b96a1de24f2837f94c4cdf058df736f37c SHA512 7eba8fe4f7085be7ef9169843d0814e55840b823dfc061727db037d2420e8ff4b669a3b08e15f61cdd9d5048c1e088288a46acad341cbe97585e64da2b58c855 +EBUILD vlock-2.2.3-r1.ebuild 1228 BLAKE2B 0c971292f98b419f7d19829cecef6c791cd1532b251647553ae3a38518984fc697e3506c09a4f70e5ac14feca914db70ccdecf9f0848f25a4f2a345429289070 SHA512 3854598d34688ea6c42b72504209d8760b49cff414e84c6ba2a34e7431bccb391e99d2649774716ac3fe5daa0810cfe516964f362e4efdf37ce03a46ea173d27 +MISC metadata.xml 265 BLAKE2B 75452ad720a31a08fc0dcd02eec704c18b11bc0660686f9a320b85fc879f55a564ce9c3b6a8c710781b74c5e8eb3d0544c02a042fb35a0b62a5e1491f675296a SHA512 176f814d8c555e8726f36e012367b698e8a19a0662982621029a7f9190beecc5e6798e43c51698dc149364966cdeff7061121e54fa9d4cf2a3559a6ce4904e25 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..cb4c3f42422b --- /dev/null +++ b/app-misc/vlock/files/vlock-2.2.2-asneeded.patch @@ -0,0 +1,11 @@ +--- a/tests/Makefile 2008-10-16 13:48:37.000000000 +0200 ++++ b/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..a725e9a5a851 --- /dev/null +++ b/app-misc/vlock/files/vlock-2.2.2-test_process.patch @@ -0,0 +1,28 @@ +--- a/tests/test_process.c 2008-10-16 14:10:16.000000000 +0200 ++++ b/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..3cf14bf74636 --- /dev/null +++ b/app-misc/vlock/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> + </maintainer> +</pkgmetadata> diff --git a/app-misc/vlock/vlock-2.2.3-r1.ebuild b/app-misc/vlock/vlock-2.2.3-r1.ebuild new file mode 100644 index 000000000000..a824254c0335 --- /dev/null +++ b/app-misc/vlock/vlock-2.2.3-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit pam toolchain-funcs user + +COMMIT="f2afd55704bfe0a2d66e6b270d247e9b8a7b1664" + +DESCRIPTION="A console screen locker" +HOMEPAGE="https://github.com/WorMzy/vlock" +SRC_URI="https://github.com/WorMzy/vlock/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="pam test" + +RDEPEND=" + pam? ( sys-libs/pam )" + +DEPEND=" + ${RDEPEND} + test? ( dev-util/cunit )" + +DOCS=( ChangeLog PLUGINS README README.X11 SECURITY STYLE TODO ) + +PATCHES=( + "${FILESDIR}/${PN}-2.2.2-asneeded.patch" + "${FILESDIR}/${PN}-2.2.2-test_process.patch" +) + +pkg_setup() { + enewgroup "${PN}" +} + +src_configure() { + local myconf="--enable-shadow" + use pam && myconf="--enable-pam" + + # 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() { + default + use pam && pamd_mimic_system vlock auth +} |