1 |
commit: 3cdef6b4b412bbe52869d67e732456f6661241f9 |
2 |
Author: Jonathan Davies <jpds <AT> protonmail <DOT> com> |
3 |
AuthorDate: Sun Oct 24 11:52:21 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 31 02:50:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cdef6b4 |
7 |
|
8 |
sys-apps/restorecond: 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/restorecond/Manifest | 1 + |
14 |
sys-apps/restorecond/restorecond-3.3.ebuild | 50 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 51 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/restorecond/Manifest b/sys-apps/restorecond/Manifest |
18 |
index 163a8d8856f..72a26729f3b 100644 |
19 |
--- a/sys-apps/restorecond/Manifest |
20 |
+++ b/sys-apps/restorecond/Manifest |
21 |
@@ -1,2 +1,3 @@ |
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 |
+DIST restorecond-3.3.tar.gz 18970 BLAKE2B 41c0eed734ab1e89cdfd40fdb0ceff47e1c4bb66354ff78d548a9747c661fbf7ed4b6b3daa1e39325de2a2ca087aca803f073f942f3ac89b71d873e27a1d6712 SHA512 ea2b97d22c1d68aa4ea31d8850f8c9632c0db0d4d666e323c648da896554c6a6fdf6dfa3c105a1df3f1ede9da8cce5ba4c1533b05520846fcb2d584935e5d7cb |
25 |
|
26 |
diff --git a/sys-apps/restorecond/restorecond-3.3.ebuild b/sys-apps/restorecond/restorecond-3.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..f3e66897e8c |
29 |
--- /dev/null |
30 |
+++ b/sys-apps/restorecond/restorecond-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 systemd toolchain-funcs |
38 |
+ |
39 |
+IUSE="" |
40 |
+ |
41 |
+if [[ ${PV} == *9999 ]] ; then |
42 |
+ inherit git-r3 |
43 |
+ EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git" |
44 |
+ S="${WORKDIR}/${P}/${PN}" |
45 |
+else |
46 |
+ SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${PV}/${P}.tar.gz" |
47 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86" |
48 |
+fi |
49 |
+ |
50 |
+DESCRIPTION="Daemon to watch for creation and set default SELinux fcontexts" |
51 |
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
52 |
+ |
53 |
+LICENSE="GPL-2" |
54 |
+SLOT="0" |
55 |
+ |
56 |
+DEPEND="dev-libs/glib:2 |
57 |
+ >=sys-libs/libsepol-${PV}:= |
58 |
+ >=sys-libs/libselinux-${PV}:=" |
59 |
+ |
60 |
+RDEPEND="${DEPEND}" |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ |
65 |
+ sed -i 's/-Werror//g' "${S}"/Makefile || die "Failed to remove Werror" |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ tc-export CC |
70 |
+ default |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ SYSTEMDSYSTEMUNITDIR="$(systemd_get_systemunitdir)" \ |
75 |
+ SYSTEMDUSERUNITDIR=$(systemd_get_userunitdir) \ |
76 |
+ emake DESTDIR="${D}" install |
77 |
+ |
78 |
+ rm -rf "${D}/etc/rc.d" || die |
79 |
+ |
80 |
+ newinitd "${FILESDIR}/restorecond.init" restorecond |
81 |
+} |