hasufell-repository/packages/sys-apps/earlyoom/earlyoom-1.2.exheres-0

38 lines
751 B
Bash
Raw Permalink Normal View History

2018-09-13 17:06:14 +00:00
# Copyright 2016 Kylie McClain <somasis@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
require github [ user='rfjakob' tag="v${PV}" ]
require systemd-service [ systemd_files=[ ${PN}.service ] ]
require openrc-service [ openrc_confd_files=[ "${FILES}"/openrc/confd ] ]
SUMMARY="A better and more proactive out-of-memory killer"
SLOT="0"
LICENCES="MIT"
DEPENDENCIES="
test:
dev-lang/go
"
MYOPTIONS=""
# tests never work in paludis/sydbox
RESTRICT="test"
PLATFORMS="~amd64"
src_compile() {
emake \
VERSION=${PV} \
PREFIX=/usr/$(exhost --target) \
${PN}.service ${PN}
}
src_install() {
dobin earlyoom
install_systemd_files
install_openrc_files
emagicdocs
}