1 |
commit: 3e6b8985084256d7afce1953701d08f4a1d84fbe |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 6 05:02:44 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 6 05:03:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e6b8985 |
7 |
|
8 |
sys-process/uksmd: 2020-05-04 snapshot |
9 |
|
10 |
Bug: https://bugs.gentoo.org/719896 |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
sys-process/uksmd/Manifest | 1 + |
14 |
...ksmd-0_pre20200504-respect-cflags-ldflags.patch | 15 ++++++++++ |
15 |
sys-process/uksmd/uksmd-0_pre20200504.ebuild | 35 ++++++++++++++++++++++ |
16 |
3 files changed, 51 insertions(+) |
17 |
|
18 |
diff --git a/sys-process/uksmd/Manifest b/sys-process/uksmd/Manifest |
19 |
index 87667c6b872..009da647990 100644 |
20 |
--- a/sys-process/uksmd/Manifest |
21 |
+++ b/sys-process/uksmd/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST uksmd-0_pre20200420.tar.bz2 13464 BLAKE2B 717bb4c54ce3d56ec89ff08e0a60ff3e1f2f260c3e63f7821842f7c1216aeee4efb1cad693db4f9c03000dbde7c47b880356f175cb35b9c3861f3511090e4f32 SHA512 ed1d44c41f2f8731d1dad8a13c17cf412a6f735a68087969cb667f85945705b93ac716f010aae24825c0b32d43c38dad5661c7a36fc59fa89d553471d806d1ee |
24 |
+DIST uksmd-0_pre20200504.tar.bz2 13919 BLAKE2B abda5df86a2592f2e1299f23a94389c7c4af36a37e38e9f618860b5ce0b7fc796eb3b0f248bda7e3522643f5d3a3219fd5d1c66e5a21f32f8bda2a6942f6339b SHA512 9b69b3fea603aab2af27a3542e6b217de31c227581779602ae67d352917e79626530fd6ad769a8a7c147f2883926458757fbca7502b4034550292c7e6e14f2f0 |
25 |
|
26 |
diff --git a/sys-process/uksmd/files/uksmd-0_pre20200504-respect-cflags-ldflags.patch b/sys-process/uksmd/files/uksmd-0_pre20200504-respect-cflags-ldflags.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..407198d5aba |
29 |
--- /dev/null |
30 |
+++ b/sys-process/uksmd/files/uksmd-0_pre20200504-respect-cflags-ldflags.patch |
31 |
@@ -0,0 +1,15 @@ |
32 |
+diff -Naur a/Makefile b/Makefile |
33 |
+--- a/Makefile 2019-05-19 16:36:31.000000000 +0300 |
34 |
++++ b/Makefile 2019-07-24 18:12:29.444896030 +0300 |
35 |
+@@ -1,8 +1,8 @@ |
36 |
+ PROG = uksmd |
37 |
+ OBJS = uksmd.o |
38 |
+-PREFIX ?= /usr/local |
39 |
+-CFLAGS = -O3 -Wall -Wextra -pedantic -pipe -fstack-protector-strong -fno-plt |
40 |
+-LDFLAGS = -lprocps -lcap-ng |
41 |
++PREFIX ?= /usr |
42 |
++CFLAGS += -Wextra -pedantic -fstack-protector-strong -fno-plt |
43 |
++LDFLAGS += -lprocps -lcap-ng |
44 |
+ |
45 |
+ all: build |
46 |
+ |
47 |
|
48 |
diff --git a/sys-process/uksmd/uksmd-0_pre20200504.ebuild b/sys-process/uksmd/uksmd-0_pre20200504.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..4b451363e71 |
51 |
--- /dev/null |
52 |
+++ b/sys-process/uksmd/uksmd-0_pre20200504.ebuild |
53 |
@@ -0,0 +1,35 @@ |
54 |
+# Copyright 2019-2020 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=7 |
58 |
+ |
59 |
+inherit linux-info systemd |
60 |
+ |
61 |
+MY_COMMIT="5325ae51733ebb010862365c5a474f0d68f1ca1f" |
62 |
+MY_P="${PN}-${MY_COMMIT}" |
63 |
+ |
64 |
+DESCRIPTION="Userspace KSM helper daemon" |
65 |
+HOMEPAGE="https://gitlab.com/post-factum/uksmd" |
66 |
+SRC_URI="https://gitlab.com/post-factum/uksmd/-/archive/${MY_COMMIT}/${MY_P}.tar.bz2 -> ${P}.tar.bz2" |
67 |
+ |
68 |
+LICENSE="GPL-3" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64 ~x86" |
71 |
+ |
72 |
+DEPEND="sys-libs/libcap-ng |
73 |
+ sys-process/procps:=" |
74 |
+RDEPEND="${DEPEND}" |
75 |
+ |
76 |
+CONFIG_CHECK="~KSM" |
77 |
+ |
78 |
+S="${WORKDIR}/${MY_P}" |
79 |
+ |
80 |
+PATCHES=( "${FILESDIR}/uksmd-0_pre20200504-respect-cflags-ldflags.patch" ) |
81 |
+ |
82 |
+src_install() { |
83 |
+ default |
84 |
+ einstalldocs |
85 |
+ |
86 |
+ newinitd "${FILESDIR}/uksmd.init" uksmd |
87 |
+ systemd_dounit distro/uksmd.service |
88 |
+} |