diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2006-02-20 01:42:30 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2006-02-20 01:42:30 +0000 |
commit | dcf8189174d4d7d49dc7f1253f14bcee89fdce81 (patch) | |
tree | 9a0f87b19d54adbb937c6d3747edc1307b4735ee /sys-libs/libselinux | |
parent | Marked stable on mips. (diff) | |
download | gentoo-2-dcf8189174d4d7d49dc7f1253f14bcee89fdce81.tar.gz gentoo-2-dcf8189174d4d7d49dc7f1253f14bcee89fdce81.tar.bz2 gentoo-2-dcf8189174d4d7d49dc7f1253f14bcee89fdce81.zip |
Add python-selinux compatability aliases to swig wrapper.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'sys-libs/libselinux')
-rw-r--r-- | sys-libs/libselinux/ChangeLog | 8 | ||||
-rw-r--r-- | sys-libs/libselinux/files/compat.py | 18 | ||||
-rw-r--r-- | sys-libs/libselinux/files/digest-libselinux-1.28-r1 | 1 | ||||
-rw-r--r-- | sys-libs/libselinux/libselinux-1.28-r1.ebuild | 42 |
4 files changed, 68 insertions, 1 deletions
diff --git a/sys-libs/libselinux/ChangeLog b/sys-libs/libselinux/ChangeLog index 6c1e05cb46a8..69b4cce3c889 100644 --- a/sys-libs/libselinux/ChangeLog +++ b/sys-libs/libselinux/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-libs/libselinux # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.42 2006/02/19 22:00:24 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.43 2006/02/20 01:42:30 pebenito Exp $ + +*libselinux-1.28-r1 (20 Feb 2006) + + 20 Feb 2006; Chris PeBenito <pebenito@gentoo.org> +files/compat.py, + +libselinux-1.28-r1.ebuild: + Add python-selinux compatability aliases to swig wrapper. 19 Feb 2006; Joshua Kinard <kumba@gentoo.org> libselinux-1.28.ebuild: Marked stable on mips. diff --git a/sys-libs/libselinux/files/compat.py b/sys-libs/libselinux/files/compat.py new file mode 100644 index 000000000000..b0bf65b58474 --- /dev/null +++ b/sys-libs/libselinux/files/compat.py @@ -0,0 +1,18 @@ +# compatability aliases for python-selinux +try: + import selinux_aux + + enabled = selinux_aux.enabled + + get_lsid = selinux_aux.get_lsid + get_sid = selinux_aux.get_sid + set_sid = selinux_aux.set_sid + secure_rename = selinux_aux.secure_rename + secure_copy = selinux_aux.secure_copy + secure_mkdir = selinux_aux.secure_mkdir + secure_symlink = selinux_aux.secure_symlink + setexec = selinux_aux.setexec + getcontext = selinux_aux.getcontext + +except: + pass diff --git a/sys-libs/libselinux/files/digest-libselinux-1.28-r1 b/sys-libs/libselinux/files/digest-libselinux-1.28-r1 new file mode 100644 index 000000000000..c05515454d17 --- /dev/null +++ b/sys-libs/libselinux/files/digest-libselinux-1.28-r1 @@ -0,0 +1 @@ +MD5 7e121e125b52913237df458ff610e983 libselinux-1.28.tgz 109236 diff --git a/sys-libs/libselinux/libselinux-1.28-r1.ebuild b/sys-libs/libselinux/libselinux-1.28-r1.ebuild new file mode 100644 index 000000000000..e0f29371dd78 --- /dev/null +++ b/sys-libs/libselinux/libselinux-1.28-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-1.28-r1.ebuild,v 1.1 2006/02/20 01:42:30 pebenito Exp $ + +IUSE="" + +SEPOL_VER="1.10" + +inherit eutils multilib python + +DESCRIPTION="SELinux userland library" +HOMEPAGE="http://www.nsa.gov/selinux" +SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz" +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~mips ~ppc ~sparc ~x86" + +DEPEND="=sys-libs/libsepol-${SEPOL_VER}*" + +src_unpack() { + unpack ${A} + cd ${S} + + # fix up paths for multilib + sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" ${S}/src/Makefile \ + || die "Fix for multilib LIBDIR failed." + sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" ${S}/src/Makefile \ + || die "Fix for multilib SHLIBDIR failed." +} + +src_compile() { + python_version + emake PYLIBVER="python${PYVER}" LDFLAGS="-fPIC ${LDFLAGS}" || die + + # add compatability aliases to swig wrapper + cat ${FILESDIR}/compat.py >> ${S}/src/selinux.py || die +} + +src_install() { + python_version + make DESTDIR="${D}" PYLIBVER="python${PYVER}" install +} |