Ovaldi initial ebuild

This commit is contained in:
Anton Bolshakov 2010-09-16 01:21:38 +00:00
parent acc7733984
commit 4239a0644a
2 changed files with 77 additions and 0 deletions

2
app-misc/ovaldi/Manifest Normal file
View file

@ -0,0 +1,2 @@
DIST ovaldi-5.8.1-src.tar.bz2 7763275 RMD160 7833481722888fd819a84f7c8d11a57e84f9ca16 SHA1 423654bb865148b803b5c8ce0c385d2bf8fcfcfa SHA256 f6d96eb1487ada99d539d9e178bd27744dfa0c15a7815db09f035ccaa60aabb0
EBUILD ovaldi-5.8.1-r100.ebuild 2276 RMD160 b0be2e2f890d43f68edcb7a3a07ff46e12da3fa0 SHA1 4fb821b957760aef14e04456737de55f345c1fea SHA256 3aa632e8f396dc5aee549dce38dcd5f9f3b1a51dae9e4979b87d43da6104329e

View file

@ -0,0 +1,75 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=1
inherit eutils flag-o-matic
DESCRIPTION="The OVAL Interpreter is a freely available reference implementation created to show how information can be collected from a computer for testing, to evaluate and carry out the OVAL Definitions for that platform, and to report the resultsof the tests. "
HOMEPAGE="http://oval.mitre.org/language/download/interpreter/index.html"
SRC_URI="http://voxel.dl.sourceforge.net/sourceforge/ovaldi/${P}-src.tar.bz2"
LICENSE="OVAL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="dev-java/xerces
dev-java/xalan
dev-libs/xalan-c
dev-libs/libpcre"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}-src"
src_unpack() {
unpack ${A}
cd ${S}
}
src_compile () {
cd ${S}/project/linux
emake -j1 || "die emake failed"
}
src_install () {
cd ${S}/project/linux/Release || die "cd failed"
dobin ovaldi
into /
dodir /usr/share/ovaldi
addpredict /usr/share/ovaldi
insinto /usr/share/ovaldi
doins -r "${S}/xml"
cd ${S}/docs
dodoc {README.txt,terms.txt,version.txt,ovaldi.1} || die "docs failed"
}
pkg_postinst() {
einfo
einfo "The OVAL Interpreter collects system configuration data only available to a user with Administrator/root access"
einfo
ewarn
ewarn "SINCE THIS IS SENSITIVE INFORMATION, IT IS STRONGLY RECOMMENDED THAT THE
OVAL INTERPRETER DIRECTORY BE RESTRICTED TO ADMINISTRATOR ACCESS ONLY"
ewarn
einfo
einfo "OVAL Definitions are created and modified on a regular basis,
therefore it is advised that you check the Data Files page on the OVAL Web Site
before running the Interpreter to ensure that you are using the most up-to-date Definitions"
einfo
einfo "Data files page:"
einfo
einfo "http://oval.mitre.org/repository/download/index.html"
ewarn
ewarn
ewarn "The OVAL Interpreter is set up to validate that the Data file has not
been tampered with by checking the MD5 hash (or checksum) generated from the
data file on your computer with an MD5 hash provided by MITRE on the OVAL
Web site"
ewarn " You must supply the MD5 hash for the data file or use
the -m command to skip the MD5 check"
einfo
einfo ".xsd and .xsl files are located in /usr/share/ovaldi/xml "
einfo
}