diff options
author | Sven Vermeulen <swift@gentoo.org> | 2014-08-06 08:25:02 +0000 |
---|---|---|
committer | Sven Vermeulen <swift@gentoo.org> | 2014-08-06 08:25:02 +0000 |
commit | 07cb32f2adffa4c7edb25b1bc521f422695c06f8 (patch) | |
tree | 6166055050b23a940e6b3ca4d492c31caa73f994 /eclass/selinux-policy-2.eclass | |
parent | Add ruby21 target. (diff) | |
download | gentoo-2-07cb32f2adffa4c7edb25b1bc521f422695c06f8.tar.gz gentoo-2-07cb32f2adffa4c7edb25b1bc521f422695c06f8.tar.bz2 gentoo-2-07cb32f2adffa4c7edb25b1bc521f422695c06f8.zip |
Adding support for different GIT repos with SELinux policy ebuilds
Diffstat (limited to 'eclass/selinux-policy-2.eclass')
-rw-r--r-- | eclass/selinux-policy-2.eclass | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass index a9de5554555f..9f4ab95b55a4 100644 --- a/eclass/selinux-policy-2.eclass +++ b/eclass/selinux-policy-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.21 2014/03/30 09:14:56 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.22 2014/08/06 08:25:02 swift Exp $ # Eclass for installing SELinux policy, and optionally # reloading the reference-policy based modules. @@ -56,10 +56,29 @@ # override it, but the user. : ${POLICY_TYPES:="targeted strict mcs mls"} +# @ECLASS-VARIABLE: SELINUX_GIT_REPO +# @DESCRIPTION: +# When defined, this variable overrides the default repository URL as used by +# this eclass. It allows end users to point to a different policy repository +# using a single variable, rather than having to set the packagename_LIVE_REPO +# variable for each and every SELinux policy module package they want to install. +# The default value is Gentoo's hardened-refpolicy repository. +: ${SELINUX_GIT_REPO:="git://git.overlays.gentoo.org/proj/hardened-refpolicy.git https://git.overlays.gentoo.org/gitroot/proj/hardened-refpolicy.git"}; + +# @ECLASS-VARIABLE: SELINUX_GIT_BRANCH +# @DESCRIPTION: +# When defined, this variable sets the Git branch to use of the repository. This +# allows for users and developers to use a different branch for the entire set of +# SELinux policy packages, rather than having to override them one by one with the +# packagename_LIVE_BRANCH variable. +# The default value is the 'master' branch. +: ${SELINUX_GIT_BRANCH:="master"}; + extra_eclass="" case ${BASEPOL} in 9999) extra_eclass="git-2"; - EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/hardened-refpolicy.git https://git.overlays.gentoo.org/gitroot/proj/hardened-refpolicy.git"; + EGIT_REPO_URI="${SELINUX_GIT_REPO}"; + EGIT_BRANCH="${SELINUX_GIT_BRANCH}"; EGIT_SOURCEDIR="${WORKDIR}/refpolicy";; esac |