1 |
commit: dc990c2ce3f52b90873d6e5dbf5bb04823860ba7 |
2 |
Author: Karl Linden <karl.j.linden <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue May 31 06:00:47 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 07:07:36 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc990c2c |
7 |
|
8 |
sys-process/rtirq: Initial commit. |
9 |
|
10 |
A crucial part of professional realtime audio is low latency. rtirq sets |
11 |
realtime priorities and scheduling policies for desired IRQ threads on boot. |
12 |
Without rtirq you would need to set these priorities yourself after each boot |
13 |
or live with sound dropouts. See also [1]. |
14 |
|
15 |
Gentoo-Bug: https://bugs.gentoo.org/566678 |
16 |
Closes: https://github.com/gentoo/gentoo/pull/1554 |
17 |
Package-Manager: portage-2.3.0_rc1 |
18 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
19 |
|
20 |
[1]: http://alsa.opensrc.org/Rtirq |
21 |
|
22 |
sys-process/rtirq/Manifest | 1 + |
23 |
sys-process/rtirq/files/rtirq | 29 +++++++++++++++++++++++ |
24 |
sys-process/rtirq/metadata.xml | 12 ++++++++++ |
25 |
sys-process/rtirq/rtirq-20150216.ebuild | 42 +++++++++++++++++++++++++++++++++ |
26 |
4 files changed, 84 insertions(+) |
27 |
|
28 |
diff --git a/sys-process/rtirq/Manifest b/sys-process/rtirq/Manifest |
29 |
new file mode 100644 |
30 |
index 0000000..5b01898 |
31 |
--- /dev/null |
32 |
+++ b/sys-process/rtirq/Manifest |
33 |
@@ -0,0 +1 @@ |
34 |
+DIST rtirq-20150216.tar.gz 12249 SHA256 2b44133cefe1527c9f3eecaa59f167f314286cdff10d55301dd6d2cb794e9b93 SHA512 4cb4e3a8e314cec238c2a21c975bec258f229b660e0994893b73aa0b16f6041179ff4e220532fde237d70e15fd5420e22ee5dbf84168148060e760d76617b59c WHIRLPOOL 4f1441532ef75b78f5a17b78a325d86d767960923094b2ba8dbdff21b12102fb70a20c56cfa7f325703ff84a1bf50396c7e761f84ea01a4952970172919fa324 |
35 |
|
36 |
diff --git a/sys-process/rtirq/files/rtirq b/sys-process/rtirq/files/rtirq |
37 |
new file mode 100644 |
38 |
index 0000000..dd31153 |
39 |
--- /dev/null |
40 |
+++ b/sys-process/rtirq/files/rtirq |
41 |
@@ -0,0 +1,29 @@ |
42 |
+#!/sbin/openrc-run |
43 |
+# Copyright 1999-2016 Gentoo Foundation |
44 |
+# Distributed under the terms of the GNU General Public License, v2 or later |
45 |
+# $Id$ |
46 |
+ |
47 |
+command="/usr/sbin/rtirq.sh" |
48 |
+ |
49 |
+extra_commands="status" |
50 |
+ |
51 |
+depend() { |
52 |
+ need localmount |
53 |
+ after alsasound logger |
54 |
+} |
55 |
+ |
56 |
+start() { |
57 |
+ ebegin "Starting rtirq" |
58 |
+ ${command} start |
59 |
+ eend $? |
60 |
+} |
61 |
+ |
62 |
+stop() { |
63 |
+ ebegin "Stopping rtirq" |
64 |
+ ${command} reset |
65 |
+ eend $? |
66 |
+} |
67 |
+ |
68 |
+status() { |
69 |
+ ${command} status |
70 |
+} |
71 |
|
72 |
diff --git a/sys-process/rtirq/metadata.xml b/sys-process/rtirq/metadata.xml |
73 |
new file mode 100644 |
74 |
index 0000000..d2a8f10 |
75 |
--- /dev/null |
76 |
+++ b/sys-process/rtirq/metadata.xml |
77 |
@@ -0,0 +1,12 @@ |
78 |
+<?xml version="1.0" encoding="UTF-8"?> |
79 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
80 |
+<pkgmetadata> |
81 |
+ <maintainer type="person"> |
82 |
+ <email>karl.j.linden@×××××.com</email> |
83 |
+ <name>Karl Linden</name> |
84 |
+ </maintainer> |
85 |
+ <maintainer type="project"> |
86 |
+ <email>proxy-maint@g.o</email> |
87 |
+ <name>Proxy Maintainers</name> |
88 |
+ </maintainer> |
89 |
+</pkgmetadata> |
90 |
|
91 |
diff --git a/sys-process/rtirq/rtirq-20150216.ebuild b/sys-process/rtirq/rtirq-20150216.ebuild |
92 |
new file mode 100644 |
93 |
index 0000000..aa0d0d6 |
94 |
--- /dev/null |
95 |
+++ b/sys-process/rtirq/rtirq-20150216.ebuild |
96 |
@@ -0,0 +1,42 @@ |
97 |
+# Copyright 1999-2016 Gentoo Foundation |
98 |
+# Distributed under the terms of the GNU General Public License v2 |
99 |
+# $Id$ |
100 |
+ |
101 |
+EAPI="6" |
102 |
+ |
103 |
+DESCRIPTION="Modify realtime scheduling policy and priority of IRQ handlers" |
104 |
+HOMEPAGE="http://www.rncbc.org/jack/" |
105 |
+ |
106 |
+SRC_URI="http://www.rncbc.org/jack/${P}.tar.gz" |
107 |
+LICENSE="GPL-2" |
108 |
+SLOT="0" |
109 |
+KEYWORDS="~amd64 ~x86" |
110 |
+ |
111 |
+RDEPEND=">=sys-apps/util-linux-2.13" |
112 |
+ |
113 |
+src_prepare() { |
114 |
+ # Correct config file path. |
115 |
+ sed -i -e "s:^\(RTIRQ_CONFIG\=\)\(.*\):\1/etc/conf.d/rtirq:" ${PN}.sh || die |
116 |
+ sed -i -e "s:/etc/sysconfig/rtirq:/etc/conf.d/rtirq:" ${PN}.conf || die |
117 |
+ |
118 |
+ default |
119 |
+} |
120 |
+ |
121 |
+src_install(){ |
122 |
+ dosbin ${PN}.sh |
123 |
+ doinitd "${FILESDIR}"/${PN} |
124 |
+ newconfd ${PN}.conf ${PN} |
125 |
+} |
126 |
+ |
127 |
+pkg_postinst(){ |
128 |
+ if [[ "$(rc-config list default | grep rtirq)" = "" ]] ; then |
129 |
+ elog "You probably want to add rtirq to the default runlevel, i.e." |
130 |
+ elog " rc-update add rtirq default" |
131 |
+ fi |
132 |
+ if [[ "$(uname -r | grep rt)" = "" ]] ; then |
133 |
+ elog "To use rtirq you need a realtime kernel." |
134 |
+ elog "Realtime kernel sources are supplied in sys-kernel/rt-sources." |
135 |
+ fi |
136 |
+ elog "To display the rtirq status issue:" |
137 |
+ elog " /etc/init.d/rtirq status" |
138 |
+} |