swift       15/06/09 15:46:14

  Modified:             ChangeLog
  Added:                checkpolicy-9999.ebuild
  Log:
  Adding checkpolicy-9999 to better support upstream integrations
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
0x2EDD52403B68AF47)

Revision  Changes    Path
1.88                 sys-apps/checkpolicy/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/checkpolicy/ChangeLog?rev=1.88&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/checkpolicy/ChangeLog?rev=1.88&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/checkpolicy/ChangeLog?r1=1.87&r2=1.88

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- ChangeLog   10 May 2015 09:07:48 -0000      1.87
+++ ChangeLog   9 Jun 2015 15:46:14 -0000       1.88
@@ -1,6 +1,11 @@
 # ChangeLog for sys-apps/checkpolicy
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.87 
2015/05/10 09:07:48 perfinion Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.88 
2015/06/09 15:46:14 swift Exp $
+
+*checkpolicy-9999 (09 Jun 2015)
+
+  09 Jun 2015; Sven Vermeulen <[email protected]> +checkpolicy-9999.ebuild:
+  Adding checkpolicy-9999 to better support upstream integrations
 
   10 May 2015; Jason Zaman <[email protected]> checkpolicy-2.4.ebuild:
   stabilize selinux 2.4 userland



1.1                  sys-apps/checkpolicy/checkpolicy-9999.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/checkpolicy/checkpolicy-9999.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/checkpolicy/checkpolicy-9999.ebuild?rev=1.1&content-type=text/plain

Index: checkpolicy-9999.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-9999.ebuild,v 1.1 
2015/06/09 15:46:14 swift Exp $

EAPI="5"

inherit toolchain-funcs eutils

MY_P="${P//_/-}"
MY_RELEASEDATE="20150202"

SEPOL_VER="${PV}"
SEMNG_VER="${PV}"

DESCRIPTION="SELinux policy compiler"
HOMEPAGE="http://userspace.selinuxproject.org";

if [[ ${PV} == 9999 ]] ; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
        S="${WORKDIR}/${MY_P}/${PN}"
else
        
SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz";
        KEYWORDS="~amd64 ~x86"
        S="${WORKDIR}/${MY_P}"
fi

LICENSE="GPL-2"
SLOT="0"
IUSE="debug"

DEPEND=">=sys-libs/libsepol-${SEPOL_VER}
        >=sys-libs/libsemanage-${SEMNG_VER}
        sys-devel/flex
        sys-devel/bison"

RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}"

src_prepare() {
        epatch_user
}

src_compile() {
        emake CC="$(tc-getCC)" YACC="bison -y" LIBDIR="\$(PREFIX)/$(get_libdir)"
}

src_install() {
        emake DESTDIR="${D}" install

        if use debug; then
                dobin "${S}/test/dismod"
                dobin "${S}/test/dispol"
        fi
}

pkg_postinst() {
        einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 
-d ' '` policy."
}




Reply via email to