Gentoo Archives: gentoo-commits

From: Kenton Groombridge <concord@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/checkpolicy/
Date: Sat, 04 Jun 2022 01:03:58
Message-Id: 1654304591.6ad08222c816246060a8d87a8d2a5f5f9fc84a6b.concord@gentoo
1 commit: 6ad08222c816246060a8d87a8d2a5f5f9fc84a6b
2 Author: Kenton Groombridge <concord <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 13:30:42 2022 +0000
4 Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 4 01:03:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ad08222
7
8 sys-apps/checkpolicy: bump to 3.4
9
10 Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>
11
12 sys-apps/checkpolicy/Manifest | 1 +
13 sys-apps/checkpolicy/checkpolicy-3.4.ebuild | 54 +++++++++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest
17 index 1a877520394b..77c838495954 100644
18 --- a/sys-apps/checkpolicy/Manifest
19 +++ b/sys-apps/checkpolicy/Manifest
20 @@ -1,2 +1,3 @@
21 DIST checkpolicy-3.3.tar.gz 69286 BLAKE2B f22cb1b0dae5a89c0abb500c2f091beda7960493bd0dc3b9cb5bc8d2d08d507870e5db46f53ad87d0ddea5e3bbdb6c721a5c5e6824b37f554049000392af6a6d SHA512 40e7ccd804aa19f229eb76bdaeb79c87ed19004ac7b91674ecfb92d543573dc26f9d456ea25ed1e0ef8e1a69538e41c68b386a0743023f3ea83aa4350fc3ce30
22 DIST checkpolicy-3.4-rc1.tar.gz 69829 BLAKE2B 7d217c79b689b8d08a4d16b174ac01bbee48ced7cc0920792a7263f3143f77838ba9f75ce7a3919a7eaa5818ac7ebdd1890a5fdc050680e45341bfe06dec634b SHA512 9aac4bd862f6dcb654cdbc786e0f89f8eccf2f93e6368b3d458a4a15210a558552ffeb64be9daf57bf3309bf74661a4eb6a5a336e64357f6e99bf3b7946d9b45
23 +DIST checkpolicy-3.4.tar.gz 69870 BLAKE2B 891033b1d9d50a3738bb779d014d2f04d6cc5450c6f84ed43246c95b0c808f347d65c0e51c7254041e13b1c555a7e1de5092abb4fc12fabb109be7ddaa090829 SHA512 e7f7a4e987af473fd7cda0e47539061a8cb2e65a6b930f4736c538eb319129b260a3f03d2f50863e73a275ee3d58c441c33f95c80ea2bff6157e37226be54b92
24
25 diff --git a/sys-apps/checkpolicy/checkpolicy-3.4.ebuild b/sys-apps/checkpolicy/checkpolicy-3.4.ebuild
26 new file mode 100644
27 index 000000000000..b699f09c01de
28 --- /dev/null
29 +++ b/sys-apps/checkpolicy/checkpolicy-3.4.ebuild
30 @@ -0,0 +1,54 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="7"
35 +
36 +inherit toolchain-funcs
37 +
38 +MY_PV="${PV//_/-}"
39 +MY_P="${PN}-${MY_PV}"
40 +
41 +DESCRIPTION="SELinux policy compiler"
42 +HOMEPAGE="http://userspace.selinuxproject.org"
43 +
44 +if [[ ${PV} == 9999 ]] ; then
45 + inherit git-r3
46 + EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
47 + S="${WORKDIR}/${P}/${PN}"
48 +else
49 + SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz"
50 + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86"
51 + S="${WORKDIR}/${MY_P}"
52 +fi
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +IUSE="debug"
57 +
58 +DEPEND=">=sys-libs/libsepol-${PV}"
59 +BDEPEND="sys-devel/flex
60 + sys-devel/bison"
61 +
62 +RDEPEND=">=sys-libs/libsepol-${PV}"
63 +
64 +src_compile() {
65 + emake \
66 + CC="$(tc-getCC)" \
67 + YACC="bison -y" \
68 + LIBDIR="\$(PREFIX)/$(get_libdir)"
69 +}
70 +
71 +src_install() {
72 + default
73 +
74 + if use debug; then
75 + dobin "${S}/test/dismod"
76 + dobin "${S}/test/dispol"
77 + fi
78 +}
79 +
80 +pkg_postinst() {
81 + if ! tc-is-cross-compiler; then
82 + einfo "This checkpolicy can compile version `checkpolicy -V | cut -f 1 -d ' '` policy."
83 + fi
84 +}