Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/uksmd/files/, sys-process/uksmd/
Date: Thu, 08 Aug 2019 14:37:00
Message-Id: 1565274995.b6025b7c968de8ffe087e94d103ddc0e286f4c2d.juippis@gentoo
1 commit: b6025b7c968de8ffe087e94d103ddc0e286f4c2d
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 8 14:35:41 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 8 14:36:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6025b7c
7
8 sys-process/uksmd: new package
9
10 - Userspace KSM helper daemon, to be run with pf-sources and
11 CONFIG_KSM.
12
13 Package-Manager: Portage-2.3.71, Repoman-2.3.16
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 sys-process/uksmd/Manifest | 1 +
17 .../uksmd-0_p20190726-respect-cflags-ldflags.patch | 15 ++++++++++
18 sys-process/uksmd/files/uksmd.init | 7 +++++
19 sys-process/uksmd/metadata.xml | 8 +++++
20 sys-process/uksmd/uksmd-0_pre20190726.ebuild | 34 ++++++++++++++++++++++
21 5 files changed, 65 insertions(+)
22
23 diff --git a/sys-process/uksmd/Manifest b/sys-process/uksmd/Manifest
24 new file mode 100644
25 index 00000000000..62b393ac65d
26 --- /dev/null
27 +++ b/sys-process/uksmd/Manifest
28 @@ -0,0 +1 @@
29 +DIST uksmd-0_pre20190726.tar.bz2 13445 BLAKE2B 4d16b9e7dff80269561c61cf8ea4177e6ceaa2540a3ee5bb3a36684e8364d0a4abdfb494fd0dbb3e6d5d2c074601a0c39f9f0570448e3d5769e50184c8ef7975 SHA512 812217a067c2fe70a17a321b507071f369efa38ca12d566cde66b1fc6e2e3ffa7e4d3fd3904f2f3cf409e313d03ab06829cef23fffadd785282cb602dbd5f06e
30
31 diff --git a/sys-process/uksmd/files/uksmd-0_p20190726-respect-cflags-ldflags.patch b/sys-process/uksmd/files/uksmd-0_p20190726-respect-cflags-ldflags.patch
32 new file mode 100644
33 index 00000000000..7e92204d403
34 --- /dev/null
35 +++ b/sys-process/uksmd/files/uksmd-0_p20190726-respect-cflags-ldflags.patch
36 @@ -0,0 +1,15 @@
37 +diff -Naur a/Makefile b/Makefile
38 +--- a/Makefile 2019-05-19 16:36:31.000000000 +0300
39 ++++ b/Makefile 2019-07-24 18:12:29.444896030 +0300
40 +@@ -1,8 +1,8 @@
41 + PROG = uksmd
42 + OBJS = uksmd.o
43 +-PREFIX ?= /usr/local
44 +-CFLAGS = -O3 -Wall -Wextra -pedantic -pipe -fstack-protector-strong -fno-plt
45 +-LDFLAGS = -lprocps
46 ++PREFIX ?= /usr
47 ++CFLAGS += -Wextra -pedantic -fstack-protector-strong -fno-plt
48 ++LDFLAGS += -lprocps
49 +
50 + all: build
51 +
52
53 diff --git a/sys-process/uksmd/files/uksmd.init b/sys-process/uksmd/files/uksmd.init
54 new file mode 100644
55 index 00000000000..637666b50a9
56 --- /dev/null
57 +++ b/sys-process/uksmd/files/uksmd.init
58 @@ -0,0 +1,7 @@
59 +#!/sbin/openrc-run
60 +# Copyright 2019 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +description="Userspace KSM helper daemon"
64 +command=/usr/bin/uksmd
65 +pidfile="/var/run/uksmd.pid"
66
67 diff --git a/sys-process/uksmd/metadata.xml b/sys-process/uksmd/metadata.xml
68 new file mode 100644
69 index 00000000000..6b0a0fb3a72
70 --- /dev/null
71 +++ b/sys-process/uksmd/metadata.xml
72 @@ -0,0 +1,8 @@
73 +<?xml version="1.0" encoding="UTF-8"?>
74 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
75 +<pkgmetadata>
76 + <maintainer type="person">
77 + <email>juippis@g.o</email>
78 + <name>Joonas Niilola</name>
79 + </maintainer>
80 +</pkgmetadata>
81
82 diff --git a/sys-process/uksmd/uksmd-0_pre20190726.ebuild b/sys-process/uksmd/uksmd-0_pre20190726.ebuild
83 new file mode 100644
84 index 00000000000..d0007f9ba41
85 --- /dev/null
86 +++ b/sys-process/uksmd/uksmd-0_pre20190726.ebuild
87 @@ -0,0 +1,34 @@
88 +# Copyright 2019 Gentoo Authors
89 +# Distributed under the terms of the GNU General Public License v2
90 +
91 +EAPI=7
92 +
93 +inherit linux-info systemd
94 +
95 +MY_COMMIT="42f4ff8eb09011bf1a199938aa2afe23040d7faf"
96 +MY_P="${PN}-${MY_COMMIT}"
97 +
98 +DESCRIPTION="Userspace KSM helper daemon"
99 +HOMEPAGE="https://gitlab.com/post-factum/uksmd"
100 +SRC_URI="https://gitlab.com/post-factum/uksmd/-/archive/${MY_COMMIT}/${MY_P}.tar.bz2 -> ${P}.tar.bz2"
101 +
102 +LICENSE="GPL-3"
103 +SLOT="0"
104 +KEYWORDS="~amd64 ~x86"
105 +
106 +RDEPEND="sys-kernel/pf-sources:*
107 + sys-process/procps"
108 +
109 +CONFIG_CHECK="KSM"
110 +
111 +S="${WORKDIR}/${MY_P}"
112 +
113 +PATCHES=( "${FILESDIR}/${P}-respect-cflags-ldflags.patch" )
114 +
115 +src_install() {
116 + default
117 + einstalldocs
118 +
119 + newinitd "${FILESDIR}/uksmd.init" uksmd
120 + systemd_dounit distro/uksmd.service
121 +}