# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Author: Paul Belt <gaarde at users dot sourceforge dot net>
DESCRIPTION="Linux Security Auditing Tool (LSAT) is a post install security
auditing tool. It is modular in design, so new features can be added quickly. It
checks inetd entries and scans for unneeded RPM packages. It is being expanded
to work with Linux distributions other than Red Hat, and checks for kernel
versions."
HOMEPAGE="http://usat.sourceforge.net"
SRC_URI="http://unc.dl.sourceforge.net/sourceforge/usat/${P}.tgz"
LICENSE="gpl-2"
SLOT="0"
KEYWORDS="i386"
DEPEND="dev-lang/perl"
src_compile() {
econf || die
emake || die
}
src_install () {
dodoc README README.checkrpm README.modules
dobin lsat
# Make the manpage
pod2man ${PN}.pod > ${PN}.tmp || die "Can not make the man-page"
sed 's/perl v5.6.1/LSAT/g' ${PN}.tmp |\
sed 's/Perl/LSAT/g' > ${PN}.1
rm -f ${PN}.tmp
doman ${PN}.man
}