mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
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:
1
sys-apps/earlyoom/Manifest
Normal file
1
sys-apps/earlyoom/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST earlyoom-1.3.tar.gz 31399 BLAKE2B 3867540afb23493fbb532bcb72a5cfacca4ed297a053ff5e2c7e394bfa3640887e3e7c6430789bc1eda4b7a68680d8a74ab56b641fe9e5d4caa4406e2edb0667 SHA512 c5de742289e82c2098bd88c61dcb3e20eb022905a015b4894c95a4de3978ce18d794a9e7c17c97851ca9f8888728908f7bf978c014b3b69799bffa8b546d258a
|
||||
38
sys-apps/earlyoom/earlyoom-1.3.ebuild
Normal file
38
sys-apps/earlyoom/earlyoom-1.3.ebuild
Normal 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
|
||||
}
|
||||
6
sys-apps/earlyoom/files/earlyoom
Normal file
6
sys-apps/earlyoom/files/earlyoom
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/sbin/openrc-run
|
||||
name=earlyoom
|
||||
command=/usr/bin/earlyoom
|
||||
command_args=-k
|
||||
command_background=1
|
||||
pidfile=/run/earlyoom.pid
|
||||
11
sys-apps/earlyoom/metadata.xml
Normal file
11
sys-apps/earlyoom/metadata.xml
Normal 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>
|
||||
Reference in New Issue
Block a user