diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-10-27 12:48:57 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-10-27 12:48:57 +0100 |
commit | 70b82ae359a5538711e103b0e8dfb92654296644 (patch) | |
tree | 8412b84ff9ce02a22be5251052b00feefe1d5b70 /sys-process/rtirq/rtirq-20180209.ebuild | |
parent | 64e107b9b6058580ff0432107eb37cefb0b2a7d8 (diff) |
gentoo resync : 27.10.2018
Diffstat (limited to 'sys-process/rtirq/rtirq-20180209.ebuild')
-rw-r--r-- | sys-process/rtirq/rtirq-20180209.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sys-process/rtirq/rtirq-20180209.ebuild b/sys-process/rtirq/rtirq-20180209.ebuild new file mode 100644 index 000000000000..5186ad22dd47 --- /dev/null +++ b/sys-process/rtirq/rtirq-20180209.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit linux-info systemd + +DESCRIPTION="Modify realtime scheduling policy and priority of IRQ handlers" +HOMEPAGE="http://www.rncbc.org/archive/#rtirq" +SRC_URI="http://www.rncbc.org/archive/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_prepare() { + get_version + + # 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 rtirq.sh + doinitd "${FILESDIR}"/rtirq + newconfd rtirq.conf rtirq + systemd_dounit rtirq.service +} + +pkg_postinst() { + if [[ ${KV_LOCAL} != *rt* ]] ; then + elog "To use rtirq you need a realtime kernel." + elog "Realtime kernel sources are supplied in sys-kernel/rt-sources." + fi +} |