blob: d89685425bce6e39d977472d978dbdf88092d6d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit pam toolchain-funcs
EGIT_COMMIT="3542ef58a2b838cc8294fe82c341fb671c38611b"
DESCRIPTION="Allows to lock one or all of the sessions of your console display"
HOMEPAGE="https://github.com/WorMzy/vlock"
SRC_URI="https://github.com/WorMzy/vlock/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 sparc x86"
IUSE="pam selinux test"
RESTRICT="!test? ( test )"
COMMON_DEPEND="
virtual/libcrypt:=
!sys-apps/kbd[pam]
pam? ( sys-libs/pam )
"
DEPEND="
${COMMON_DEPEND}
test? ( dev-util/cunit )
"
RDEPEND="
${COMMON_DEPEND}
acct-group/vlock
selinux? ( sec-policy/selinux-vlock )
"
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"
)
src_configure() {
local myeconfargs=(
CC="$(tc-getCC)"
CFLAGS="${CFLAGS} -pedantic -std=gnu99"
LD="$(tc-getLD)"
LDFLAGS="${LDFLAGS}"
$(usex pam '--enable-pam' '--enable-shadow')
--prefix="${EPREFIX}"/usr
--mandir="${EPREFIX}"/usr/share/man
--libdir="${EPREFIX}"/usr/$(get_libdir)
)
# This package has handmade configure system which fails with econf
./configure "${myeconfargs[@]}" || die
}
src_install() {
default
# Bug #637598
eapply "${FILESDIR}/${P}-echo-printf.patch"
use pam && pamd_mimic_system vlock auth
}
|