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 | 1e1fdf7e902153e79c4ed4f0708090dd23ea31cc (patch) | |
tree | 32de1e5682f0fbee586b2fff89e72f295c1145ed /sys-libs | |
parent | Marked stable on mips. (diff) | |
download | historical-1e1fdf7e902153e79c4ed4f0708090dd23ea31cc.tar.gz historical-1e1fdf7e902153e79c4ed4f0708090dd23ea31cc.tar.bz2 historical-1e1fdf7e902153e79c4ed4f0708090dd23ea31cc.zip |
Add python-selinux compatability aliases to swig wrapper.
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libselinux/ChangeLog | 8 | ||||
-rw-r--r-- | sys-libs/libselinux/Manifest | 33 | ||||
-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 |
5 files changed, 100 insertions, 2 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/Manifest b/sys-libs/libselinux/Manifest index 69bbaf66bafe..8542276557bd 100644 --- a/sys-libs/libselinux/Manifest +++ b/sys-libs/libselinux/Manifest @@ -1,6 +1,37 @@ -MD5 fc386dc01e78c9bbc1678de1b14eb0d5 ChangeLog 6038 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 1215495171872c8b887e6e6bbb3c959a ChangeLog 6237 +RMD160 415131bea0a689d78b6451991f065e371850da4f ChangeLog 6237 +SHA256 03d310514116baa98239ec5072e237ff8af99433de3d5e8225427c42f4eed117 ChangeLog 6237 +MD5 ca253cc3a0e643b8d3e209a53d66dd50 files/compat.py 461 +RMD160 ae776a51f27564321845126c39874eab953a41cd files/compat.py 461 +SHA256 d3b3efe9b9fd946c917a6faccca715c4056748b9c861080fe6f6d7cfbaf87f50 files/compat.py 461 MD5 7f7600bda169c50d374156b98d0fa86a files/digest-libselinux-1.24 63 +RMD160 31c0004225219d93b979d3377bb9fda311c1607d files/digest-libselinux-1.24 63 +SHA256 2100e45d94c1c924bd0f3d78aab9518beee03042cae80f210c834117a8112d7b files/digest-libselinux-1.24 63 MD5 5c9f2de785e321be6926afae539f05b9 files/digest-libselinux-1.28 64 +RMD160 b4d452d84a499eb57393ab039b39f18f58eae544 files/digest-libselinux-1.28 64 +SHA256 d62c87d4fa403f7f490373767803bc0625669f20b415d78d2e708ac80bce2b6e files/digest-libselinux-1.28 64 +MD5 5c9f2de785e321be6926afae539f05b9 files/digest-libselinux-1.28-r1 64 +RMD160 b4d452d84a499eb57393ab039b39f18f58eae544 files/digest-libselinux-1.28-r1 64 +SHA256 d62c87d4fa403f7f490373767803bc0625669f20b415d78d2e708ac80bce2b6e files/digest-libselinux-1.28-r1 64 MD5 40825b53dc0b57fadf0823982bdac34b libselinux-1.24.ebuild 1131 +RMD160 db35bec0f296a30cbfa5b66f8c1ed5f5951b0614 libselinux-1.24.ebuild 1131 +SHA256 c1d1d535b29bc7ef933e176fbfec760ead886be551c8b4f2fffdec19057caca6 libselinux-1.24.ebuild 1131 +MD5 80d985283c695cc38c3a2b9c699806e6 libselinux-1.28-r1.ebuild 1126 +RMD160 bc21e676ae42f0c69525802bc5bf5543049db27e libselinux-1.28-r1.ebuild 1126 +SHA256 daaf6568f7847de8b33cdae57c6423a0d95e1c4d5d0bd72c2cccf812b08bfb9a libselinux-1.28-r1.ebuild 1126 MD5 4090250ba663c1da5eba7973bbd29b44 libselinux-1.28.ebuild 1027 +RMD160 c32a3c67ba8a7b8b989f7ffc2a74a1a8253cb92f libselinux-1.28.ebuild 1027 +SHA256 45d78523f2a05a63fd127bb81a1889085f54f84c96fea687ea0d5085b3a607ec libselinux-1.28.ebuild 1027 MD5 652c5e8a0a081bf4317359f04f65a603 metadata.xml 537 +RMD160 6adcd5fc653db8ad7780299214875297beb9c931 metadata.xml 537 +SHA256 e691ecff0c45ccbd6cf813fbd7f23e489dabad664e89e6b21b8c7c1785550f9e metadata.xml 537 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.2 (GNU/Linux) + +iD8DBQFD+R6RJ+ChZlpDtAoRAj/JAJ41SjnWPzl+NhpPDKKdw/BagsIcYwCdH1cd +n4KNrY9t4zRlGzfk/cbs3BU= +=6Qh5 +-----END PGP SIGNATURE----- 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 +} |