diff options
author | Sven Vermeulen <swift@gentoo.org> | 2013-07-19 20:16:05 +0000 |
---|---|---|
committer | Sven Vermeulen <swift@gentoo.org> | 2013-07-19 20:16:05 +0000 |
commit | da0176e0b1dc4c2dd9018fccd5a14e7391f351fb (patch) | |
tree | 21385aafddaac3afb189051fb197065ce280a443 /dev-python/sepolgen | |
parent | remove old (diff) | |
download | gentoo-2-da0176e0b1dc4c2dd9018fccd5a14e7391f351fb.tar.gz gentoo-2-da0176e0b1dc4c2dd9018fccd5a14e7391f351fb.tar.bz2 gentoo-2-da0176e0b1dc4c2dd9018fccd5a14e7391f351fb.zip |
Move to python-r1, and fix sepolgen tests
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0xCDBA2FDB)
Diffstat (limited to 'dev-python/sepolgen')
-rw-r--r-- | dev-python/sepolgen/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/sepolgen/sepolgen-1.1.9-r3.ebuild | 62 |
2 files changed, 68 insertions, 1 deletions
diff --git a/dev-python/sepolgen/ChangeLog b/dev-python/sepolgen/ChangeLog index 081a1b5e1e0e..37ae6048283c 100644 --- a/dev-python/sepolgen/ChangeLog +++ b/dev-python/sepolgen/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/sepolgen # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/ChangeLog,v 1.33 2013/06/16 18:06:29 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/ChangeLog,v 1.34 2013/07/19 20:16:05 swift Exp $ + +*sepolgen-1.1.9-r3 (19 Jul 2013) + + 19 Jul 2013; Sven Vermeulen <swift@gentoo.org> +sepolgen-1.1.9-r3.ebuild: + Fix bug 467264 - sepolgen tests now succeed; also move to python-r1 16 Jun 2013; Sven Vermeulen <swift@gentoo.org> sepolgen-1.1.9-r2.ebuild: Stabilize diff --git a/dev-python/sepolgen/sepolgen-1.1.9-r3.ebuild b/dev-python/sepolgen/sepolgen-1.1.9-r3.ebuild new file mode 100644 index 000000000000..fbecd6cfb14d --- /dev/null +++ b/dev-python/sepolgen/sepolgen-1.1.9-r3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/sepolgen-1.1.9-r3.ebuild,v 1.1 2013/07/19 20:16:05 swift Exp $ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit python-r1 eutils + +DESCRIPTION="SELinux policy generation library" +HOMEPAGE="http://userspace.selinuxproject.org" +SRC_URI="http://userspace.selinuxproject.org/releases/20130423/${P}.tar.gz + http://dev.gentoo.org/~swift/patches/sepolgen/patchbundle-${P}-r2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=sys-libs/libselinux-2.0[python] + app-admin/setools[python] + ${PYTHON_DEPS}" +RDEPEND="${DEPEND}" + +src_prepare() { + EPATCH_MULTI_MSG="Applying sepolgen patches ... " \ + EPATCH_SUFFIX="patch" \ + EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ + EPATCH_FORCE="yes" \ + epatch + + epatch_user + + python_copy_sources +} + +src_compile() { + : +} + +src_test() { + if has_version sec-policy/selinux-base-policy; then + invoke_sepolgen_test() { + emake test + } + python_foreach_impl invoke_sepolgen_test + else + ewarn "Sepolgen requires sec-policy/selinux-base-policy to run tests." + fi +} + +src_install() { + installation() { + emake DESTDIR="${D}" PYTHONLIBDIR="$(python_get_sitedir)" install + } + python_foreach_impl installation + + # Create sepolgen.conf with different devel location definition + local selinuxtype=$(awk -F'=' '/^SELINUXTYPE/ {print $2}' /etc/selinux/config); + mkdir -p "${D}"/etc/selinux || die "Failed to create selinux directory"; + echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include" > "${D}"/etc/selinux/sepolgen.conf; +} |