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/semodule-utils/
Date: Sat, 04 Jun 2022 01:04:02
Message-Id: 1654304595.3e86b07b7b8605812a0da5aa3cb045a818b22d1c.concord@gentoo
1 commit: 3e86b07b7b8605812a0da5aa3cb045a818b22d1c
2 Author: Kenton Groombridge <concord <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 13:31:02 2022 +0000
4 Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 4 01:03:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e86b07b
7
8 sys-apps/semodule-utils: bump to 3.4
9
10 Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>
11
12 sys-apps/semodule-utils/Manifest | 1 +
13 sys-apps/semodule-utils/semodule-utils-3.4.ebuild | 43 +++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/sys-apps/semodule-utils/Manifest b/sys-apps/semodule-utils/Manifest
17 index a509f1a23988..35a5d80af288 100644
18 --- a/sys-apps/semodule-utils/Manifest
19 +++ b/sys-apps/semodule-utils/Manifest
20 @@ -1,2 +1,3 @@
21 DIST semodule-utils-3.3.tar.gz 14268 BLAKE2B 5b03dd731c28e29b146e9f75fa7ce5151e58df1ea6598356b1ad9ee6846d2ebf7ceb57c740aa0ae4b94e0a7356180bd8e608d6a9543b48251e553036f2b2833e SHA512 76aa0c9322889c7de100f3c5789bdf27b7073827fe2af371bd50a4517baa8442f35e53f16a93227dce93da0ceb054bea7e5ee17a46fe05e06f3c2d9925cf59dc
22 DIST semodule-utils-3.4-rc1.tar.gz 14270 BLAKE2B 7a0b5d060fc07ea71b71ccf2eaa6604cdc00afabaef1be8efb62a38bd401cfacd20f36af1a74324c2162b5fcdbcba6a3b3c5d98e33fccba99bc38ddfabd10ff8 SHA512 848354e95fcd6ae6be3e0ff5a32b26d78b2fbd04f463f063db796ff843dab44675eceb670f10c3ee602a6280e885ecc33242b37bb67ef77d467be030ddd4a72c
23 +DIST semodule-utils-3.4.tar.gz 14267 BLAKE2B 292c9550a5f1bc8b901c7c95fe2dde07068513bf7d358decab65afc2db185996ec905b582691265a63aba7bc47f4e1d6da4c867eb9a9df5b22fc623a716e927b SHA512 3a102eb83e1feff9796c4da572500be1e3a8a8bc8a7eed762ef4144761280f0513050c714aa287b1e4e67d2938f9f9a0ee5036762472d732eae0288b437cb7a9
24
25 diff --git a/sys-apps/semodule-utils/semodule-utils-3.4.ebuild b/sys-apps/semodule-utils/semodule-utils-3.4.ebuild
26 new file mode 100644
27 index 000000000000..ce9f168c9c89
28 --- /dev/null
29 +++ b/sys-apps/semodule-utils/semodule-utils-3.4.ebuild
30 @@ -0,0 +1,43 @@
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 module utilities"
42 +HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
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 ~x86"
51 + S="${WORKDIR}/${MY_P}"
52 +fi
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +IUSE=""
57 +
58 +DEPEND=">=sys-libs/libsepol-${PV}:="
59 +RDEPEND="${DEPEND}"
60 +
61 +src_prepare() {
62 + default
63 +
64 + sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
65 +}
66 +
67 +src_compile() {
68 + emake CC="$(tc-getCC)"
69 +}
70 +
71 +src_install() {
72 + emake DESTDIR="${D}" install
73 +}