From 5fd0424e49b4f98bf3d3fc5bdf7f3a602c261411 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Mon, 24 May 2021 16:38:53 +0100 Subject: dev-libs/randomx: add sysctl for hugepages Package-Manager: Portage-3.0.18, Repoman-3.0.2 --- dev-libs/randomx/files/60-randomx.conf | 1 + dev-libs/randomx/randomx-1.1.9.ebuild | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 dev-libs/randomx/files/60-randomx.conf (limited to 'dev-libs') diff --git a/dev-libs/randomx/files/60-randomx.conf b/dev-libs/randomx/files/60-randomx.conf new file mode 100644 index 00000000..1e761b86 --- /dev/null +++ b/dev-libs/randomx/files/60-randomx.conf @@ -0,0 +1 @@ +vm.nr_hugepages = 2048 diff --git a/dev-libs/randomx/randomx-1.1.9.ebuild b/dev-libs/randomx/randomx-1.1.9.ebuild index 44cdd359..fa7d7189 100644 --- a/dev-libs/randomx/randomx-1.1.9.ebuild +++ b/dev-libs/randomx/randomx-1.1.9.ebuild @@ -28,3 +28,10 @@ src_configure() { cmake-multilib_src_configure } + +src_install() { + cmake-multilib_src_install + + insinto /usr/lib/sysctl.d + doins "${FILESDIR}/60-${PN}.conf" +} -- cgit v1.2.3