Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/checkpolicy/
Date: Sun, 31 Oct 2021 02:55:09
Message-Id: 1635648621.d837e9636db1de9b71f64ba423af5e96ae7e68d3.sam@gentoo
1 commit: d837e9636db1de9b71f64ba423af5e96ae7e68d3
2 Author: Jonathan Davies <jpds <AT> protonmail <DOT> com>
3 AuthorDate: Sun Oct 24 11:47:46 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 02:50:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d837e963
7
8 sys-apps/checkpolicy: Version updated to 3.3.
9
10 Signed-off-by: Jonathan Davies <jpds <AT> protonmail.com>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 sys-apps/checkpolicy/Manifest | 1 +
14 sys-apps/checkpolicy/checkpolicy-3.3.ebuild | 50 +++++++++++++++++++++++++++++
15 2 files changed, 51 insertions(+)
16
17 diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest
18 index 9e0b7673d5f..4717de90e97 100644
19 --- a/sys-apps/checkpolicy/Manifest
20 +++ b/sys-apps/checkpolicy/Manifest
21 @@ -1,2 +1,3 @@
22 DIST checkpolicy-3.1.tar.gz 69072 BLAKE2B 31cb5ef52533b0a62f954e770278fc5766a961d87fb86260b04abe562bcd90d0025b33931c6ad54096c64ab54150c7562c112eac80eb2f60dbcdda57f4cacfe2 SHA512 2276a5a0919286049d2ceba386ef5f6de523745b588bb81cb4fed5eced5fd0b8070249b7a3ae5a85e2abb9369a86318f727d4073aad14ab75c43750a46069168
23 DIST checkpolicy-3.2.tar.gz 69035 BLAKE2B 263c582c8ed3c38822513899f3591edfc5d0132977451503a8b45d2074b5a1c5ce03973353b3ceaad44da913b4e35546cfef1988b68bd517618efdb942f994ec SHA512 133639595c2acc66c02b5a637c5e0c60d80ce2bae04f4a709d9fafabd31f9497d1a6e3334904b985c2a1bd94a7a7e3df782c2af2ae41d1fd79b69156a835edeb
24 +DIST checkpolicy-3.3.tar.gz 69286 BLAKE2B f22cb1b0dae5a89c0abb500c2f091beda7960493bd0dc3b9cb5bc8d2d08d507870e5db46f53ad87d0ddea5e3bbdb6c721a5c5e6824b37f554049000392af6a6d SHA512 40e7ccd804aa19f229eb76bdaeb79c87ed19004ac7b91674ecfb92d543573dc26f9d456ea25ed1e0ef8e1a69538e41c68b386a0743023f3ea83aa4350fc3ce30
25
26 diff --git a/sys-apps/checkpolicy/checkpolicy-3.3.ebuild b/sys-apps/checkpolicy/checkpolicy-3.3.ebuild
27 new file mode 100644
28 index 00000000000..377994434a3
29 --- /dev/null
30 +++ b/sys-apps/checkpolicy/checkpolicy-3.3.ebuild
31 @@ -0,0 +1,50 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="7"
36 +
37 +inherit toolchain-funcs
38 +
39 +DESCRIPTION="SELinux policy compiler"
40 +HOMEPAGE="http://userspace.selinuxproject.org"
41 +
42 +if [[ ${PV} == 9999 ]] ; then
43 + inherit git-r3
44 + EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
45 + S="${WORKDIR}/${P}/${PN}"
46 +else
47 + SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${PV}/${P}.tar.gz"
48 + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86"
49 +fi
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +IUSE="debug"
54 +
55 +DEPEND=">=sys-libs/libsepol-${PV}"
56 +BDEPEND="sys-devel/flex
57 + sys-devel/bison"
58 +
59 +RDEPEND=">=sys-libs/libsepol-${PV}"
60 +
61 +src_compile() {
62 + emake \
63 + CC="$(tc-getCC)" \
64 + YACC="bison -y" \
65 + LIBDIR="\$(PREFIX)/$(get_libdir)"
66 +}
67 +
68 +src_install() {
69 + default
70 +
71 + if use debug; then
72 + dobin "${S}/test/dismod"
73 + dobin "${S}/test/dispol"
74 + fi
75 +}
76 +
77 +pkg_postinst() {
78 + if ! tc-is-cross-compiler; then
79 + einfo "This checkpolicy can compile version `checkpolicy -V | cut -f 1 -d ' '` policy."
80 + fi
81 +}