You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/app-admin/lsat/lsat-0.9.7.1-r1.ebuild,v 1.4 2012/02/16 19:32:59 phajdan.jr Exp $
|
|
|
|
inherit eutils toolchain-funcs
|
|
|
|
DESCRIPTION="The Linux Security Auditing Tool"
|
|
HOMEPAGE="http://usat.sourceforge.net/"
|
|
SRC_URI="http://usat.sourceforge.net/code/${P}.tgz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ppc x86"
|
|
IUSE="minimal"
|
|
|
|
DEPEND="dev-lang/perl" # pod2man
|
|
RDEPEND="!minimal? (
|
|
app-portage/portage-utils
|
|
net-analyzer/nmap
|
|
sys-apps/iproute2
|
|
sys-apps/which
|
|
sys-process/lsof
|
|
)"
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
cd "${S}"
|
|
epatch "${FILESDIR}"/${P}-gentoo.patch
|
|
|
|
# patch for segmentation fault see bug #184488
|
|
epatch "${FILESDIR}"/${P}-segfault-fix.patch
|
|
sed -i Makefile.in \
|
|
-e '/^LDFLAGS=/d' \
|
|
-e '/^CFLAGS=/d' \
|
|
|| die "sed Makefile.in"
|
|
}
|
|
|
|
src_compile() {
|
|
tc-export CC
|
|
econf
|
|
emake CFLAGS="${CFLAGS}" all manpage || die "emake failed"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install installman || die "emake install failed"
|
|
dodoc README* *.txt
|
|
dohtml modules.html changelog/changelog.html
|
|
}
|