summaryrefslogtreecommitdiff
blob: 0b9ca1b9cef6bb1b3b18e4390ab5236947cd5fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-selinux/python-selinux-1.2.ebuild,v 1.2 2003/09/06 23:32:28 msterret Exp $

DESCRIPTION="Python bindings for SELinux functions"
HOMEPAGE="http://selinux.dev.gentoo.org/python"
SRC_URI="http://selinux.dev.gentoo.org/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"

KEYWORDS="~x86"
IUSE="selinux"

DEPEND="sys-apps/selinux-small"
RDEPEND="sys-apps/selinux-small"

S=${WORKDIR}/${PN}

src_compile() {
	cd ${S}
	gcc -shared -o selinux.so -I /usr/include/python2.2/ selinux.c -lsecure
}

src_install() {
	insinto /usr/lib/python2.2/site-packages
	doins selinux.so
}