summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Vermeulen <swift@gentoo.org>2013-09-26 08:19:15 +0000
committerSven Vermeulen <swift@gentoo.org>2013-09-26 08:19:15 +0000
commit6ea656f4843b5c087313d88b94b4f2a207a82dd3 (patch)
treebc091442ca2d7c1017086a3053f6152f37af2ad8
parentInitial import. (diff)
downloadhistorical-6ea656f4843b5c087313d88b94b4f2a207a82dd3.tar.gz
historical-6ea656f4843b5c087313d88b94b4f2a207a82dd3.tar.bz2
historical-6ea656f4843b5c087313d88b94b4f2a207a82dd3.zip
Add live ebuild for openscap
Package-Manager: portage-2.2.1/cvs/Linux x86_64 Manifest-Sign-Key: 0x2EDD52403B68AF47
-rw-r--r--app-forensics/openscap/ChangeLog7
-rw-r--r--app-forensics/openscap/Manifest33
-rw-r--r--app-forensics/openscap/openscap-9999.ebuild155
3 files changed, 177 insertions, 18 deletions
diff --git a/app-forensics/openscap/ChangeLog b/app-forensics/openscap/ChangeLog
index 7c8d7ded2c6e..848fa1709a55 100644
--- a/app-forensics/openscap/ChangeLog
+++ b/app-forensics/openscap/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-forensics/openscap
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/ChangeLog,v 1.24 2013/09/19 15:31:32 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/ChangeLog,v 1.25 2013/09/26 08:19:06 swift Exp $
+
+*openscap-9999 (26 Sep 2013)
+
+ 26 Sep 2013; Sven Vermeulen <swift@gentoo.org> +openscap-9999.ebuild:
+ Add live ebuild for openscap
*openscap-0.9.12 (19 Sep 2013)
diff --git a/app-forensics/openscap/Manifest b/app-forensics/openscap/Manifest
index 489cb37cf024..61430704d66d 100644
--- a/app-forensics/openscap/Manifest
+++ b/app-forensics/openscap/Manifest
@@ -7,24 +7,23 @@ DIST openscap-0.9.8.tar.gz 12688640 SHA256 977fd8a0196c3dce727b9b166777385565a7c
EBUILD openscap-0.9.12.ebuild 4108 SHA256 02aab6d619a8190950b338d0f4e2ce53e3fe0580ebe43e0b1fc453da2a5863fc SHA512 91ab1d9332bf7214ffaaa2f02f3fb5731e4576ff37f52caa1fbf6224ab68bd26c9cc2319757d1a7c21c792da35e2bdf1aa00a50d5b37e4423d17fb11557a630b WHIRLPOOL 45f00812938fe636dc8dead415160197a8b99b2a41efc31e1eb9985070e28b9962b7b33f1e313d46d3edb87c24bc56d925ff2571355a9b78b4d26c9b9a930b06
EBUILD openscap-0.9.4.1.ebuild 3834 SHA256 441bdd72ee9a890566e86edc221fba732c7914b96c87841a508368bcfda717b1 SHA512 bf40561aa07ae2c437c3922fb2c823268c034d9b76f0429a041583d005ef669b58ac578fc90c9146419d8603e27681d28e1d5e57baef4dbe80d19ac1297438e6 WHIRLPOOL 1f37d539ce40469fa4c205ecc632014fa8df4ae41b967c32a255ed812ce1ed5ad6f8512da6230397b5b8fc2b7db50b4586eef00229dad13eb010461b20f150f5
EBUILD openscap-0.9.8.ebuild 3920 SHA256 7f4acec7bfd7c474d88b968101559bfcdd482a21dd53e2b51598eea095214081 SHA512 c86bf47e61efa822b7c411f0c6db6ddc6cbeef64dca1dd1bb6939f83da6a006689b6ff2dee1da95491da1bb3496c5a6dc573d1490aa9513afb93ebe907b6e1f7 WHIRLPOOL 8ddf3e5169c185753296a6f009bd56d99405326e07e6da6b3069bc3f657833b61c2567e7c28a4eeb1115b983d3c3eedc33228f7c06972781cf49e0e9e8bbacf4
-MISC ChangeLog 4620 SHA256 8f4f99f74d91c4fb7a34fb0d5747adeb3aee31453cc41c63c414ac34b0bcda60 SHA512 145cad10ee75906c83b4ae2069c1c67b4b845674a36f296fedefebaa2f95f989b50540d4492a53d7aec09d92ac13fe923088608c325ca428a70dfcb661b57f6e WHIRLPOOL 5dc676fcbdf198a2479f5b002136293165f83cdc70bae84f397727f6f1ba2e0452b2e2b08b826f01dc54b9bf16a2c94a0c2baad8d9d796a45617bfc6db6d8f51
+EBUILD openscap-9999.ebuild 4704 SHA256 46302192b377ed8a16aff15ec5426a1ac18cc0299d82ffe2c3e217afbe1d7b9e SHA512 b99f3724959d11780522d95f8741b7d1a775af0e376d7c2367def91ba0a6894cc673608ade9d0c90e68cbf3e2a896e2c086a77e691583e50809ea39c78747bcb WHIRLPOOL 4d6c80f0580ccc4983a08d4d054646438f5fab7fae953c74d93b41df2b5f54ac69108fbf98a231bb5fa3b29c9a4a39c5e2b32d61065adc23aad309ac4d056175
+MISC ChangeLog 4751 SHA256 c4a51ba6830761bcc1338d7434ff0188bf688a0f5b10d5fa9f5933311a0666cb SHA512 72333275017ef726b4e52535aee13d47881a2ffcdea93ea5d3a041a78a9731b8f6cc930d6a03873a0777fb067362f1d71cebb713cecf839fef153adca062fec8 WHIRLPOOL 704f9c0e646968f8a595694c78f6e15ba10722483567a4b418cb0ef8e77f371411f8f92533b39002a11bfdaba2878cb845cf7bf3ccbdbe125268f884632d4ad4
MISC metadata.xml 618 SHA256 71ee7e7ff4c112a01d76fbdb0bff700309e039aeda9dfc270f73f09587a76f1e SHA512 9cfb7313c3d454df8d7b21c560f1d3e7095da540585ef5930ea5ab555a448156188bef081c4420ee4238683ee3f0f2054e6b39659af4f9af3a3548134940d7e1 WHIRLPOOL c0711f439a4fa09a42f4f8975b6225730a044e3e389d52dbc43101e3d8dbc8b53b84de41a4fdee0d0ee833b9c6dcd09e81def1cb777e290b64167713de851b08
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.21 (GNU/Linux)
+Version: GnuPG v2.0.20 (GNU/Linux)
-iQJ8BAEBCABmBQJSOxiMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
-ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw
-OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun88PpEP/iYrlJe6VV6fMtuV65NUfLas
-7zdXZ2/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+XDE6vcK/nyWN+BhLXIdpsH3oaxbLJ/pdZ+/EgYd9jnlm9OLwwBn8Eab7dR9mu/NR
+GOo1EJXN82Vwz+O6aF/39sEjMabc9qdLBppvdgEuPhHQN83SYrBIFPQcEIP0si5q
+n9Kh1BU95q7BA2XAmRoLJ2lyoYrFz8TUA1B7mBTpoKPu+HmIiAqkoFJWS8m1yHU/
+XRXv5FlZr5dPuOWMj3YVetj51VJh7y9Y//eh9oKkYtN6ZuLJIfgtcbhbCC3U8clE
+2K6rrSLUyOmK5xC8EnxGXzojnbew+WGasmsKsWyhtRdBNf/+z8A95iX0ffDPIxOy
+/rZYXuJgwHnjw04tUF4O
+=iFKk
-----END PGP SIGNATURE-----
diff --git a/app-forensics/openscap/openscap-9999.ebuild b/app-forensics/openscap/openscap-9999.ebuild
new file mode 100644
index 000000000000..0926190e719f
--- /dev/null
+++ b/app-forensics/openscap/openscap-9999.ebuild
@@ -0,0 +1,155 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/openscap-9999.ebuild,v 1.1 2013/09/26 08:19:06 swift Exp $
+
+EAPI=5
+
+PYTHON_DEPEND="2"
+PYTHON_COMPAT=( python{2_5,2_6,2_7} )
+
+inherit bash-completion-r1 eutils multilib python-r1
+
+DESCRIPTION="Framework which enables integration with the Security Content Automation Protocol (SCAP)"
+HOMEPAGE="http://www.open-scap.org/"
+if [[ "${PV}" != "9999" ]];
+then
+ SRC_URI="https://fedorahosted.org/releases/o/p/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+else
+ inherit git-2 autotools
+ EGIT_REPO_URI="git://git.fedorahosted.org/git/openscap.git"
+ EGIT_SOURCEDIR="${WORKDIR}/openscap"
+ KEYWORDS=""
+ S="${WORKDIR}/${PN}"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="bash-completion debug doc ldap nss perl python rpm selinux sce sql test"
+RESTRICT="test"
+
+RDEPEND="!nss? ( dev-libs/libgcrypt )
+ nss? ( dev-libs/nss )
+ ldap? ( net-nds/openldap )
+ rpm? ( >=app-arch/rpm-4.9 )
+ sql? ( dev-db/opendbx )
+ dev-libs/libpcre
+ dev-libs/libxml2
+ dev-libs/libxslt
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ perl? ( dev-lang/swig )
+ python? ( dev-lang/swig )
+ test? (
+ app-arch/unzip
+ dev-perl/XML-XPath
+ net-misc/ipcalc
+ sys-apps/grep )"
+
+src_unpack() {
+ if [[ "${PV}" == "9999" ]];
+ then
+ git-2_src_unpack
+ fi
+}
+
+src_prepare() {
+# uncoment for debugging test
+# sed -i 's,set -e,&;set -x,' tests/API/XCCDF/unittests/test_remediate_simple.sh || die
+ sed -i 's,^ bash, LC_ALL=C bash,' tests/probes/process/test_probes_process.sh || die
+
+ sed -i 's/uname -p/uname -m/' tests/probes/uname/test_probes_uname.xml.sh || die
+
+ #probe runlevel for non-centos/redhat/fedora is not implemented
+ sed -i 's,.*runlevel_test.*,echo "runlevel test bypassed",' tests/mitre/test_mitre.sh || die
+ 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
+
+ # theses tests are hardcoded for checking hald process...,
+ # but no good solution for the moment, disabling them with a fake echo
+ # because encased in a if then
+# sed -i 's,ha.d,/sbin/udevd --daemon,g' tests/mitre/unix-def_process_test.xml || die
+# sed -i 's,ha.d,/sbin/udevd --daemon,g' tests/mitre/unix-def_process58_test.xml || die
+ sed -i 's,.*process_test.*,echo "process test bypassed",' tests/mitre/test_mitre.sh || die
+ sed -i 's,.*process58_test.*,echo "process58 test bypassed",' tests/mitre/test_mitre.sh || die
+
+ #This test fail
+ sed -i 's,.*generate report: xccdf,#&,' tests/API/XCCDF/unittests/all.sh || die
+
+ if [[ "${PV}" == "9999" ]];
+ then
+ eautoreconf
+ fi
+
+ 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
+ einfo "Disabling SELinux probes"
+ sed -i 's,.*selinux.*, echo "SELinux test bypassed",' tests/mitre/test_mitre.sh || die
+ #process58 need selinux
+ sed -i 's,.*process58,#&,' tests/mitre/test_mitre.sh || die
+ fi
+ if ! use ldap; then
+ einfo "Disabling LDAP probes"
+ sed -i 's,ldap.h,ldapp.h,g' configure || die
+ fi
+
+ epatch_user
+}
+
+src_configure() {
+ local myconf
+ if use debug ; then
+ myconf+=" --enable-debug"
+ fi
+ if use python ; then
+ myconf+=" --enable-python"
+ else
+ myconf+=" --enable-python=no"
+ fi
+ if use perl ; then
+ myconf+=" --enable-perl"
+ fi
+ if use nss ; then
+ myconf+=" --with-crypto=nss3"
+ else
+ myconf+=" --with-crypto=gcrypt"
+ fi
+ if use sce ; then
+ myconf+=" --enable-sce"
+ else
+ myconf+=" --enable-sce=no"
+ fi
+ econf ${myconf}
+}
+
+src_compile() {
+ emake
+ if [[ "${PV}" == "9999" ]] && use doc ; then
+ einfo "Building HTML documentation using Doxygen (which will take a while)"
+ cd docs && doxygen Doxyfile
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ find "${D}" -name '*.la' -delete || die
+ 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
+}