sys-apps/earlyoom: initial import from booboo

tests don't pass and I haven't tested so no keywords

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
This commit is contained in:
Rick Farina
2020-01-10 10:09:43 -05:00
parent 58e2285cb9
commit 8931d1c2c2
4 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST earlyoom-1.3.tar.gz 31399 BLAKE2B 3867540afb23493fbb532bcb72a5cfacca4ed297a053ff5e2c7e394bfa3640887e3e7c6430789bc1eda4b7a68680d8a74ab56b641fe9e5d4caa4406e2edb0667 SHA512 c5de742289e82c2098bd88c61dcb3e20eb022905a015b4894c95a4de3978ce18d794a9e7c17c97851ca9f8888728908f7bf978c014b3b69799bffa8b546d258a

View File

@@ -0,0 +1,38 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd
DESCRIPTION="Early OOM Daemon for Linux"
HOMEPAGE="https://github.com/rfjakob/earlyoom"
SRC_URI="https://github.com/rfjakob/earlyoom/archive/v$PV.tar.gz -> $P.tar.gz"
LICENSE="MIT-with-advertising"
SLOT="0"
#KEYWORDS="~amd64 ~x86"
IUSE="systemd docs"
DEPEND="docs? ( app-text/pandoc )"
RDEPEND=""
#https://github.com/rfjakob/earlyoom/issues/156
RESTRICT="test"
src_compile() {
VERSION="v${PV}" emake earlyoom
use docs && VERSION="v${PV}" emake earlyoom.1
use systemd && emake PREFIX=/usr earlyoom.service
}
src_install() {
dobin earlyoom
use docs && doman earlyoom.1
insinto /etc/default
newins earlyoom.default earlyoom
doinitd "${FILESDIR}/${PN}"
use systemd && systemd_dounit earlyoom.service
}

View File

@@ -0,0 +1,6 @@
#!/sbin/openrc-run
name=earlyoom
command=/usr/bin/earlyoom
command_args=-k
command_background=1
pidfile=/run/earlyoom.pid

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>zerochaos@gentoo.org</email>
<name>Rick Farina</name>
</maintainer>
<use>
<flag name="docs">Generate man page</flag>
</use>
</pkgmetadata>