diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2012-08-01 13:34:25 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2012-08-01 13:34:25 +0000 |
commit | 1a262c5c52a8c387b8a9dab35f91cf6fa1476ade (patch) | |
tree | 46b7585e30a1ed4feeb845b280591cecad78ade9 /app-forensics | |
parent | Add uclibc fix (bug 230091), add CONFIG_CHECK for TUN. (diff) | |
download | gentoo-2-1a262c5c52a8c387b8a9dab35f91cf6fa1476ade.tar.gz gentoo-2-1a262c5c52a8c387b8a9dab35f91cf6fa1476ade.tar.bz2 gentoo-2-1a262c5c52a8c387b8a9dab35f91cf6fa1476ade.zip |
Version bump thanks to LABBE Corentin <corentin.labbe@geomatys.fr>
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/openscap/ChangeLog | 7 | ||||
-rw-r--r-- | app-forensics/openscap/openscap-0.8.3.ebuild | 100 |
2 files changed, 106 insertions, 1 deletions
diff --git a/app-forensics/openscap/ChangeLog b/app-forensics/openscap/ChangeLog index af688d196088..a64cbc0f653c 100644 --- a/app-forensics/openscap/ChangeLog +++ b/app-forensics/openscap/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-forensics/openscap # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/ChangeLog,v 1.17 2012/07/26 22:09:19 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/ChangeLog,v 1.18 2012/08/01 13:34:25 hwoarang Exp $ + +*openscap-0.8.3 (01 Aug 2012) + + 01 Aug 2012; Markos Chandras <hwoarang@gentoo.org> +openscap-0.8.3.ebuild: + Version bump thanks to LABBE Corentin <corentin.labbe@geomatys.fr> 26 Jul 2012; Markos Chandras <hwoarang@gentoo.org> files/test_probes_process.patch: diff --git a/app-forensics/openscap/openscap-0.8.3.ebuild b/app-forensics/openscap/openscap-0.8.3.ebuild new file mode 100644 index 000000000000..20b159e50cc8 --- /dev/null +++ b/app-forensics/openscap/openscap-0.8.3.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/openscap-0.8.3.ebuild,v 1.1 2012/08/01 13:34:25 hwoarang Exp $ + +EAPI=3 + +PYTHON_DEPEND="2" + +inherit eutils multilib python bash-completion-r1 + +DESCRIPTION="Framework which enables integration with the Security Content Automation Protocol (SCAP)" +HOMEPAGE="http://www.open-scap.org/" +SRC_URI="https://fedorahosted.org/releases/o/p/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bash-completion doc nss perl python rpm selinux sql test" +#RESTRICT="test" + +RDEPEND="!nss? ( dev-libs/libgcrypt ) + nss? ( dev-libs/nss ) + rpm? ( >=app-arch/rpm-4.9 ) + sql? ( dev-db/opendbx ) + dev-libs/libpcre + dev-libs/libxml2 + dev-libs/libxslt + net-misc/curl" +DEPEND="${RDEPEND} + perl? ( dev-lang/swig ) + python? ( dev-lang/swig ) + test? ( + app-arch/unzip + net-misc/ipcalc + sys-apps/grep )" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + sed -i 's/uname -p/uname -m/' tests/probes/uname/test_probes_uname.xml.sh || die + sed -i 's,/etc/rc.d/init.d,/etc/init.d,' src/OVAL/probes/unix/runlevel.c || die + # runlevel isnt supported on gentoo + sed -i 's,probecheck "runlevel,probecheck "runlevellllll,' tests/probes/runlevel/test_probes_runlevel.sh || die + #According to comment of theses tests, we must modify it. For the moment disable it + sed -i 's,.*linux-def_inetlisteningservers_test,#&,' tests/mitre/test_mitre.sh || die + sed -i 's,.*ind-def_environmentvariable_test,#&,' tests/mitre/test_mitre.sh || die + #This test fail when testing process with [] in names https://fedorahosted.org/openscap/ticket/47 + epatch ${FILESDIR}/test_probes_process.patch || die + + if ! use rpm ; then + sed -i 's,probe_rpminfo_req_deps_ok=yes,probe_rpminfo_req_deps_ok=no,' configure || die + sed -i 's,probe_rpminfo_opt_deps_ok=yes,probe_rpminfo_opt_deps_ok=no,' configure || die + sed -i 's,probe_rpmverify_req_deps_ok=yes,probe_rpmverify_req_deps_ok=no,' configure || die + sed -i 's,probe_rpmverify_opt_deps_ok=yes,probe_rpmverify_opt_deps_ok=no,' configure || die + sed -i 's,^probe_rpm.*_deps_missing=,&disabled by USE flag,' configure || die + sed -i 's,.*rpm.*,#&,' tests/mitre/test_mitre.sh || die + fi + if ! use selinux ; then + sed -i 's,.*selinux.*,#&,' tests/mitre/test_mitre.sh || die + fi +} + +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 + find "${D}" -name '*.la' -delete || die + sed -i 's/^Description/&:/' "${D}"/usr/$(get_libdir)/pkgconfig/libopenscap.pc || 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 + dobashcomp "${D}"/etc/bash_completion.d/oscap + fi + rm -rf "${D}"/etc/bash_completion.d || die +} |