summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-08-27 05:35:30 +0000
committerJeroen Roovers <jer@gentoo.org>2010-08-27 05:35:30 +0000
commite520f46958e6429679c0a0f8612cde37fe4557d2 (patch)
treefeb10680123ddbe947cfcae559742b1201ba30ed /app-admin/lsat/lsat-0.9.7.1-r1.ebuild
parentRespect LDFLAGS by Ross Smith (bug #334577). (diff)
downloadhistorical-e520f46958e6429679c0a0f8612cde37fe4557d2.tar.gz
historical-e520f46958e6429679c0a0f8612cde37fe4557d2.tar.bz2
historical-e520f46958e6429679c0a0f8612cde37fe4557d2.zip
Respect LDFLAGS and CFLAGS by Ross Smith (bug #334591).
Package-Manager: portage-2.2_rc69/cvs/Linux i686
Diffstat (limited to 'app-admin/lsat/lsat-0.9.7.1-r1.ebuild')
-rw-r--r--app-admin/lsat/lsat-0.9.7.1-r1.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/app-admin/lsat/lsat-0.9.7.1-r1.ebuild b/app-admin/lsat/lsat-0.9.7.1-r1.ebuild
new file mode 100644
index 000000000000..a1de08b6c77a
--- /dev/null
+++ b/app-admin/lsat/lsat-0.9.7.1-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2010 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.1 2010/08/27 05:35:30 jer 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
+}