forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-apps/checkpolicy: bump to 2.6-rc1
Package-Manager: portage-2.3.0
- Loading branch information
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST checkpolicy-2.5.tar.gz 69857 SHA256 33af9f3eb19135a7e6536ecd3fbb9686323000016cd51eb88346346ed7546001 SHA512 cbbb57fabc26951e7a61fc867720f34d8c9ccf259744e86c1fa8d5e8099d90dee7c8e69dd001c4f3224562c3e0aff36051b0d227ac102790f94a104ca90163ad WHIRLPOOL f4339877514da938c995a33558317f3d8b9110127c36e3f6c3e916ccff73c84dcc3f4e2e944c571962d1594d02cb6236ecaf616f12d1de52fca7e1b859980d72 | ||
DIST checkpolicy-2.6-rc1.tar.gz 69769 SHA256 3d76ded6a5393ec39710f66414d6a0c9c397d96a1b7b8a3c08e9a24b5c6b2143 SHA512 506aea34ceee6059f7570574a2ccd42f5e8b85eadc32043208a18e5c062bdd341e33c2dcfd7904e9438025c14cc513cc9d2c33924020cfc0311ff2b1c997068c WHIRLPOOL ce32d560a553d435c5a714004c533641e5f5bfe3421beb5e68cbdcf19dabb90fb3659b11050e6665acd97212559afe6e07e2cbd89e357ae60c0c8c0e285bc723 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI="6" | ||
|
||
inherit toolchain-funcs | ||
|
||
MY_P="${P//_/-}" | ||
MY_RELEASEDATE="20160930" | ||
|
||
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}" 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." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters