mirror of
https://github.com/MorizzG/gentoo-mg.git
synced 2025-12-06 04:22:43 +00:00
earlyoom: 1.9.0
This commit is contained in:
parent
392186ddf0
commit
0ba3972ade
2 changed files with 57 additions and 0 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST earlyoom-1.8.2.tar.gz 61555 BLAKE2B 2ce0ae16ed0a4e69cfeb85062327bf3991153e67778f2d2153f473f2b8fbdaa5f8edf0a6550c5f9fd8d219e9e11ba7cc309a157a596b99a9d17f04ccd7c418e7 SHA512 2c3b3bc93d3316e828a29d31ea48b0078b1495487aef1cf8b681aab069852ef87c05e15e63d9fe574eed478bbf27244805ed980d9439f22728ec10f284f2f476
|
||||
DIST earlyoom-1.9.0.tar.gz 64388 BLAKE2B d2a12d81c43d2e5265b4f2aba51f8adeb525dffeedc7202869ee4ab18caf0c1248a1adad963765e88109145d5cb73b02f382f1facd3a72e62ad3f1282af7148c SHA512 bf8e5a71c235df6291fc41639ea3e1a73c625b95f82cb1f84bb52a6583dfaee8d66871ace02058d3eda2c39c138ebf5d0f0cf96d8e1837c48689f05a41972174
|
||||
|
|
|
|||
56
sys-apps/earlyoom/earlyoom-1.9.0.ebuild
Normal file
56
sys-apps/earlyoom/earlyoom-1.9.0.ebuild
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Copyright 2020-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GO_OPTIONAL=1
|
||||
inherit go-module systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="Early OOM Daemon for Linux"
|
||||
HOMEPAGE="https://github.com/rfjakob/earlyoom"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rfjakob/earlyoom.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/rfjakob/earlyoom/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="man"
|
||||
|
||||
BDEPEND="
|
||||
man? ( virtual/pandoc )
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
|
||||
emake \
|
||||
PREFIX="${EPREFIX}"/usr \
|
||||
VERSION="v${PV}" \
|
||||
SYSTEMDUNITDIR="$(systemd_get_systemunitdir)" \
|
||||
earlyoom earlyoom.service $(usev man 'earlyoom.1')
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin earlyoom
|
||||
|
||||
use man && doman earlyoom.1
|
||||
|
||||
insinto /etc/default
|
||||
newins earlyoom.default earlyoom
|
||||
|
||||
dodir /etc/conf.d
|
||||
dosym -r /etc/default/earlyoom /etc/conf.d/earlyoom
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}-r1 ${PN}
|
||||
systemd_dounit earlyoom.service
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue