Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/vlock/
Date: Thu, 03 Aug 2017 20:11:29
Message-Id: 1501791077.9c9804c74fba0a70583961ed23c32c6937892bde.monsieurp@gentoo
1 commit: 9c9804c74fba0a70583961ed23c32c6937892bde
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 3 19:51:34 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 3 20:11:17 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c9804c7
7
8 app-misc/vlock: EAPI 6 bump.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 app-misc/vlock/Manifest | 1 +
13 app-misc/vlock/vlock-2.2.3-r1.ebuild | 53 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/app-misc/vlock/Manifest b/app-misc/vlock/Manifest
17 index 7456862c7d2..2e8cdee394e 100644
18 --- a/app-misc/vlock/Manifest
19 +++ b/app-misc/vlock/Manifest
20 @@ -1 +1,2 @@
21 DIST vlock-2.2.3.tar.gz 54860 SHA256 85aa5aed1ae49351378a0bd527a013078f0f969372a63164b1944174ae1a5e39 SHA512 7eba8fe4f7085be7ef9169843d0814e55840b823dfc061727db037d2420e8ff4b669a3b08e15f61cdd9d5048c1e088288a46acad341cbe97585e64da2b58c855 WHIRLPOOL 3cc62216d07111eaa5c3298714274266e1a204c79423c1447205d8df7aadeaac51dcab287d7cda0456fbaf605cc5ac31a838350ac07878b6778f8903390328d6
22 +DIST vlock-2.2.3.zip 85751 SHA256 8b1e4a3a1dcea619333256814b72c552c2e99a7d9d15bcc3a72fd9bb39e3df61 SHA512 90390bcecbc5cd55a19f9d3a6007fd39257183f63366d667263c8d49217206ba5d929814c32181bf3d3fa82197a544211ee815b65ab1c7e09a2502c4ab079b07 WHIRLPOOL 28f4412532e57f1371ead9328461189d63850e09d83be9f1a5770453bf30a96d71f40de3f2a36a93d007e33c53fa388cf2d4171add8fa6a9550041cd9b66a9a7
23
24 diff --git a/app-misc/vlock/vlock-2.2.3-r1.ebuild b/app-misc/vlock/vlock-2.2.3-r1.ebuild
25 new file mode 100644
26 index 00000000000..ec4e63d05ac
27 --- /dev/null
28 +++ b/app-misc/vlock/vlock-2.2.3-r1.ebuild
29 @@ -0,0 +1,53 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit pam toolchain-funcs user
36 +
37 +DESCRIPTION="A console screen locker"
38 +HOMEPAGE="https://github.com/WorMzy/vlock"
39 +SRC_URI="https://github.com/WorMzy/vlock/archive/master.zip -> ${P}.zip"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
44 +IUSE="pam test"
45 +
46 +RDEPEND="
47 + pam? ( sys-libs/pam )"
48 +
49 +DEPEND="
50 + ${RDEPEND}
51 + test? ( dev-util/cunit )"
52 +
53 +DOCS=( ChangeLog PLUGINS README README.X11 SECURITY STYLE TODO )
54 +
55 +S="${WORKDIR}/${PN}-master"
56 +
57 +RESTRICT="test"
58 +
59 +pkg_setup() {
60 + enewgroup "${PN}"
61 +}
62 +
63 +src_configure() {
64 + local myconf="--enable-shadow"
65 + use pam && myconf="--enable-pam"
66 +
67 + # this package has handmade configure system which fails with econf...
68 + ./configure \
69 + --prefix=/usr \
70 + --mandir=/usr/share/man \
71 + --libdir=/usr/$(get_libdir) \
72 + ${myconf} \
73 + CC="$(tc-getCC)" \
74 + LD="$(tc-getLD)" \
75 + CFLAGS="${CFLAGS} -pedantic -std=gnu99" \
76 + LDFLAGS="${LDFLAGS}" || die "configure failed"
77 +}
78 +
79 +src_install() {
80 + default
81 + use pam && pamd_mimic_system vlock auth
82 +}