diff --git a/irqbalance-manual.patch b/irqbalance-manual.patch new file mode 100644 index 0000000..4c9d611 --- /dev/null +++ b/irqbalance-manual.patch @@ -0,0 +1,14 @@ +diff --git a/irqbalance.1 b/irqbalance.1 +index 05f7b48..ec6ace7 100644 +--- a/irqbalance.1 ++++ b/irqbalance.1 +@@ -98,7 +98,8 @@ if a directory is specified, non-executable files will be skipped. + The script may specify zero or more key=value pairs that will guide irqbalance in + the management of that IRQ. Key=value pairs are printed by the script on stdout + and will be captured and interpreted by irqbalance. Irqbalance expects a zero +-exit code from the provided utility. Recognized key=value pairs are: ++exit code from the provided utility. "/usr/libexec/irqbalance" is a preferred dir for ++placing the scripts, otherwise it may encounter selinux issues if enabled. + .TP + .I ban=[true | false] + Directs irqbalance to exclude the passed in IRQ from balancing. diff --git a/irqbalance.spec b/irqbalance.spec index 1fa5118..dba4523 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -1,6 +1,6 @@ Name: irqbalance Version: 1.9.4 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 2 Summary: IRQ balancing daemon @@ -66,6 +66,7 @@ Patch44: 0043-irqbalance.1-a-b-a-b-it-s-type-its-type.patch Patch45: 0044-Use-EPERM-instead-of-EIO-when-try-setting-irq-affini.patch Patch46: irqbalance-1.9.0-environment-file-sysconfig.patch +Patch47: irqbalance-manual.patch %description irqbalance is a daemon that evenly distributes IRQ load across @@ -86,6 +87,7 @@ install -D -p -m 0644 ./misc/irqbalance.service %{buildroot}/%{_unitdir}/irqbala install -D -p -m 0644 ./misc/irqbalance.env %{buildroot}%{_sysconfdir}/sysconfig/%{name} install -d %{buildroot}%{_mandir}/man1/ install -p -m 0644 ./irqbalance.1 %{buildroot}%{_mandir}/man1/ +install -d %{buildroot}%{_libexecdir}/irqbalance/ %check make check @@ -96,6 +98,7 @@ make check %{_sbindir}/irqbalance-ui %{_unitdir}/irqbalance.service %{_mandir}/man1/* +%dir %{_libexecdir}/irqbalance %config(noreplace) %{_sysconfdir}/sysconfig/irqbalance %post @@ -108,6 +111,10 @@ make check %systemd_postun_with_restart irqbalance.service %changelog +* Wed Nov 6 2024 Tao Liu - 2:1.9.4-2 +- Release 1.9.4-2 +- Rebase to upstream commit (b4b6f194da) + * Wed May 01 2024 Tao Liu - 2:1.9.4-1 - Rebase to upstream commit (f2c8309a41)