app-admin/ananicy: backport fixes

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-07-03 04:52:48 +02:00
parent a36be1970f
commit d273c63b6c
4 changed files with 10 additions and 46 deletions

View File

@@ -3,7 +3,7 @@
EAPI="7"
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit python-single-r1
@@ -11,18 +11,19 @@ DESCRIPTION="ANother Auto NICe daemon"
HOMEPAGE="https://github.com/Nefelim4ag/Ananicy"
SRC_URI="https://github.com/Nefelim4ag/Ananicy/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P^}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}"
BDEPEND="${PYTHON_DEPS}"
RDEPEND="
${DEPEND}
${BDEPEND}
sys-process/schedtool
"
DOCS=( README.md )
PATCHES=( "${FILESDIR}/fix-sysctl-path.patch" )
PATCHES=( "${FILESDIR}/${PN}-fix-sysctl-path.patch" )
src_compile() {
return

View File

@@ -1,37 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
inherit python-single-r1
DESCRIPTION="ANother Auto NICe daemon"
HOMEPAGE="https://github.com/Nefelim4ag/Ananicy"
SRC_URI="https://github.com/Nefelim4ag/Ananicy/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
sys-process/schedtool
"
S="${WORKDIR}/${P^}"
DOCS=( README.md )
PATCHES=( "${FILESDIR}/fix-sysctl-path.patch" )
src_compile() {
return
}
src_install() {
emake PREFIX="${D}" install
python_fix_shebang "${ED}/usr/bin/ananicy"
einstalldocs
}

View File

@@ -1,5 +1,5 @@
--- a/ananicy.service 2021-04-19 19:01:54.681195153 +0200
+++ b/ananicy.service 2021-04-19 19:02:44.467050928 +0200
--- a/ananicy.service
+++ b/ananicy.service
@@ -4,9 +4,9 @@
[Service]

View File

@@ -6,13 +6,13 @@ command_args="start"
command_background=true
start_pre() {
/sbin/sysctl -e kernel.sched_autogroup_enabled=0
/usr/sbin/sysctl -e kernel.sched_autogroup_enabled=0
}
stop_post() {
/sbin/sysctl -e kernel.sched_autogroup_enabled=1
/usr/sbin/sysctl -e kernel.sched_autogroup_enabled=1
}
stop() {
start-stop-daemon --stop --pidfile "$pidfile"
start-stop-daemon --stop --pidfile "$pidfile"
}