From 36ac65103bf5503e5bad1ecc7e8cb9e7643f6840 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 13 Sep 2019 17:49:31 +0100 Subject: Revert "gentoo resync : 13.09.2019" This reverts commit a1392efe64137262023d92492396ca9156d22396. --- sys-process/rtirq/rtirq-20150216.ebuild | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 sys-process/rtirq/rtirq-20150216.ebuild (limited to 'sys-process/rtirq/rtirq-20150216.ebuild') diff --git a/sys-process/rtirq/rtirq-20150216.ebuild b/sys-process/rtirq/rtirq-20150216.ebuild new file mode 100644 index 000000000000..5bd86fb047b1 --- /dev/null +++ b/sys-process/rtirq/rtirq-20150216.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +DESCRIPTION="Modify realtime scheduling policy and priority of IRQ handlers" +HOMEPAGE="https://www.rncbc.org/archive/#rtirq" + +SRC_URI="https://www.rncbc.org/archive/old/${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" +} -- cgit v1.2.3