diff options
author | Jason Zaman <perfinion@gentoo.org> | 2017-06-13 13:10:53 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2017-06-13 23:10:43 +0800 |
commit | cd3fcf6b87f13bafe3a73abce4e179a2623040e3 (patch) | |
tree | 08b71eab94b72b668041fa8ce2aa3f336515b620 /sys-apps | |
parent | sys-libs/libsemanage: update live ebuild (diff) | |
download | gentoo-cd3fcf6b87f13bafe3a73abce4e179a2623040e3.tar.gz gentoo-cd3fcf6b87f13bafe3a73abce4e179a2623040e3.tar.bz2 gentoo-cd3fcf6b87f13bafe3a73abce4e179a2623040e3.zip |
sys-apps/checkpolicy: bump to 2.7_rc1
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/checkpolicy/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/checkpolicy/checkpolicy-2.7_rc1.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest index d910f2667bdb..a588b511a5b6 100644 --- a/sys-apps/checkpolicy/Manifest +++ b/sys-apps/checkpolicy/Manifest @@ -1,2 +1,3 @@ DIST checkpolicy-2.5.tar.gz 69857 SHA256 33af9f3eb19135a7e6536ecd3fbb9686323000016cd51eb88346346ed7546001 SHA512 cbbb57fabc26951e7a61fc867720f34d8c9ccf259744e86c1fa8d5e8099d90dee7c8e69dd001c4f3224562c3e0aff36051b0d227ac102790f94a104ca90163ad WHIRLPOOL f4339877514da938c995a33558317f3d8b9110127c36e3f6c3e916ccff73c84dcc3f4e2e944c571962d1594d02cb6236ecaf616f12d1de52fca7e1b859980d72 DIST checkpolicy-2.6.tar.gz 69748 SHA256 0bebd18688ca8027b1b3b4ff1532c0626f1fe49883ae6cb74d9d385940e74157 SHA512 1d8361a5735410909be7fe5a54740e0e1b6339d0fbad9965f3ae2902e7eaaec7531fec1dd73bb57b28ad933773778ab50b97db3d92aacf5fac3b63d1ed364b46 WHIRLPOOL ac5407796114f54b11fb96220dad47706a111d99ad072bfb29868fd4646106c647b33631fa4b6d250e3f01550f79e369a8de14523dab861d1c13e45c91041ac2 +DIST checkpolicy-2.7-rc1.tar.gz 65984 SHA256 b86211596b6a57363cee52fcbf3a647ee36fd4c7b208211cb27020f952123e9d SHA512 fc833821b7ee4edc191b14cbf94b4d252b5380c7a5e917c16ce8840ec10b42ff23673342d63a9d8cf1f95b995e64b4687c01902d74b93a5a6ffeb4f1c9e9547a WHIRLPOOL c5bc8055ca9525dded2152bc994aa2ff7b6d79505fb94da3acc55b3bb80eac4367367d63e5837c0f93997b475f19d519387b6ad0e5933a5bb0a255fd6747bcab diff --git a/sys-apps/checkpolicy/checkpolicy-2.7_rc1.ebuild b/sys-apps/checkpolicy/checkpolicy-2.7_rc1.ebuild new file mode 100644 index 000000000000..b9745272e577 --- /dev/null +++ b/sys-apps/checkpolicy/checkpolicy-2.7_rc1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +MY_P="${P//_/-}" +MY_RELEASEDATE="20170609" + +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 ~arm ~arm64 ~mips ~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_compile() { + emake \ + CC="$(tc-getCC)" \ + YACC="bison -y" \ + LIBDIR="\$(PREFIX)/$(get_libdir)" +} + +src_install() { + emake DESTDIR="${D}" \ + LIBSEPOLA="/usr/$(get_libdir)/libsepol.a" \ + 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." +} |