# Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Peter Gavin # $Header: /var/cvsroot/gentoo-x86/app-misc/vlock/vlock-1.3-r1.ebuild,v 1.1 2002/04/26 18:34:14 agriffis 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="http://" 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 }