diff options
author | LABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr> | 2010-12-08 08:18:07 +0000 |
---|---|---|
committer | LABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr> | 2010-12-08 08:18:07 +0000 |
commit | 3acfe0e7ea08e8bcd52852b21b9937f4c9f5e6b3 (patch) | |
tree | 550e5a7bb48843a591796316c83ca3ceefc90701 /app-forensics/ovaldi/ovaldi-5.8.2.ebuild | |
parent | gnome-extra/gloobus-preview: Now using remove_libtool_files to remove libtool... (diff) | |
download | sunrise-3acfe0e7ea08e8bcd52852b21b9937f4c9f5e6b3.tar.gz sunrise-3acfe0e7ea08e8bcd52852b21b9937f4c9f5e6b3.tar.bz2 sunrise-3acfe0e7ea08e8bcd52852b21b9937f4c9f5e6b3.zip |
app-forensics/ovaldi: New Ebuild for bug 225065 thanks to xarthisius, binki and tommy for review
svn path=/sunrise/; revision=11595
Diffstat (limited to 'app-forensics/ovaldi/ovaldi-5.8.2.ebuild')
-rw-r--r-- | app-forensics/ovaldi/ovaldi-5.8.2.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-forensics/ovaldi/ovaldi-5.8.2.ebuild b/app-forensics/ovaldi/ovaldi-5.8.2.ebuild new file mode 100644 index 000000000..420d0a8ab --- /dev/null +++ b/app-forensics/ovaldi/ovaldi-5.8.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +inherit eutils + +DESCRIPTION="Free implementation of OVAL" +HOMEPAGE="http://oval.mitre.org/language/interpreter.html" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="rpm" + +DEPEND="rpm? ( app-arch/rpm ) + dev-libs/libpcre + dev-libs/xalan-c + dev-libs/xerces-c" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P}-src" + +src_prepare() { + epatch "${FILESDIR}"/${P}-xerces3.patch + epatch "${FILESDIR}"/${P}-strnicmp.patch + + # rpm probes support is build dependant only on the presence of the rpm binary + if use rpm ; then + #Same problems as bug 274679, so i do a local copy of the header and patch it + cp /usr/include/rpm/rpmdb.h src/probes/linux/ || die + epatch "${FILESDIR}"/use_local_rpmdb.patch + epatch "${FILESDIR}"/rpmdb.patch + else + einfo "Disable rpm probes" + sed -i 's/^PACKAGE_RPM/#PACKAGE_RPM/g' project/linux/Makefile || die + fi + # same thing for dpkg, but package dpkg is not sufficient, needs app-arch/apt-pkg that is not on tree + einfo "Disable dpkg probes" + sed -i 's/^PACKAGE_DPKG/#PACKAGE_DPKG/g' project/linux/Makefile || die +} + +src_compile () { + emake -C project/linux || die +} + +src_install () { + # no make install in Makefile + dosbin project/linux/Release/ovaldi project/linux/ovaldi.sh || die + dodir /var/log/${PN} || die + insinto /usr/share/${PN} + doins xml/* || die + dodoc docs/{README.txt,version.txt} || die + doman docs/ovaldi.1 || die +} |