summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2006-02-20 01:42:30 +0000
committerChris PeBenito <pebenito@gentoo.org>2006-02-20 01:42:30 +0000
commit1e1fdf7e902153e79c4ed4f0708090dd23ea31cc (patch)
tree32de1e5682f0fbee586b2fff89e72f295c1145ed /sys-libs/libselinux/libselinux-1.28-r1.ebuild
parentMarked stable on mips. (diff)
downloadhistorical-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/libselinux/libselinux-1.28-r1.ebuild')
-rw-r--r--sys-libs/libselinux/libselinux-1.28-r1.ebuild42
1 files changed, 42 insertions, 0 deletions
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
+}