summaryrefslogtreecommitdiff
path: root/sys-apps/checkpolicy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-17 02:06:03 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-17 02:06:03 +0000
commit20c23c152d2e7b44a6f93ec9476b808659e5ff1e (patch)
tree06b81787dda2fd1bc47b3967309795f95ddb7b3d /sys-apps/checkpolicy
parent03aa42efc090f9ed79ad5d8cbb54789052863450 (diff)
gentoo auto-resync : 17:01:2024 - 02:06:03
Diffstat (limited to 'sys-apps/checkpolicy')
-rw-r--r--sys-apps/checkpolicy/Manifest4
-rw-r--r--sys-apps/checkpolicy/checkpolicy-3.6.ebuild54
-rw-r--r--sys-apps/checkpolicy/checkpolicy-9999.ebuild2
3 files changed, 58 insertions, 2 deletions
diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest
index 19869985fab2..cce5d369c85e 100644
--- a/sys-apps/checkpolicy/Manifest
+++ b/sys-apps/checkpolicy/Manifest
@@ -1,4 +1,6 @@
DIST checkpolicy-3.5.tar.gz 69904 BLAKE2B e02ccad07534568a1bbb612330018bbe486800ea40df20ed6f9dc38c88aff7f8858782a28ba7915a58c3bb384f180eb8da7a8fe97a92bcb9baa61eec18da6cbc SHA512 fcd490d865af3b4350c32c5dd9916f8406219841e1e255d8945c6dcc958535247aa27af5597a6988e19f11faea7beeabcb46e8ba2431112bb4aa5c7697bca529
+DIST checkpolicy-3.6.tar.gz 70684 BLAKE2B d32a8b86897bd4a08caf61a096a691c8d049fa7b5b4561f4847e0dfbb62a82fc6c3ddb5be163c7cd6163491c50513aec14e4c67842f256f48688b26178c2887a SHA512 0d48fb385b4d1e66d562e40b6e794406f46d8803cc504705b26547130cb13b65fab5fdb4fc032b1c95d4f91862ff134a89fffde854c5ce466c2dd2657e416070
EBUILD checkpolicy-3.5.ebuild 1089 BLAKE2B aa0a7a244530c2b7a8231750b0479c485c567bacf53b79570ffc7ad4cf1c5cc9b6060d63dfc86f16e6fbfbeff69a85cfa773080953d241d6029fd0c0b14f8d66 SHA512 86d8586db0842ab0df9da87739c2e40fde0483777921e3b67a1933ba27e233ede07cefd6668664f2c25b74eda8281ad5b52bd07363ac4080f1f725f047d059f5
-EBUILD checkpolicy-9999.ebuild 1093 BLAKE2B 6c906c311f009a3674dcde42019f8f68e3cdcbd568c2eca8a55eb4b6ccd48346852fafe93296b9ced65f17b7051f82831d55ea26a0f23be74ac5159f65f93c82 SHA512 3f12684e340c6bd3001ec05c90647d5218a343038652fb607fefb94f511bb247e7019bb8ea85016cc1161f90f1fd9b1706203fe6f82f3b73dcbfe6319d4c33a6
+EBUILD checkpolicy-3.6.ebuild 1093 BLAKE2B 3593f18258575213cdd8ed15117789d5ccd325028dad25cec4a670f88e7e0d124af3880b49a59bed9f76cbf596aa154a4c3879a5bb42fac5c1a1e446c7c0afe5 SHA512 adbb39edafcc2a5987d8c2588ae19dd2eeff58f8df5d25b41d4a3036cfe1b6c6ae6391796219b0d9c423d941af9cd362746cf16643f09841139d34c1d4c2719d
+EBUILD checkpolicy-9999.ebuild 1093 BLAKE2B 3593f18258575213cdd8ed15117789d5ccd325028dad25cec4a670f88e7e0d124af3880b49a59bed9f76cbf596aa154a4c3879a5bb42fac5c1a1e446c7c0afe5 SHA512 adbb39edafcc2a5987d8c2588ae19dd2eeff58f8df5d25b41d4a3036cfe1b6c6ae6391796219b0d9c423d941af9cd362746cf16643f09841139d34c1d4c2719d
MISC metadata.xml 335 BLAKE2B 72e72bc2d0ca05bf3caafd68121e0d4616306368f355541c2944254262a3ac96a3a6b8e5503ad691c2b7bc18dc6856101c81c47de3a623efc34b23185d9d4e60 SHA512 43cef46780c81459cc75b2a09181e84698a11e81196fea4e962b8081e712de437c8af032349aeb4f1ebe84ccef9cab4978467304d05801317db7a71521cf0664
diff --git a/sys-apps/checkpolicy/checkpolicy-3.6.ebuild b/sys-apps/checkpolicy/checkpolicy-3.6.ebuild
new file mode 100644
index 000000000000..6d5e91d8b18a
--- /dev/null
+++ b/sys-apps/checkpolicy/checkpolicy-3.6.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit toolchain-funcs
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_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}/${P}/${PN}"
+else
+ SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86"
+ S="${WORKDIR}/${MY_P}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug"
+
+DEPEND=">=sys-libs/libsepol-${PV}"
+BDEPEND="sys-devel/flex
+ sys-devel/bison"
+
+RDEPEND=">=sys-libs/libsepol-${PV}"
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ YACC="bison -y" \
+ LIBDIR="\$(PREFIX)/$(get_libdir)"
+}
+
+src_install() {
+ default
+
+ if use debug; then
+ dobin "${S}/test/dismod"
+ dobin "${S}/test/dispol"
+ fi
+}
+
+pkg_postinst() {
+ if ! tc-is-cross-compiler; then
+ einfo "This checkpolicy can compile version `checkpolicy -V | cut -f 1 -d ' '` policy."
+ fi
+}
diff --git a/sys-apps/checkpolicy/checkpolicy-9999.ebuild b/sys-apps/checkpolicy/checkpolicy-9999.ebuild
index 496db82366f7..6d5e91d8b18a 100644
--- a/sys-apps/checkpolicy/checkpolicy-9999.ebuild
+++ b/sys-apps/checkpolicy/checkpolicy-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"