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.
65 lines
1.8 KiB
65 lines
1.8 KiB
13 years ago
|
# Copyright 1999-2011 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/app-forensics/ovaldi/ovaldi-5.9.1.ebuild,v 1.1 2011/06/16 09:30:07 hwoarang Exp $
|
||
|
|
||
|
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="ldap rpm"
|
||
|
|
||
|
DEPEND="rpm? ( app-arch/rpm )
|
||
|
dev-libs/libgcrypt
|
||
|
dev-libs/libpcre
|
||
|
dev-libs/xalan-c
|
||
|
dev-libs/xerces-c
|
||
|
ldap? ( net-nds/openldap )"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
S="${WORKDIR}/${P}-src"
|
||
|
|
||
|
src_prepare() {
|
||
|
epatch "${FILESDIR}"/${P}-xerces3.patch
|
||
|
epatch "${FILESDIR}"/${P}-strnicmp.patch
|
||
|
if ! use ldap ; then
|
||
|
einfo "Disabling LDAP probes"
|
||
|
epatch "${FILESDIR}"/${P}-disable-ldap-probes.patch
|
||
|
rm src/probes/independent/LDAPProbe.{cpp,h} || die
|
||
|
fi
|
||
|
|
||
|
# 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 "Disabling rpm probes"
|
||
|
sed -i 's/^PACKAGE_RPM/#PACKAGE_RPM/' 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 "Disabling dpkg probes"
|
||
|
sed -i 's/^PACKAGE_DPKG/#PACKAGE_DPKG/' 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
|
||
|
}
|