diff options
author | 2019-01-28 21:14:46 +0100 | |
---|---|---|
committer | 2019-01-28 21:14:46 +0100 | |
commit | 9f41f365b8630280de90eb1aa5fcfbd4424d0aa9 (patch) | |
tree | 544d9676261bb92dc28805504a917462c5de26c7 /sys-apps | |
parent | Style change (diff) | |
download | haarp-9f41f365b8630280de90eb1aa5fcfbd4424d0aa9.tar.gz haarp-9f41f365b8630280de90eb1aa5fcfbd4424d0aa9.tar.bz2 haarp-9f41f365b8630280de90eb1aa5fcfbd4424d0aa9.zip |
Add earlyoom
Signed-off-by: haarp <main.haarp@gmail.com>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/earlyoom/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/earlyoom/earlyoom-1.2.ebuild | 36 | ||||
-rw-r--r-- | sys-apps/earlyoom/files/earlyoom | 6 |
3 files changed, 45 insertions, 0 deletions
diff --git a/sys-apps/earlyoom/Manifest b/sys-apps/earlyoom/Manifest new file mode 100644 index 0000000..bac2c3d --- /dev/null +++ b/sys-apps/earlyoom/Manifest @@ -0,0 +1,3 @@ +AUX earlyoom 122 BLAKE2B 1afec0a9a975a2d3e65bfa574a587ce625c805153e0ec9d6904d59ae024c252145d634deca0b54e6f22aa6364188e563a1a0a70f8963a416c53fc31d11beecc3 SHA512 3ba5aca0db373bb42c46573f9636ccdb25199b4c63f763f94128b2bd0465a3aefed062847d3bf301ccdb7b96745ab2d85e37d65c40620d5c179cc90b86b80f50 +DIST earlyoom-1.2.tar.gz 23011 BLAKE2B 3f4f8798d6b9687618ab4e117f13279a5d9bbb3de41158a8b947442aa04cfd320c0716a7ece63de254079c79a458500cebf3e50835baa0bad4a4e7427d2f58a8 SHA512 45edc7064f227fce3ed6fdc9e524a8a117f8a9de50d98c9e75f31c193a1820804df8d9fac02c4ee1daabd3c2018bbeb422611ca29971e1c11f86446de8c96bc1 +EBUILD earlyoom-1.2.ebuild 795 BLAKE2B 43df1da1ba23c9df5dc3e8b7bf8547bbb223c1c06ea8eb9d3aee5225c0a328dcd978a902896b6846f7fbd33bd2702dc154a181ace229bdae0106a8906ca90986 SHA512 3845b08e099c6df9b1cc2cbc8ac6b7803e66cde9e704535f27c98fd2ac3d2f7a498eae79d0961e14c6e25b61f6dae1beb76e2aed75d7b620133e07391fc444e4 diff --git a/sys-apps/earlyoom/earlyoom-1.2.ebuild b/sys-apps/earlyoom/earlyoom-1.2.ebuild new file mode 100644 index 0000000..5cfc6d4 --- /dev/null +++ b/sys-apps/earlyoom/earlyoom-1.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2019 Gentoo Foundation +# 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="+openrc systemd docs" + +DEPEND="docs? ( app-text/pandoc )" +RDEPEND="" + +src_compile() { + emake earlyoom + use docs && 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 + newman MANPAGE.md earlyoom.1 + + use openrc && doinitd "$FILESDIR/$PN" + use systemd && systemd_dounit earlyoom.service +} diff --git a/sys-apps/earlyoom/files/earlyoom b/sys-apps/earlyoom/files/earlyoom new file mode 100644 index 0000000..9b35e36 --- /dev/null +++ b/sys-apps/earlyoom/files/earlyoom @@ -0,0 +1,6 @@ +#!/sbin/openrc-run +name=earlyoom +command=/usr/bin/earlyoom +command_args=-p +command_background=1 +pidfile=/run/earlyoom.pid |