summaryrefslogtreecommitdiff
blob: e53f310183fb2bff99ce7a48cda49f1266b71761 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# 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.4 2003/09/23 20:20:55 aliz Exp $

DESCRIPTION="kernel capability remover"

# The normal homepage of the program was not reachable by the time
# this ebuild was written
HOMEPAGE="http://packages.debian.org/unstable/admin/lcap.html"

# same for the sources
SRC_URI="mirror://debian/pool/main/l/lcap/${P/-/_}.orig.tar.gz"

LICENSE="GPL-2"

SLOT="0"

KEYWORDS="x86"

IUSE="lids"

DEPEND="virtual/os-headers
		virtual/glibc"
RDEPEND="virtual/glibc"

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() {
	exeinto /usr/sbin
	doexe lcap
	doman lcap.8
	dodoc README
	dodoc ${FILESDIR}/README.gentoo
}