diff options
author | 2016-05-31 08:00:47 +0200 | |
---|---|---|
committer | 2016-05-31 07:07:36 +0000 | |
commit | dc990c2ce3f52b90873d6e5dbf5bb04823860ba7 (patch) | |
tree | b7896bfab4d9622225586f460e0e6d618a530540 /sys-process/rtirq/rtirq-20150216.ebuild | |
parent | app-misc/cmatrix: EAPI 6 bump. (diff) | |
download | gentoo-dc990c2ce3f52b90873d6e5dbf5bb04823860ba7.tar.gz gentoo-dc990c2ce3f52b90873d6e5dbf5bb04823860ba7.tar.bz2 gentoo-dc990c2ce3f52b90873d6e5dbf5bb04823860ba7.zip |
sys-process/rtirq: Initial commit.
A crucial part of professional realtime audio is low latency. rtirq sets
realtime priorities and scheduling policies for desired IRQ threads on boot.
Without rtirq you would need to set these priorities yourself after each boot
or live with sound dropouts. See also [1].
Gentoo-Bug: https://bugs.gentoo.org/566678
Closes: https://github.com/gentoo/gentoo/pull/1554
Package-Manager: portage-2.3.0_rc1
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
[1]: http://alsa.opensrc.org/Rtirq
Diffstat (limited to 'sys-process/rtirq/rtirq-20150216.ebuild')
-rw-r--r-- | sys-process/rtirq/rtirq-20150216.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sys-process/rtirq/rtirq-20150216.ebuild b/sys-process/rtirq/rtirq-20150216.ebuild new file mode 100644 index 000000000000..aa0d0d678b8c --- /dev/null +++ b/sys-process/rtirq/rtirq-20150216.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="6" + +DESCRIPTION="Modify realtime scheduling policy and priority of IRQ handlers" +HOMEPAGE="http://www.rncbc.org/jack/" + +SRC_URI="http://www.rncbc.org/jack/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=sys-apps/util-linux-2.13" + +src_prepare() { + # Correct config file path. + sed -i -e "s:^\(RTIRQ_CONFIG\=\)\(.*\):\1/etc/conf.d/rtirq:" ${PN}.sh || die + sed -i -e "s:/etc/sysconfig/rtirq:/etc/conf.d/rtirq:" ${PN}.conf || die + + default +} + +src_install(){ + dosbin ${PN}.sh + doinitd "${FILESDIR}"/${PN} + newconfd ${PN}.conf ${PN} +} + +pkg_postinst(){ + if [[ "$(rc-config list default | grep rtirq)" = "" ]] ; then + elog "You probably want to add rtirq to the default runlevel, i.e." + elog " rc-update add rtirq default" + fi + if [[ "$(uname -r | grep rt)" = "" ]] ; then + elog "To use rtirq you need a realtime kernel." + elog "Realtime kernel sources are supplied in sys-kernel/rt-sources." + fi + elog "To display the rtirq status issue:" + elog " /etc/init.d/rtirq status" +} |