summaryrefslogtreecommitdiff
blob: cf539d9e984ec10cb6c2eefb9f6b99616d601f11 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/lcap/lcap-0.0.6-r1.ebuild,v 1.7 2004/06/25 17:54:02 vapier Exp $

inherit eutils

DESCRIPTION="kernel capability remover"
# Real homepage seems to be dead http://pweb.netcom.com/~spoon/lcap/
HOMEPAGE="http://packages.debian.org/stable/admin/lcap.html"
SRC_URI="mirror://debian/pool/main/l/lcap/${P/-/_}.orig.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="lids"

RDEPEND="virtual/libc"
DEPEND="${RDEPEND}
	virtual/os-headers"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PF}.patch
	use lids || sed -i -e "s:LIDS =:#\0:" Makefile
}

src_compile() {
	emake || die
}

src_install() {
	dosbin lcap || die
	doman lcap.8
	dodoc README ${FILESDIR}/README.gentoo
}