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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sat May 10 13:56:18 2014 UTC (7 months, 2 weeks ago) by swift
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Spring cleanup

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)

1 swift 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 swift 1.4 # $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-2.1.11.ebuild,v 1.3 2012/11/17 16:57:55 swift Exp $
4 swift 1.1
5 swift 1.2 inherit toolchain-funcs eutils
6 swift 1.1
7     SEPOL_VER="2.1.8"
8     SEMNG_VER="2.1.9"
9    
10     DESCRIPTION="SELinux policy compiler"
11     HOMEPAGE="http://userspace.selinuxproject.org"
12     SRC_URI="http://userspace.selinuxproject.org/releases/20120924/${P}.tar.gz"
13    
14     LICENSE="GPL-2"
15     SLOT="0"
16 swift 1.3 KEYWORDS="amd64 x86"
17 swift 1.1 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 swift 1.2 src_prepare() {
31     epatch_user
32     }
33    
34 swift 1.1 src_install() {
35     emake DESTDIR="${D}" install || die
36    
37     if use debug; then
38     dobin "${S}/test/dismod"
39     dobin "${S}/test/dispol"
40     fi
41     }
42    
43     pkg_postinst() {
44     einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy."
45     }

  ViewVC Help
Powered by ViewVC 1.1.20