diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-29 17:41:08 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-29 17:41:08 +0000 |
commit | 0c1bebc4027c639909ad0a840068b649b6be4b95 (patch) | |
tree | 454e0d892bb070962971634b5fbdfe617cba1dd1 /sys-process/rtirq | |
parent | 080a6ad2c3759083c02506e1348b689f2194d4eb (diff) |
gentoo auto-resync : 29:02:2024 - 17:41:08
Diffstat (limited to 'sys-process/rtirq')
-rw-r--r-- | sys-process/rtirq/Manifest | 2 | ||||
-rw-r--r-- | sys-process/rtirq/rtirq-20240120.ebuild | 56 |
2 files changed, 58 insertions, 0 deletions
diff --git a/sys-process/rtirq/Manifest b/sys-process/rtirq/Manifest index ef05221ffb61..ca1d9e2341d9 100644 --- a/sys-process/rtirq/Manifest +++ b/sys-process/rtirq/Manifest @@ -1,4 +1,6 @@ AUX rtirq.initd 431 BLAKE2B 7b3846513cb389fa05e31cf556d5a668969d227a5d47c6d75c94bb152d97ae23550bc34b1e19b9b72a3a03a0ffae23f66ec9378af09831e8dc394c5d7c6b412b SHA512 3bf69aa9b78e2c0093226b2e8cd495157b54482ca72fe79c70d52b3adc2bd59a1027157b79f558e5fa546c7f70973aa9bcbb8ab1e7e52d82970b6367951c4e1e DIST rtirq-20220923.tar.gz 15522 BLAKE2B ea7248afa665c2c8bfb99c42ff18d7d585f4a337c8850f5343b610a131face8b8eec4ef19901f59685793662e0e0ac95dfdddffea9951f47910dbc12bb47a459 SHA512 6846075e8196220aabb68250f0284b77f21b5c9bfd6dd9bbea59307679111c122d2091acefa38048f96166ae903b3ed46cbba4242afabc9a18bfa97467200386 +DIST rtirq-20240120.tar.gz 16077 BLAKE2B 2c1ab9f1824d861e13e49667a35fc048e931afb18084de756dcbabde0d4cdd21e78afc9733eb364cd826d4ffd29a89db862033c9539b7cfe7a7b22f7cb353864 SHA512 b945bdb29ef3ef551c19edc9d947a7ed50ecd756dec5a3b02a0cd519a0f506e3ca212b1cb629386dd525d565cc6e2d868c558934c59b8d0bc02573a9589deb86 EBUILD rtirq-20220923.ebuild 1677 BLAKE2B 4b13760bc10c33c2378715312170d664c36b08ed6c63cd0d71402a548a57aa4ac119c4f72f0d22d63f2451052c7de266756ad93a7c5b5aaa940eed811e2d9d37 SHA512 36da5165d32e0af6c853d632029f9f58291521699a27ebcece40fec462216006709d156154fb79dc68e47844a9d23ce42317da8076532c653c0749afb9c7b91e +EBUILD rtirq-20240120.ebuild 1406 BLAKE2B 96958a1f6233115e6ee276c35da27cd6b2d36f214c1e345fa298febf16136efd24ca82f12cbcee052b85e6d2cc46180f275b98a44eb289d3f87655ed0ad0b18c SHA512 7ae218441fcf0b8d2558450b40a36a38a0c1595661af8b67ef8aeb00ba726de7941dad6479c8a4d655399f9ee7a908d181f71cecd037addba627b68e9ab622d4 MISC metadata.xml 395 BLAKE2B 676ceaef4b63cc5fd7c0ad8b28065738adf013fa4f85cb2fa70bd1cafa8ea6b76fc6ca81e36e91c839bcc55c55a8bf24b4a325e44b0830f653adc89ee09dbfc4 SHA512 30eec216eef39513374c06cc1b0be994f53deb7054f7241a55b1ccc73d58ab0b578b92096eb56daef0e7f8d1377480a00a6bbb6e0bcbffb19d53a48f081170f3 diff --git a/sys-process/rtirq/rtirq-20240120.ebuild b/sys-process/rtirq/rtirq-20240120.ebuild new file mode 100644 index 000000000000..a98fe254b6af --- /dev/null +++ b/sys-process/rtirq/rtirq-20240120.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit linux-info systemd + +DESCRIPTION="Modify realtime scheduling policy and priority of IRQ handlers" +HOMEPAGE="https://www.rncbc.org/archive/#rtirq" +SRC_URI="https://www.rncbc.org/archive/${P}.tar.gz + https://www.rncbc.org/archive/old/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sys-apps/util-linux +" + +src_prepare() { + # We install into bin + sed -i -e "s:/usr/sbin/rtirq:/usr/bin/rtirq:" ${PN}{,-resume}.service || die + + default +} + +src_install() { + newbin rtirq.sh rtirq + newinitd "${FILESDIR}"/rtirq.initd rtirq + insinto /etc/ + doins rtirq.conf + systemd_dounit rtirq{,-resume}.service +} + +pkg_postinst() { + local kconfig_warn=1 + local cmdline + local ver + + if linux-info_get_any_version && linux_config_exists; then + if linux_chkconfig_present PREEMPT_RT; then + kconfig_warn=0 + elif linux_chkconfig_present IRQ_FORCED_THREADING; then + cmdline=$(< /proc/cmdline) || die + [[ ${cmdline} == *threadirqs* ]] && kconfig_warn=0 + fi + fi + + if (( ${kconfig_warn} )); then + ewarn "To use rtirq, you need one of the following kernel configurations:" + ewarn " - PREEMPT_RT config option enabled (e.g. with sys-kernel/rt-sources);" + ewarn " - IRQ_FORCED_THREADING config option enabled and 'threadirqs' option" + ewarn " added to the kernel cmdline." + fi +} |