swift       14/08/08 18:49:42

  Modified:             selinux-base-policy-9999.ebuild ChangeLog
  Log:
  Make 9999 ebuilds EAPI=5 and transform to make master for version bumps
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
0x2EDD52403B68AF47)

Revision  Changes    Path
1.9                  
sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild?rev=1.9&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild?rev=1.9&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild?r1=1.8&r2=1.9

Index: selinux-base-policy-9999.ebuild
===================================================================
RCS file: 
/var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- selinux-base-policy-9999.ebuild     6 Aug 2014 10:20:35 -0000       1.8
+++ selinux-base-policy-9999.ebuild     8 Aug 2014 18:49:42 -0000       1.9
@@ -1,25 +1,35 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: 
/var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild,v
 1.8 2014/08/06 10:20:35 swift Exp $
-EAPI="4"
+# $Header: 
/var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild,v
 1.9 2014/08/08 18:49:42 swift Exp $
+EAPI="5"
 
-inherit eutils git-2
+inherit eutils
+
+if [[ ${PV} == 9999* ]]; then
+       
EGIT_REPO_URI="${SELINUX_GIT_REPO:-git://git.overlays.gentoo.org/proj/hardened-refpolicy.git
 https://git.overlays.gentoo.org/gitroot/proj/hardened-refpolicy.git}";
+       EGIT_BRANCH="${SELINUX_GIT_BRANCH:-master}"
+       EGIT_SOURCEDIR="${WORKDIR}/refpolicy"
+
+       inherit git-2
+
+       KEYWORDS=""
+else
+       SRC_URI="http://oss.tresys.com/files/refpolicy/refpolicy-${PV}.tar.bz2
+                       
http://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${PVR}.tar.bz2";
+       KEYWORDS="~amd64 ~x86"
+fi
 
 HOMEPAGE="http://www.gentoo.org/proj/en/hardened/selinux/";
 DESCRIPTION="SELinux policy for core modules"
 
 IUSE="+unconfined"
-BASEPOL="9999"
 
-RDEPEND="=sec-policy/selinux-base-9999"
+RDEPEND="=sec-policy/selinux-base-${PVR}"
 PDEPEND="unconfined? ( sec-policy/selinux-unconfined )"
 DEPEND=""
-EGIT_REPO_URI="${SELINUX_GIT_REPO:-git://git.overlays.gentoo.org/proj/hardened-refpolicy.git
 https://git.overlays.gentoo.org/gitroot/proj/hardened-refpolicy.git}";
-EGIT_BRANCH="${SELINUX_GIT_BRANCH:-master}"
-EGIT_SOURCEDIR="${WORKDIR}/refpolicy"
 KEYWORDS=""
 
-MODS="application authlogin bootloader clock consoletype cron dmesg fstools 
getty hostname hotplug init iptables libraries locallogin logging lvm miscfiles 
modutils mount mta netutils nscd portage raid rsync selinuxutil setrans ssh 
staff storage su sysadm sysnetwork udev userdomain usermanage unprivuser xdg"
+MODS="application authlogin bootloader clock consoletype cron dmesg fstools 
getty hostname hotplug init iptables libraries locallogin logging lvm miscfiles 
modutils mount mta netutils nscd portage raid rsync selinuxutil setrans ssh 
staff storage su sysadm sysnetwork tmpfiles udev userdomain usermanage 
unprivuser xdg"
 LICENSE="GPL-2"
 SLOT="0"
 S="${WORKDIR}/"
@@ -39,6 +49,16 @@
 src_prepare() {
        local modfiles
 
+       if [[ ${PV} != 9999* ]]; then
+               # Patch the source with the base patchbundle
+               cd "${S}"
+               EPATCH_MULTI_MSG="Applying SELinux policy updates ... " \
+               EPATCH_SUFFIX="patch" \
+               EPATCH_SOURCE="${WORKDIR}" \
+               EPATCH_FORCE="yes" \
+               epatch
+       fi
+
        # Apply the additional patches refered to by the module ebuild.
        # But first some magic to differentiate between bash arrays and strings
        if [[ "$(declare -p POLICY_PATCH 2>/dev/null 2>&1)" == "declare -a"* ]];



1.148                sec-policy/selinux-base-policy/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog?rev=1.148&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog?rev=1.148&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog?r1=1.147&r2=1.148

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -r1.147 -r1.148
--- ChangeLog   6 Aug 2014 10:20:35 -0000       1.147
+++ ChangeLog   8 Aug 2014 18:49:42 -0000       1.148
@@ -1,6 +1,10 @@
 # ChangeLog for sec-policy/selinux-base-policy
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 
1.147 2014/08/06 10:20:35 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 
1.148 2014/08/08 18:49:42 swift Exp $
+
+  08 Aug 2014; Sven Vermeulen <[email protected]>
+  selinux-base-policy-9999.ebuild:
+  Make 9999 ebuilds EAPI=5 and transform to make master for version bumps
 
   06 Aug 2014; Sven Vermeulen <[email protected]>
   selinux-base-policy-9999.ebuild:




Reply via email to