diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2010-11-05 23:49:24 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2010-11-05 23:49:24 +0000 |
commit | cb5309ed2d661ce6c300467e1b7eb5f9968296f7 (patch) | |
tree | a6edb1087676480031a700fc12f91ae674b735d9 /app-forensics | |
parent | Moving dev-util/luadoc to dev-lua/luadoc (diff) | |
download | gentoo-2-cb5309ed2d661ce6c300467e1b7eb5f9968296f7.tar.gz gentoo-2-cb5309ed2d661ce6c300467e1b7eb5f9968296f7.tar.bz2 gentoo-2-cb5309ed2d661ce6c300467e1b7eb5f9968296f7.zip |
Moved from sunrise overlay. Bug #334455. Thanks to Montjoie for the ebuild
(Portage version: 2.2.0_alpha3_p8/cvs/Linux x86_64)
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/openscap/ChangeLog | 10 | ||||
-rw-r--r-- | app-forensics/openscap/metadata.xml | 21 | ||||
-rw-r--r-- | app-forensics/openscap/openscap-0.6.4.ebuild | 65 |
3 files changed, 96 insertions, 0 deletions
diff --git a/app-forensics/openscap/ChangeLog b/app-forensics/openscap/ChangeLog new file mode 100644 index 000000000000..c0f3035f6641 --- /dev/null +++ b/app-forensics/openscap/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-forensics/openscap +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/ChangeLog,v 1.1 2010/11/05 23:49:24 hwoarang Exp $ + +*openscap-0.6.4 (05 Nov 2010) + + 05 Nov 2010; Markos Chandras <hwoarang@gentoo.org> +openscap-0.6.4.ebuild, + +metadata.xml: + Moved from sunrise overlay. Bug #334455. Thanks to Montjoie for the ebuild + diff --git a/app-forensics/openscap/metadata.xml b/app-forensics/openscap/metadata.xml new file mode 100644 index 000000000000..9258b9228181 --- /dev/null +++ b/app-forensics/openscap/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<email>hwoarang@gentoo.org</email> +<name>Markos Chandras</name> +<description>Proxy maintainer. CC him on bugs</description> +</maintainer> +<maintainer> +<email>corentin.labbe@geomatys.fr</email> +<name>LABBE Corentin (Montjoie)</name> +<description>Maintainer. Assign bugs to him</description> +</maintainer> +<use> +<flag name="nss">Prefer NSS over libgcrypt as the crypto engine</flag> +</use> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + diff --git a/app-forensics/openscap/openscap-0.6.4.ebuild b/app-forensics/openscap/openscap-0.6.4.ebuild new file mode 100644 index 000000000000..b32f7cd8c5ee --- /dev/null +++ b/app-forensics/openscap/openscap-0.6.4.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/openscap-0.6.4.ebuild,v 1.1 2010/11/05 23:49:24 hwoarang Exp $ + +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 +} |