Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/restorecond/
Date: Sat, 03 Apr 2021 04:19:47
Message-Id: 1617423334.b8dfa34696c352eb12868d4eb21a1de716f08c05.perfinion@gentoo
1 commit: b8dfa34696c352eb12868d4eb21a1de716f08c05
2 Author: Jonathan Davies <jpds <AT> protonmail <DOT> com>
3 AuthorDate: Thu Mar 18 00:18:04 2021 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 3 04:15:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8dfa346
7
8 sys-apps/restorecond: Version updated to 3.2.
9
10 Signed-off-by: Jonathan Davies <jpds <AT> protonmail.com>
11 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
12
13 sys-apps/restorecond/Manifest | 1 +
14 sys-apps/restorecond/restorecond-3.2.ebuild | 50 +++++++++++++++++++++++++++++
15 2 files changed, 51 insertions(+)
16
17 diff --git a/sys-apps/restorecond/Manifest b/sys-apps/restorecond/Manifest
18 index 55b635ab646..163a8d8856f 100644
19 --- a/sys-apps/restorecond/Manifest
20 +++ b/sys-apps/restorecond/Manifest
21 @@ -1 +1,2 @@
22 DIST restorecond-3.1.tar.gz 18939 BLAKE2B 3a3fcde057dad3ed05692d679ba27e0b24f191d92ed5114fa38cb5f846c4cc00d85bb09b5d4e560ed2b914444e0c2d1c407f6c03900610624d5626d05f2991bc SHA512 cdcf299f48b89a7c641ded9507b9b966bf648497394f8e988a9cb1ceb3224c86369706027f3416a4f9750836f7a8f4580a4b3df76673e03f897b383d7ed0e2c8
23 +DIST restorecond-3.2.tar.gz 18965 BLAKE2B 6cbd32c7c33fcc9f3fff78cc1faaa354c7ee918bfde8e12dfa73ce99632a8bc1e00d2f3b7cdd9c72179dbb51af1847e8dadd41cdc3ca20e9fb45e61871325029 SHA512 b1437a5d4dffef3463a0f2994f07c98585e9cfbc354db2dc07483fd9b964b079090697a277d2f4fd6bcd8df62f7505962fdca22d700721f6ba71490ace0167a9
24
25 diff --git a/sys-apps/restorecond/restorecond-3.2.ebuild b/sys-apps/restorecond/restorecond-3.2.ebuild
26 new file mode 100644
27 index 00000000000..f3e66897e8c
28 --- /dev/null
29 +++ b/sys-apps/restorecond/restorecond-3.2.ebuild
30 @@ -0,0 +1,50 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="7"
35 +
36 +inherit systemd toolchain-funcs
37 +
38 +IUSE=""
39 +
40 +if [[ ${PV} == *9999 ]] ; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
43 + S="${WORKDIR}/${P}/${PN}"
44 +else
45 + SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${PV}/${P}.tar.gz"
46 + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
47 +fi
48 +
49 +DESCRIPTION="Daemon to watch for creation and set default SELinux fcontexts"
50 +HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +
55 +DEPEND="dev-libs/glib:2
56 + >=sys-libs/libsepol-${PV}:=
57 + >=sys-libs/libselinux-${PV}:="
58 +
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 + tc-export CC
69 + default
70 +}
71 +
72 +src_install() {
73 + SYSTEMDSYSTEMUNITDIR="$(systemd_get_systemunitdir)" \
74 + SYSTEMDUSERUNITDIR=$(systemd_get_userunitdir) \
75 + emake DESTDIR="${D}" install
76 +
77 + rm -rf "${D}/etc/rc.d" || die
78 +
79 + newinitd "${FILESDIR}/restorecond.init" restorecond
80 +}