1 |
commit: 3b5bd65c7564355c1614a30c3d0e123aa96b40e9 |
2 |
Author: Kenton Groombridge <concord <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 3 13:31:16 2022 +0000 |
4 |
Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 4 01:03:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b5bd65c |
7 |
|
8 |
sys-apps/restorecond: bump to 3.4 |
9 |
|
10 |
Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org> |
11 |
|
12 |
sys-apps/restorecond/Manifest | 1 + |
13 |
sys-apps/restorecond/restorecond-3.4.ebuild | 54 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/restorecond/Manifest b/sys-apps/restorecond/Manifest |
17 |
index b14d5edab7e4..3f1999095d14 100644 |
18 |
--- a/sys-apps/restorecond/Manifest |
19 |
+++ b/sys-apps/restorecond/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST restorecond-3.3.tar.gz 18970 BLAKE2B 41c0eed734ab1e89cdfd40fdb0ceff47e1c4bb66354ff78d548a9747c661fbf7ed4b6b3daa1e39325de2a2ca087aca803f073f942f3ac89b71d873e27a1d6712 SHA512 ea2b97d22c1d68aa4ea31d8850f8c9632c0db0d4d666e323c648da896554c6a6fdf6dfa3c105a1df3f1ede9da8cce5ba4c1533b05520846fcb2d584935e5d7cb |
22 |
DIST restorecond-3.4-rc1.tar.gz 18961 BLAKE2B 7f5f41f9dd7e776c266818221706f5cfff2fbb3ce99550e4c679a52e1c7694ddf06a8cd686ed80787e2acbf4060bb6cb4c4c15b85eb3ee58355b560f3751e910 SHA512 5d526ceb314719400cfeecb3d28369f62ca8f29223c6eabe847f3565c27b6a7f74ef6f489750b80809df6b3227324c978e4aceca1cb2f4f6a28bcaa03f1f9db9 |
23 |
+DIST restorecond-3.4.tar.gz 18965 BLAKE2B a77de19d9f00d6e8f384a7ac411257b059ba3ecfefba893eda0e563600002eca705347af364d51037f8b3308bac1c5248bb9326c692175c6c1dc561b18c84bff SHA512 9c6803444445af1592a74177ba2e7cefa1b0e8e3c73d34ef932948598adb38c648dcae8495c951b1badfc587b2d67843b83598c904d924db349b6118560f115c |
24 |
|
25 |
diff --git a/sys-apps/restorecond/restorecond-3.4.ebuild b/sys-apps/restorecond/restorecond-3.4.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..92cd1c69200e |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/restorecond/restorecond-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 systemd toolchain-funcs |
37 |
+ |
38 |
+MY_PV="${PV//_/-}" |
39 |
+MY_P="${PN}-${MY_PV}" |
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/${MY_PV}/${MY_P}.tar.gz" |
47 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86" |
48 |
+ S="${WORKDIR}/${MY_P}" |
49 |
+fi |
50 |
+ |
51 |
+DESCRIPTION="Daemon to watch for creation and set default SELinux fcontexts" |
52 |
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
53 |
+ |
54 |
+LICENSE="GPL-2" |
55 |
+SLOT="0" |
56 |
+IUSE="" |
57 |
+ |
58 |
+DEPEND="dev-libs/glib:2 |
59 |
+ >=sys-libs/libsepol-${PV}:= |
60 |
+ >=sys-libs/libselinux-${PV}:=" |
61 |
+ |
62 |
+RDEPEND="${DEPEND}" |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ default |
66 |
+ |
67 |
+ sed -i 's/-Werror//g' "${S}"/Makefile || die "Failed to remove Werror" |
68 |
+} |
69 |
+ |
70 |
+src_compile() { |
71 |
+ tc-export CC |
72 |
+ default |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ emake DESTDIR="${D}" \ |
77 |
+ SYSTEMDSYSTEMUNITDIR="$(systemd_get_systemunitdir)" \ |
78 |
+ SYSTEMDUSERUNITDIR=$(systemd_get_userunitdir) \ |
79 |
+ install |
80 |
+ |
81 |
+ rm -rf "${D}/etc/rc.d" || die |
82 |
+ |
83 |
+ newinitd "${FILESDIR}/restorecond.init" restorecond |
84 |
+} |