summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Vermeulen <swift@gentoo.org>2013-09-17 08:51:27 +0000
committerSven Vermeulen <swift@gentoo.org>2013-09-17 08:51:27 +0000
commit825c6ea0f9f44bac4dcb4c7c19a4e724f3000c33 (patch)
tree82b23fc6888fc79f881a6015e2bac1edc5d7a14e /dev-python/sepolgen
parentFix dependencies and example install. Do not explicitly call wrapped nosetest... (diff)
downloadgentoo-2-825c6ea0f9f44bac4dcb4c7c19a4e724f3000c33.tar.gz
gentoo-2-825c6ea0f9f44bac4dcb4c7c19a4e724f3000c33.tar.bz2
gentoo-2-825c6ea0f9f44bac4dcb4c7c19a4e724f3000c33.zip
Fix bug 485178 - Correct SELINUX_DEVEL_PATH to handle semanage and sepolgen-ifgen
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)
Diffstat (limited to 'dev-python/sepolgen')
-rw-r--r--dev-python/sepolgen/ChangeLog8
-rw-r--r--dev-python/sepolgen/sepolgen-1.1.9-r4.ebuild62
2 files changed, 69 insertions, 1 deletions
diff --git a/dev-python/sepolgen/ChangeLog b/dev-python/sepolgen/ChangeLog
index 37ae6048283c..6b198e9c2d80 100644
--- a/dev-python/sepolgen/ChangeLog
+++ b/dev-python/sepolgen/ChangeLog
@@ -1,6 +1,12 @@
# 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.34 2013/07/19 20:16:05 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/ChangeLog,v 1.35 2013/09/17 08:51:27 swift Exp $
+
+*sepolgen-1.1.9-r4 (17 Sep 2013)
+
+ 17 Sep 2013; Sven Vermeulen <swift@gentoo.org> +sepolgen-1.1.9-r4.ebuild:
+ Fix bug 485178 - Correct SELINUX_DEVEL_PATH to handle semanage and sepolgen-
+ ifgen
*sepolgen-1.1.9-r3 (19 Jul 2013)
diff --git a/dev-python/sepolgen/sepolgen-1.1.9-r4.ebuild b/dev-python/sepolgen/sepolgen-1.1.9-r4.ebuild
new file mode 100644
index 000000000000..5b76349e4736
--- /dev/null
+++ b/dev-python/sepolgen/sepolgen-1.1.9-r4.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-r4.ebuild,v 1.1 2013/09/17 08:51:27 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:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
+}