summaryrefslogtreecommitdiff
path: root/sys-process/uksmd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-08-18 18:16:17 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-08-18 18:16:17 +0100
commitfc637fb28da700da71ec2064d65ca5a7a31b9c6c (patch)
tree326613a08f25851c388715e205576a2e7d25dc4f /sys-process/uksmd
parentb24bd25253fe093f722ab576d29fdc41d04cb1ee (diff)
gentoo resync : 18.08.2019
Diffstat (limited to 'sys-process/uksmd')
-rw-r--r--sys-process/uksmd/Manifest5
-rw-r--r--sys-process/uksmd/files/uksmd-0_pre20190726-respect-cflags-ldflags.patch15
-rw-r--r--sys-process/uksmd/files/uksmd.init7
-rw-r--r--sys-process/uksmd/metadata.xml8
-rw-r--r--sys-process/uksmd/uksmd-0_pre20190726.ebuild34
5 files changed, 69 insertions, 0 deletions
diff --git a/sys-process/uksmd/Manifest b/sys-process/uksmd/Manifest
new file mode 100644
index 000000000000..25e8753bc2d0
--- /dev/null
+++ b/sys-process/uksmd/Manifest
@@ -0,0 +1,5 @@
+AUX uksmd-0_pre20190726-respect-cflags-ldflags.patch 417 BLAKE2B a443e794da9452b5577bf3a96c4eac5d860516e9b29bffef9ee1b53755f2e2c2a91d518c4c3d07895e892d5cf002634f5d3e00dd48e7ce9bdd01098ac515c4b5 SHA512 f6b4667dd72c3310c3fb40ba6ceb8b285306a71b6cebf9254669716f03387a1fb8cb0650004daf64abeb5113aa3b83aa6287a6444f4521d942b195d94b46fdd6
+AUX uksmd.init 213 BLAKE2B 74d9044e228d9573c338d9db977442ff3168b1ab07e3b1d64d9baf18fa250100e9fa8b6ad855f376b47f338e7ef6e59cb369b27c0525fc4e6cb9e6d019b64dcd SHA512 54f95ada192249c9e0e753979ac7383e5390b030289696f8c881c1fd916c4504b0667e918a6b2cef7ee5719e2ed7db8691dc5ac8fcb972dbc7621efaba156226
+DIST uksmd-0_pre20190726.tar.bz2 13445 BLAKE2B 4d16b9e7dff80269561c61cf8ea4177e6ceaa2540a3ee5bb3a36684e8364d0a4abdfb494fd0dbb3e6d5d2c074601a0c39f9f0570448e3d5769e50184c8ef7975 SHA512 812217a067c2fe70a17a321b507071f369efa38ca12d566cde66b1fc6e2e3ffa7e4d3fd3904f2f3cf409e313d03ab06829cef23fffadd785282cb602dbd5f06e
+EBUILD uksmd-0_pre20190726.ebuild 738 BLAKE2B 0b86d2bc7b3e3265d2c4b8bec516f7200a9de3261d6c6f705c24eaefa3ecd9bc69fa7d608178bfe718a718ab48f931bf15d4a33497bb32a2c83a8a55750194a5 SHA512 961baf60f34980cf1c9d45ac6096c2b940df5afbee322e1b27d8b2456d5b3f9bdb2faed384821485ee89d08ff526312bd3a498456f547e03f4f1788161a04649
+MISC metadata.xml 254 BLAKE2B 938f68b7b21ad386a35540a09e4bb956e241dfc963d4823c3c0cd46d3449ff4fb5a1cead67ad7c35a460503d30bdbde35822535f1c2d46f2939ee190f328b846 SHA512 26047ebb40fc49bfb4393121c5c5af69caee617a1d75676be84b0f5af75564828aeeef4503c7681eaaf7e48f6c662574874336296c18e002dca8e925162a1d4c
diff --git a/sys-process/uksmd/files/uksmd-0_pre20190726-respect-cflags-ldflags.patch b/sys-process/uksmd/files/uksmd-0_pre20190726-respect-cflags-ldflags.patch
new file mode 100644
index 000000000000..7e92204d4037
--- /dev/null
+++ b/sys-process/uksmd/files/uksmd-0_pre20190726-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 000000000000..637666b50a96
--- /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 000000000000..6b0a0fb3a729
--- /dev/null
+++ b/sys-process/uksmd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>juippis@gentoo.org</email>
+ <name>Joonas Niilola</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-process/uksmd/uksmd-0_pre20190726.ebuild b/sys-process/uksmd/uksmd-0_pre20190726.ebuild
new file mode 100644
index 000000000000..d0007f9ba410
--- /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
+}