diff options
author | 2018-03-19 21:58:34 +0000 | |
---|---|---|
committer | 2018-03-19 21:58:34 +0000 | |
commit | e5d4be0991cf848b2c940e18566faff7474597a9 (patch) | |
tree | 04782c0a6f604428ca1d29e11a53cb6ff958f0cb /sys-process | |
parent | net-misc/dropbox-cli: remove ebuild (diff) | |
download | carreira-e5d4be0991cf848b2c940e18566faff7474597a9.tar.gz carreira-e5d4be0991cf848b2c940e18566faff7474597a9.tar.bz2 carreira-e5d4be0991cf848b2c940e18566faff7474597a9.zip |
Added ebuild for earlyoom, version 1.0 and 9999.
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/earlyoom/Manifest | 1 | ||||
-rw-r--r-- | sys-process/earlyoom/earlyoom-1.0.ebuild | 21 | ||||
-rw-r--r-- | sys-process/earlyoom/earlyoom-9999.ebuild | 27 | ||||
-rw-r--r-- | sys-process/earlyoom/files/earlyoom | 28 | ||||
-rw-r--r-- | sys-process/earlyoom/metadata.xml | 11 |
5 files changed, 88 insertions, 0 deletions
diff --git a/sys-process/earlyoom/Manifest b/sys-process/earlyoom/Manifest new file mode 100644 index 0000000..03ca14c --- /dev/null +++ b/sys-process/earlyoom/Manifest @@ -0,0 +1 @@ +DIST earlyoom-1.0.tar.gz 13706 SHA256 0bc278a3744f454f3a29835a4ef939498d7044b78d490aff7f5a6ab6596bb0cb SHA512 d747b5a5d2e58040aa1531ee652a3705d79195d001ba93650fe20817859848f81e5d306a921dfaaf8c894b843a328a823a8f8adaf52b8ea2e92479a32a9f17df WHIRLPOOL a17add6f248c333492c963308c9db4394b17665763ecfcd86f08775bdb1481ee4495af0d02b25bbdfc8566a6eceea3cad68b544ab6ab458f19279c668ce7010f diff --git a/sys-process/earlyoom/earlyoom-1.0.ebuild b/sys-process/earlyoom/earlyoom-1.0.ebuild new file mode 100644 index 0000000..dabe83c --- /dev/null +++ b/sys-process/earlyoom/earlyoom-1.0.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Early out-of-memory killer that runs in user-space" +HOMEPAGE="https://github.com/rfjakob/earlyoom" +SRC_URI="https://github.com/rfjakob/earlyoom/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_install() { + dobin earlyoom + doinitd "${FILESDIR}/earlyoom" +} diff --git a/sys-process/earlyoom/earlyoom-9999.ebuild b/sys-process/earlyoom/earlyoom-9999.ebuild new file mode 100644 index 0000000..f840fde --- /dev/null +++ b/sys-process/earlyoom/earlyoom-9999.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit git-r3 + +DESCRIPTION="Early out-of-memory killer that runs in user-space" +HOMEPAGE="https://github.com/rfjakob/earlyoom" + +EGIT_REPO_URI="https://github.com/rfjakob/earlyoom.git" +EGIT_BRANCH="master" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +DISTDDIR=$WORKDIR + +src_install() { + dobin earlyoom + doinitd "${FILESDIR}/earlyoom" +} diff --git a/sys-process/earlyoom/files/earlyoom b/sys-process/earlyoom/files/earlyoom new file mode 100644 index 0000000..8fa4b91 --- /dev/null +++ b/sys-process/earlyoom/files/earlyoom @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +NAME=earlyoom +EARLYOOM_EXEC=/usr/bin/$NAME +EARLYOOM_ARGS="-k" +LOGFILE=/var/log/$NAME.log +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +depend() { + need localmount +} + +start() { + ebegin "Starting earlyoom" + start-stop-daemon --start --quiet --background --exec $EARLYOOM_EXEC -- $EARLYOOM_ARGS + eend $? +} + +stop() { + ebegin "Stopping earlyoom" + start-stop-daemon --stop --quiet --exec $EARLYOOM_EXEC + eend $? +} + diff --git a/sys-process/earlyoom/metadata.xml b/sys-process/earlyoom/metadata.xml new file mode 100644 index 0000000..964851e --- /dev/null +++ b/sys-process/earlyoom/metadata.xml @@ -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>joaomsantos@gmail.com</email> + <name>João Santos</name> + </maintainer> + <longdescription lang="en"> + Early out-of-memory killer that runs in user-space + </longdescription> +</pkgmetadata> |