mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-misc/vlock: clean up old.
Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
@@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils pam toolchain-funcs multilib user
|
||||
|
||||
DESCRIPTION="A console screen locker"
|
||||
HOMEPAGE="http://cthulhu.c3d2.de/~toidinamai/vlock/vlock.html"
|
||||
SRC_URI="http://cthulhu.c3d2.de/~toidinamai/vlock/archive/${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 )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup vlock
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-2.2.2-asneeded.patch" \
|
||||
"${FILESDIR}/${PN}-2.2.2-test_process.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use pam; then
|
||||
myconf="--enable-pam"
|
||||
else
|
||||
myconf="--enable-shadow"
|
||||
fi
|
||||
# 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() {
|
||||
emake DESTDIR="${D}" install
|
||||
use pam && pamd_mimic_system vlock auth
|
||||
dodoc ChangeLog PLUGINS README README.X11 SECURITY STYLE TODO
|
||||
}
|
||||
Reference in New Issue
Block a user