From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 68D81138334 for ; Thu, 8 Aug 2019 14:37:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F2B55E07FE; Thu, 8 Aug 2019 14:36:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C213EE07FA for ; Thu, 8 Aug 2019 14:36:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EAFA8349675 for ; Thu, 8 Aug 2019 14:36:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F21E973C for ; Thu, 8 Aug 2019 14:36:53 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1565274995.b6025b7c968de8ffe087e94d103ddc0e286f4c2d.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/uksmd/files/, sys-process/uksmd/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/uksmd/Manifest sys-process/uksmd/files/uksmd-0_p20190726-respect-cflags-ldflags.patch sys-process/uksmd/files/uksmd.init sys-process/uksmd/metadata.xml sys-process/uksmd/uksmd-0_pre20190726.ebuild X-VCS-Directories: sys-process/uksmd/files/ sys-process/uksmd/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: b6025b7c968de8ffe087e94d103ddc0e286f4c2d X-VCS-Branch: master Date: Thu, 8 Aug 2019 14:36:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 204014e8-d2dc-420c-8511-1f25908aa9fd X-Archives-Hash: 259c84a40fb8b8f241ce793b44ed73c9 commit: b6025b7c968de8ffe087e94d103ddc0e286f4c2d Author: Joonas Niilola gentoo org> AuthorDate: Thu Aug 8 14:35:41 2019 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Thu Aug 8 14:36:35 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6025b7c sys-process/uksmd: new package - Userspace KSM helper daemon, to be run with pf-sources and CONFIG_KSM. Package-Manager: Portage-2.3.71, Repoman-2.3.16 Signed-off-by: Joonas Niilola gentoo.org> sys-process/uksmd/Manifest | 1 + .../uksmd-0_p20190726-respect-cflags-ldflags.patch | 15 ++++++++++ sys-process/uksmd/files/uksmd.init | 7 +++++ sys-process/uksmd/metadata.xml | 8 +++++ sys-process/uksmd/uksmd-0_pre20190726.ebuild | 34 ++++++++++++++++++++++ 5 files changed, 65 insertions(+) diff --git a/sys-process/uksmd/Manifest b/sys-process/uksmd/Manifest new file mode 100644 index 00000000000..62b393ac65d --- /dev/null +++ b/sys-process/uksmd/Manifest @@ -0,0 +1 @@ +DIST uksmd-0_pre20190726.tar.bz2 13445 BLAKE2B 4d16b9e7dff80269561c61cf8ea4177e6ceaa2540a3ee5bb3a36684e8364d0a4abdfb494fd0dbb3e6d5d2c074601a0c39f9f0570448e3d5769e50184c8ef7975 SHA512 812217a067c2fe70a17a321b507071f369efa38ca12d566cde66b1fc6e2e3ffa7e4d3fd3904f2f3cf409e313d03ab06829cef23fffadd785282cb602dbd5f06e 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 new file mode 100644 index 00000000000..7e92204d403 --- /dev/null +++ b/sys-process/uksmd/files/uksmd-0_p20190726-respect-cflags-ldflags.patch @@ -0,0 +1,15 @@ +diff -Naur a/Makefile b/Makefile +--- a/Makefile 2019-05-19 16:36:31.000000000 +0300 ++++ b/Makefile 2019-07-24 18:12:29.444896030 +0300 +@@ -1,8 +1,8 @@ + PROG = uksmd + OBJS = uksmd.o +-PREFIX ?= /usr/local +-CFLAGS = -O3 -Wall -Wextra -pedantic -pipe -fstack-protector-strong -fno-plt +-LDFLAGS = -lprocps ++PREFIX ?= /usr ++CFLAGS += -Wextra -pedantic -fstack-protector-strong -fno-plt ++LDFLAGS += -lprocps + + all: build + diff --git a/sys-process/uksmd/files/uksmd.init b/sys-process/uksmd/files/uksmd.init new file mode 100644 index 00000000000..637666b50a9 --- /dev/null +++ b/sys-process/uksmd/files/uksmd.init @@ -0,0 +1,7 @@ +#!/sbin/openrc-run +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Userspace KSM helper daemon" +command=/usr/bin/uksmd +pidfile="/var/run/uksmd.pid" diff --git a/sys-process/uksmd/metadata.xml b/sys-process/uksmd/metadata.xml new file mode 100644 index 00000000000..6b0a0fb3a72 --- /dev/null +++ b/sys-process/uksmd/metadata.xml @@ -0,0 +1,8 @@ + + + + + juippis@gentoo.org + Joonas Niilola + + diff --git a/sys-process/uksmd/uksmd-0_pre20190726.ebuild b/sys-process/uksmd/uksmd-0_pre20190726.ebuild new file mode 100644 index 00000000000..d0007f9ba41 --- /dev/null +++ b/sys-process/uksmd/uksmd-0_pre20190726.ebuild @@ -0,0 +1,34 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info systemd + +MY_COMMIT="42f4ff8eb09011bf1a199938aa2afe23040d7faf" +MY_P="${PN}-${MY_COMMIT}" + +DESCRIPTION="Userspace KSM helper daemon" +HOMEPAGE="https://gitlab.com/post-factum/uksmd" +SRC_URI="https://gitlab.com/post-factum/uksmd/-/archive/${MY_COMMIT}/${MY_P}.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="sys-kernel/pf-sources:* + sys-process/procps" + +CONFIG_CHECK="KSM" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}/${P}-respect-cflags-ldflags.patch" ) + +src_install() { + default + einstalldocs + + newinitd "${FILESDIR}/uksmd.init" uksmd + systemd_dounit distro/uksmd.service +}