/[gentoo-x86]/sys-apps/checkpolicy/checkpolicy-2.4.ebuild
Gentoo

Contents of /sys-apps/checkpolicy/checkpolicy-2.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun May 10 09:07:48 2015 UTC (3 years, 1 month ago) by perfinion
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
stabilize selinux 2.4 userland

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x7EF137EC935B0EAF)

1 # Copyright 1999-2015 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.4.ebuild,v 1.2 2015/03/04 16:00:26 swift Exp $
4
5 EAPI="5"
6
7 inherit toolchain-funcs eutils
8
9 MY_P="${P//_/-}"
10
11 SEPOL_VER="${PV}"
12 SEMNG_VER="${PV}"
13
14 DESCRIPTION="SELinux policy compiler"
15 HOMEPAGE="http://userspace.selinuxproject.org"
16 SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/${MY_P}.tar.gz"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="amd64 x86"
21 IUSE="debug"
22
23 DEPEND=">=sys-libs/libsepol-${SEPOL_VER}
24 >=sys-libs/libsemanage-${SEMNG_VER}
25 sys-devel/flex
26 sys-devel/bison"
27
28 RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}"
29
30 S="${WORKDIR}/${MY_P}"
31
32 src_prepare() {
33 epatch_user
34 }
35
36 src_compile() {
37 emake CC="$(tc-getCC)" YACC="bison -y" LIBDIR="\$(PREFIX)/$(get_libdir)"
38 }
39
40 src_install() {
41 emake DESTDIR="${D}" install
42
43 if use debug; then
44 dobin "${S}/test/dismod"
45 dobin "${S}/test/dispol"
46 fi
47 }
48
49 pkg_postinst() {
50 einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy."
51 }

  ViewVC Help
Powered by ViewVC 1.1.20