| 1 |
swift |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
|
|
# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-2.1.0.ebuild,v 1.2 2011/10/23 12:40:36 swift Exp $
|
| 4 |
|
|
|
| 5 |
|
|
inherit toolchain-funcs
|
| 6 |
|
|
|
| 7 |
|
|
SEPOL_VER="2.1.4"
|
| 8 |
|
|
SEMNG_VER="2.1.6"
|
| 9 |
|
|
|
| 10 |
|
|
DESCRIPTION="SELinux policy compiler"
|
| 11 |
|
|
HOMEPAGE="http://userspace.selinuxproject.org"
|
| 12 |
|
|
SRC_URI="http://userspace.selinuxproject.org/releases/20120216/${P}.tar.gz"
|
| 13 |
|
|
|
| 14 |
|
|
LICENSE="GPL-2"
|
| 15 |
|
|
SLOT="0"
|
| 16 |
|
|
KEYWORDS="~amd64 ~x86"
|
| 17 |
|
|
IUSE="debug"
|
| 18 |
|
|
|
| 19 |
|
|
DEPEND=">=sys-libs/libsepol-${SEPOL_VER}
|
| 20 |
|
|
>=sys-libs/libsemanage-${SEMNG_VER}
|
| 21 |
|
|
sys-devel/flex
|
| 22 |
|
|
sys-devel/bison"
|
| 23 |
|
|
|
| 24 |
|
|
RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}"
|
| 25 |
|
|
|
| 26 |
|
|
src_compile() {
|
| 27 |
|
|
emake CC="$(tc-getCC)" YACC="bison -y" || die
|
| 28 |
|
|
}
|
| 29 |
|
|
|
| 30 |
|
|
src_install() {
|
| 31 |
|
|
emake DESTDIR="${D}" install || die
|
| 32 |
|
|
|
| 33 |
|
|
if use debug; then
|
| 34 |
|
|
dobin "${S}/test/dismod"
|
| 35 |
|
|
dobin "${S}/test/dispol"
|
| 36 |
|
|
fi
|
| 37 |
|
|
}
|
| 38 |
|
|
|
| 39 |
|
|
pkg_postinst() {
|
| 40 |
|
|
einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy."
|
| 41 |
|
|
}
|