1 |
commit: d273c63b6ce17948265eb9b9d85a71a40e97f0c3 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 3 02:52:48 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Jul 3 02:52:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d273c63b |
7 |
|
8 |
app-admin/ananicy: backport fixes |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
app-admin/ananicy/ananicy-2.2.1-r1.ebuild | 9 +++--- |
13 |
app-admin/ananicy/ananicy-2.2.1.ebuild | 37 ---------------------- |
14 |
...tl-path.patch => ananicy-fix-sysctl-path.patch} | 4 +-- |
15 |
app-admin/ananicy/files/ananicy.initd | 6 ++-- |
16 |
4 files changed, 10 insertions(+), 46 deletions(-) |
17 |
|
18 |
diff --git a/app-admin/ananicy/ananicy-2.2.1-r1.ebuild b/app-admin/ananicy/ananicy-2.2.1-r1.ebuild |
19 |
index 359b99a09..7f383bf36 100644 |
20 |
--- a/app-admin/ananicy/ananicy-2.2.1-r1.ebuild |
21 |
+++ b/app-admin/ananicy/ananicy-2.2.1-r1.ebuild |
22 |
@@ -3,7 +3,7 @@ |
23 |
|
24 |
EAPI="7" |
25 |
|
26 |
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) |
27 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
28 |
|
29 |
inherit python-single-r1 |
30 |
|
31 |
@@ -11,18 +11,19 @@ DESCRIPTION="ANother Auto NICe daemon" |
32 |
HOMEPAGE="https://github.com/Nefelim4ag/Ananicy" |
33 |
SRC_URI="https://github.com/Nefelim4ag/Ananicy/archive/${PV}.tar.gz -> ${P}.tar.gz" |
34 |
S="${WORKDIR}/${P^}" |
35 |
+ |
36 |
LICENSE="GPL-3" |
37 |
SLOT="0" |
38 |
KEYWORDS="~amd64" |
39 |
|
40 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
41 |
-DEPEND="${PYTHON_DEPS}" |
42 |
+BDEPEND="${PYTHON_DEPS}" |
43 |
RDEPEND=" |
44 |
- ${DEPEND} |
45 |
+ ${BDEPEND} |
46 |
sys-process/schedtool |
47 |
" |
48 |
DOCS=( README.md ) |
49 |
-PATCHES=( "${FILESDIR}/fix-sysctl-path.patch" ) |
50 |
+PATCHES=( "${FILESDIR}/${PN}-fix-sysctl-path.patch" ) |
51 |
|
52 |
src_compile() { |
53 |
return |
54 |
|
55 |
diff --git a/app-admin/ananicy/ananicy-2.2.1.ebuild b/app-admin/ananicy/ananicy-2.2.1.ebuild |
56 |
deleted file mode 100644 |
57 |
index a84862bea..000000000 |
58 |
--- a/app-admin/ananicy/ananicy-2.2.1.ebuild |
59 |
+++ /dev/null |
60 |
@@ -1,37 +0,0 @@ |
61 |
-# Copyright 1999-2021 Gentoo Authors |
62 |
-# Distributed under the terms of the GNU General Public License v2 |
63 |
- |
64 |
-EAPI="7" |
65 |
- |
66 |
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) |
67 |
- |
68 |
-inherit python-single-r1 |
69 |
- |
70 |
-DESCRIPTION="ANother Auto NICe daemon" |
71 |
-HOMEPAGE="https://github.com/Nefelim4ag/Ananicy" |
72 |
-SRC_URI="https://github.com/Nefelim4ag/Ananicy/archive/${PV}.tar.gz -> ${P}.tar.gz" |
73 |
- |
74 |
-LICENSE="GPL-3" |
75 |
-SLOT="0" |
76 |
-KEYWORDS="~amd64" |
77 |
- |
78 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
79 |
- |
80 |
-DEPEND="${PYTHON_DEPS}" |
81 |
-RDEPEND="${DEPEND} |
82 |
- sys-process/schedtool |
83 |
-" |
84 |
- |
85 |
-S="${WORKDIR}/${P^}" |
86 |
-DOCS=( README.md ) |
87 |
-PATCHES=( "${FILESDIR}/fix-sysctl-path.patch" ) |
88 |
- |
89 |
-src_compile() { |
90 |
- return |
91 |
-} |
92 |
- |
93 |
-src_install() { |
94 |
- emake PREFIX="${D}" install |
95 |
- python_fix_shebang "${ED}/usr/bin/ananicy" |
96 |
- einstalldocs |
97 |
-} |
98 |
|
99 |
diff --git a/app-admin/ananicy/files/fix-sysctl-path.patch b/app-admin/ananicy/files/ananicy-fix-sysctl-path.patch |
100 |
similarity index 77% |
101 |
rename from app-admin/ananicy/files/fix-sysctl-path.patch |
102 |
rename to app-admin/ananicy/files/ananicy-fix-sysctl-path.patch |
103 |
index 6d4152fff..1c44fe8c4 100644 |
104 |
--- a/app-admin/ananicy/files/fix-sysctl-path.patch |
105 |
+++ b/app-admin/ananicy/files/ananicy-fix-sysctl-path.patch |
106 |
@@ -1,5 +1,5 @@ |
107 |
---- a/ananicy.service 2021-04-19 19:01:54.681195153 +0200 |
108 |
-+++ b/ananicy.service 2021-04-19 19:02:44.467050928 +0200 |
109 |
+--- a/ananicy.service |
110 |
++++ b/ananicy.service |
111 |
@@ -4,9 +4,9 @@ |
112 |
|
113 |
[Service] |
114 |
|
115 |
diff --git a/app-admin/ananicy/files/ananicy.initd b/app-admin/ananicy/files/ananicy.initd |
116 |
index e949d54e6..e2c31dfb1 100644 |
117 |
--- a/app-admin/ananicy/files/ananicy.initd |
118 |
+++ b/app-admin/ananicy/files/ananicy.initd |
119 |
@@ -6,13 +6,13 @@ command_args="start" |
120 |
command_background=true |
121 |
|
122 |
start_pre() { |
123 |
- /sbin/sysctl -e kernel.sched_autogroup_enabled=0 |
124 |
+ /usr/sbin/sysctl -e kernel.sched_autogroup_enabled=0 |
125 |
} |
126 |
|
127 |
stop_post() { |
128 |
- /sbin/sysctl -e kernel.sched_autogroup_enabled=1 |
129 |
+ /usr/sbin/sysctl -e kernel.sched_autogroup_enabled=1 |
130 |
} |
131 |
|
132 |
stop() { |
133 |
- start-stop-daemon --stop --pidfile "$pidfile" |
134 |
+ start-stop-daemon --stop --pidfile "$pidfile" |
135 |
} |