diff options
author | 2010-09-24 12:43:32 +0000 | |
---|---|---|
committer | 2010-09-24 12:43:32 +0000 | |
commit | c9e234a263517b81a1a1359cfdad55670fe445d1 (patch) | |
tree | ebecffdb88854617c3d121885969cac04a0ab4ab /app-forensics | |
parent | dev-games/renpy-modules: Version bump (diff) | |
download | sunrise-reviewed-c9e234a263517b81a1a1359cfdad55670fe445d1.tar.gz sunrise-reviewed-c9e234a263517b81a1a1359cfdad55670fe445d1.tar.bz2 sunrise-reviewed-c9e234a263517b81a1a1359cfdad55670fe445d1.zip |
app-forensics/openscap: New Ebuild for bug 334455 thanks to binki,idl0r,sedzimir,nao,Tommy for review
svn path=/sunrise/; revision=11347
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/openscap/ChangeLog | 8 | ||||
-rw-r--r-- | app-forensics/openscap/Manifest | 4 | ||||
-rw-r--r-- | app-forensics/openscap/metadata.xml | 9 | ||||
-rw-r--r-- | app-forensics/openscap/openscap-0.6.3.ebuild | 65 |
4 files changed, 86 insertions, 0 deletions
diff --git a/app-forensics/openscap/ChangeLog b/app-forensics/openscap/ChangeLog new file mode 100644 index 000000000..714691cb2 --- /dev/null +++ b/app-forensics/openscap/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-forensics/openscap +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 24 Sep 2010; LABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr> + +openscap-0.6.3.ebuild, +metadata.xml: + New Ebuild for bug 334455 thanks to binki,idl0r,sedzimir,nao,Tommy for review + diff --git a/app-forensics/openscap/Manifest b/app-forensics/openscap/Manifest new file mode 100644 index 000000000..cedab522e --- /dev/null +++ b/app-forensics/openscap/Manifest @@ -0,0 +1,4 @@ +DIST openscap-0.6.3.tar.gz 3693224 RMD160 bae865b692d33ece7a3d6b0ca000f7fbc1eb2e91 SHA1 cce4aa2678b9a428b4fe21ee534a37cc61b05503 SHA256 dc8e32f1fcdf41de7ef3f5866b3a69bddd1bfedc665e1d9775384b47a02f27e9 +EBUILD openscap-0.6.3.ebuild 1444 RMD160 f46670d19e5de995561d8f6f8846027799e78ccc SHA1 7643a9dd1826328eb5c93c67182788103445e55b SHA256 a74416ac375cf15ac456f6655985461761d88023c74651655b5ace0fed7b0eaa +MISC ChangeLog 315 RMD160 437d171ee852d09ac658f158f1eab48e0b70c845 SHA1 9c9f153524f1fc57699512ab9715116ed5ee0cdb SHA256 fad41e27cb95abb7b6593f8849c1f5eda1a41b93fed8563aea96ad9a6383217a +MISC metadata.xml 318 RMD160 e40bc15bea25b92deb0634bb809cec82ba3a891d SHA1 d8e978a8c5640daa764769b688ec40306d09f3ed SHA256 f0152ee86af60a41abd387cb05da7271346f3728fd34664526d9441bc00705ac diff --git a/app-forensics/openscap/metadata.xml b/app-forensics/openscap/metadata.xml new file mode 100644 index 000000000..9cca9202d --- /dev/null +++ b/app-forensics/openscap/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer> + <use> + <flag name="nss">Prefer NSS over libgcrypt as the crypto engine</flag> + </use> +</pkgmetadata> diff --git a/app-forensics/openscap/openscap-0.6.3.ebuild b/app-forensics/openscap/openscap-0.6.3.ebuild new file mode 100644 index 000000000..9790e406e --- /dev/null +++ b/app-forensics/openscap/openscap-0.6.3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +PYTHON_DEPEND="2" + +inherit multilib python bash-completion + +DESCRIPTION="Framework which enables integration with the Security Content Automation Protocol (SCAP)" +HOMEPAGE="http://www.open-scap.org/" +SRC_URI="http://www.open-scap.org/download/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bash-completion doc nss perl python" + +RDEPEND="!nss? ( dev-libs/libgcrypt ) + nss? ( dev-libs/nss ) + dev-libs/libpcre + dev-libs/libxml2 + net-misc/curl" +DEPEND="${RDEPEND} + perl? ( dev-lang/swig ) + python? ( dev-lang/swig )" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_configure() { + local myconf + if use python || use perl ; then + myconf+=" --enable-bindings" + else + myconf+=" --disable-bindings" + fi + if use nss ; then + myconf+=" --with-crypto=nss3" + else + myconf+=" --with-crypto=gcrypt" + fi + econf ${myconf} +} + +src_install() { + emake install DESTDIR="${D}" || die + #--enable-bindings enable all bindings, clean unwanted bindings + if use python && ! use perl ; then + rm -rf "${D}"/usr/$(get_libdir)/perl5 || die + fi + if ! use python && use perl ; then + rm -rf "${D}"/$(python_get_sitedir) || die + fi + if use doc ; then + dohtml -r docs/html/* || die + dodoc docs/examples/* || die + fi + if ! use bash-completion ; then + rm -rf "${D}"/etc/bash_completion.d || die + fi +} |