blob: c210cf10fe55278e49af49203974c7d7d6c77a7e [file] [log] [blame]
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/rats/rats-2.1-r2.ebuild,v 1.9 2009/10/12 08:27:32 ssuominen Exp $
inherit eutils
DESCRIPTION="RATS - Rough Auditing Tool for Security"
HOMEPAGE="http://www.fortifysoftware.com/security-resources/rats.jsp"
SRC_URI="http://www.fortifysoftware.com/servlet/downloads/public/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""
DEPEND="dev-libs/expat"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${P}-add-getopt-trailing-null.patch
epatch "${FILESDIR}"/${P}-fix-null-pointers.patch
}
src_compile() {
econf --datadir="/usr/share/${PN}/" || die
emake || die
}
src_install () {
einstall SHAREDIR="${D}/usr/share/${PN}" MANDIR="${D}/usr/share/man" || die
dodoc README README.win32
}
pkg_postinst() {
ewarn "Please be careful when using this program with it's force language"
ewarn "option, '--language <LANG>' it may take huge amounts of memory when"
ewarn "it tries to treat binary files as some other type."
}