diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2007-10-18 19:17:26 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2007-10-18 19:17:26 +0000 |
commit | c72b5b1fd904bf4c21ae88c070fba2ff09a7168f (patch) | |
tree | 6994b511e528ec44f8decf541ff0f341621ca7e8 /sys-libs | |
parent | alpha stable, thanks to Tobias Klausmann for testing (diff) | |
download | gentoo-2-c72b5b1fd904bf4c21ae88c070fba2ff09a7168f.tar.gz gentoo-2-c72b5b1fd904bf4c21ae88c070fba2ff09a7168f.tar.bz2 gentoo-2-c72b5b1fd904bf4c21ae88c070fba2ff09a7168f.zip |
new upstream stable release.
(Portage version: 2.1.3.14)
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libselinux/ChangeLog | 8 | ||||
-rw-r--r-- | sys-libs/libselinux/files/digest-libselinux-1.34.13 | 3 | ||||
-rw-r--r-- | sys-libs/libselinux/libselinux-1.34.13.ebuild | 58 |
3 files changed, 68 insertions, 1 deletions
diff --git a/sys-libs/libselinux/ChangeLog b/sys-libs/libselinux/ChangeLog index 65c0f40523ef..58420dbdb043 100644 --- a/sys-libs/libselinux/ChangeLog +++ b/sys-libs/libselinux/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-libs/libselinux # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.55 2007/06/04 00:39:44 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.56 2007/10/18 19:17:25 pebenito Exp $ + +*libselinux-1.34.13 (18 Oct 2007) + + 18 Oct 2007; Chris PeBenito <pebenito@gentoo.org> + +libselinux-1.34.13.ebuild: + New upstream release. 04 Jun 2007; Chris PeBenito <pebenito@gentoo.org> libselinux-1.34.0.ebuild: diff --git a/sys-libs/libselinux/files/digest-libselinux-1.34.13 b/sys-libs/libselinux/files/digest-libselinux-1.34.13 new file mode 100644 index 000000000000..a01a40011ef6 --- /dev/null +++ b/sys-libs/libselinux/files/digest-libselinux-1.34.13 @@ -0,0 +1,3 @@ +MD5 ff7816883adcb5a14c38a8b035c0ee23 libselinux-1.34.13.tgz 130187 +RMD160 da973c8e2522cb4f68086890c0eb6a4029d449ca libselinux-1.34.13.tgz 130187 +SHA256 cd25c17d9cdf098960e79776830dd2a6968761154c844a9dd57e933c7c66730b libselinux-1.34.13.tgz 130187 diff --git a/sys-libs/libselinux/libselinux-1.34.13.ebuild b/sys-libs/libselinux/libselinux-1.34.13.ebuild new file mode 100644 index 000000000000..4c20ae896d96 --- /dev/null +++ b/sys-libs/libselinux/libselinux-1.34.13.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-1.34.13.ebuild,v 1.1 2007/10/18 19:17:25 pebenito Exp $ + +IUSE="" + +inherit eutils multilib python + +#BUGFIX_PATCH="${FILESDIR}/libselinux-1.30.3.diff" + +SEPOL_VER="1.16" + +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}* + dev-lang/swig" + +src_unpack() { + unpack ${A} + cd ${S} + + [ ! -z "${BUGFIX_PATCH}" ] && epatch "${BUGFIX_PATCH}" + + # 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 LDFLAGS="-fPIC ${LDFLAGS}" all || die + emake PYLIBVER="python${PYVER}" LDFLAGS="-fPIC ${LDFLAGS}" pywrap || 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 install-pywrap || die +} + +pkg_postinst() { + python_version + python_mod_optimize ${ROOT}usr/lib/python${PYVER}/site-packages +} + +pkg_postrm() { + python_version + python_mod_cleanup ${ROOT}usr/lib/python${PYVER}/site-packages +} |