summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <perfinion@gentoo.org>2019-11-29 18:26:49 +0800
committerJason Zaman <perfinion@gentoo.org>2019-12-02 22:49:12 +0800
commit651813d1ed7f9b3e976c9dbaf0b142f328d0c4e3 (patch)
treeb179bdf9e69bfd2cdb383ec1cde3cd570c6b062d /sys-apps/checkpolicy
parentsys-libs/libsemanage: bump to 3.0_rc2 (diff)
downloadgentoo-651813d1ed7f9b3e976c9dbaf0b142f328d0c4e3.tar.gz
gentoo-651813d1ed7f9b3e976c9dbaf0b142f328d0c4e3.tar.bz2
gentoo-651813d1ed7f9b3e976c9dbaf0b142f328d0c4e3.zip
sys-apps/checkpolicy: bump to 3.0_rc2
Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'sys-apps/checkpolicy')
-rw-r--r--sys-apps/checkpolicy/Manifest1
-rw-r--r--sys-apps/checkpolicy/checkpolicy-3.0_rc2.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest
index a7b7c7fc5133..44e147b4d29b 100644
--- a/sys-apps/checkpolicy/Manifest
+++ b/sys-apps/checkpolicy/Manifest
@@ -1,2 +1,3 @@
DIST checkpolicy-2.8.tar.gz 66243 BLAKE2B cd4b5ead13606df9888260a15d982eb43d59c659a6f021a18c598657b2a07de5e70a9eacee6528855f26256d26b27bd8bec27b95a7366cf2e44ba5d426369582 SHA512 d1a52dffefcc8f9f879214290f01beb5f4978f1764ab6378ee03a62ef924206b9a6f6a512001ae556034ababcd3a0043d455f5aef66b5629a4f152cd2c9f0b7a
DIST checkpolicy-2.9.tar.gz 68735 BLAKE2B 092b7b67ea952be6a829529249f0b209c31245490f263b248cb0208d9f1f4ec922522791c6555c0b913b56b8a0037bfde54a3511940f0be287f13e3a193c8f26 SHA512 8dafdd871c5fd32023883149c74891279c386cc87d70cbfc6f0a8dcb0406f17f1158f9078c1b35892a0f0edcb6b5208a031594ab80898eec016ad765ad046e03
+DIST checkpolicy-3.0-rc2.tar.gz 69077 BLAKE2B 4cc068103d3c0caf90362173cc4b5e3b17a60c32207d08f30ec23f351115ffdb0708c369cc42d0e8d07ce8d60eb4c24877fa5e22cc13de8a774de5f32d81820e SHA512 9dd0620755ad9e075f6ce059795717f27fc873014f419fcd68af12f1af9abe0121319b903e64b0a90f9a388826f0ab7e39c1f35a661bd5abfb5b91332e568edc
diff --git a/sys-apps/checkpolicy/checkpolicy-3.0_rc2.ebuild b/sys-apps/checkpolicy/checkpolicy-3.0_rc2.ebuild
new file mode 100644
index 000000000000..7bb6707b4150
--- /dev/null
+++ b/sys-apps/checkpolicy/checkpolicy-3.0_rc2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+MY_P="${P//_/-}"
+MY_RELEASEDATE="20191122"
+
+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://github.com/SELinuxProject/selinux/releases/download/${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."
+}