blob: 12cb2bfd78446dea2ebf4dcb72f29ac2d4140932 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-misc/vlock/vlock-1.3-r1.ebuild,v 1.5 2002/09/24 13:51:08 bjb Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A console screen locker"
SRC_URI="ftp://ftp.ibiblio.org/pub/Linux/utils/console/vlock-1.3.tar.gz"
HOMEPAGE="ftp://ftp.ibiblio.org/pub/Linux/utils/console/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc alpha"
DEPEND="virtual/glibc"
src_compile() {
cd ${S}
emake RPM_OPT_FLAGS="${CFLAGS}" || die "emake failed"
}
src_install () {
cd ${S}
dobin vlock
# Setuid root is required to unlock a screen with root's password.
# This is "safe" because vlock drops privs ASAP; read the README
# for more information.
fperms 4711 /usr/bin/vlock
doman vlock.1
dodoc COPYING README
insinto /etc/pam.d
newins ${FILESDIR}/vlock.pamd vlock
}
|