1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 MY_RELEASEDATE="20191204"
13 if [[ ${PV} == *9999 ]] ; then
15 EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
16 S="${WORKDIR}/${MY_P}/${PN}"
18 SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_RELEASEDATE}/${MY_P}.tar.gz"
19 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
20 S="${WORKDIR}/${MY_P}"
23 DESCRIPTION="Daemon to watch for creation and set default SELinux fcontexts"
24 HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
29 DEPEND=">=sys-libs/libsepol-${PV}:=
30 >=sys-libs/libselinux-${PV}:=
33 >=sys-libs/libcap-1.10-r10:="
36 !<sys-apps/policycoreutils-2.7_pre"
41 sed -i 's/-Werror//g' "${S}"/Makefile || die "Failed to remove Werror"
50 emake DESTDIR="${D}" install
52 rm -rf "${D}/etc/rc.d" || die
54 newinitd "${FILESDIR}/restorecond.init" restorecond