From 327c4c9b417cc7e3ab4e6a817f9c70fdaa0fc437 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 17:45:02 +0100 Subject: [PATCH] automatic version update by autodist [release 1.3.0-2mamba;Wed Jul 10 2013] --- README.md | 2 ++ set_rlimits.conf | 45 +++++++++++++++++++++++++++++++++++++ set_rlimits.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100644 set_rlimits.conf create mode 100644 set_rlimits.spec diff --git a/README.md b/README.md index bcdba76..00f0641 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # set_rlimits +set_rlimits is a small program written to give unpriviledged users access to realtime scheduling via the new rlimits added to kernel 2.6.12. + diff --git a/set_rlimits.conf b/set_rlimits.conf new file mode 100644 index 0000000..90a5c62 --- /dev/null +++ b/set_rlimits.conf @@ -0,0 +1,45 @@ +# Configuration file for set_rlimits. Format is: +# +# name program max_nice_priority max_realtime_priority +# or +# name program = ... +# +# name is expected to be a username, a groupname if preceeded by a @ sign, +# or ALL (which matches all users). Negative priorities effectively +# disallow any setting of the respective priority for the matching entry. +# can be rtprio, nice or memlock. +# Example entry: +# +#mark /usr/local/bin/jackd -1 80 +# +# Here, user mark can execute /usr/local/bin/jackd using set_rlimits to set +# a realtime priority up to and including 80, but setting of a nice priority +# through set_rlimits is disallowed. Alternatively, if an `audio' group +# existed, the entry +# +#@audio /usr/bin/jackd nice=-1 rtprio=85 +# +# would allow the same except the permission would extend to all members of +# the `audio' group. The same effect could be achieved with the key/value +# syntax: +# +# @audio /usr/local/bin/jackd nice=-1 rtprio=80 +# +# For more details on the format and use of this file please refer to +# the set_rlimits manual page. +@audio /usr/bin/jackd nice=-1 rtprio=86 +@audio /usr/bin/oss2jack nice=-1 rtprio=85 +@audio /usr/bin/qjackctl nice=-1 rtprio=84 +@audio /usr/bin/ardour nice=-1 rtprio=83 +@audio /usr/bin/hydrogen nice=-1 rtprio=82 +@audio /usr/bin/jackeq nice=-1 rtprio=81 +@audio /usr/bin/jack-rack nice=-1 rtprio=80 +@audio /usr/bin/jamin nice=-1 rtprio=79 +@audio /usr/bin/qsynth nice=-1 rtprio=78 +@audio /usr/bin/rosegarden nice=-1 rtprio=77 +@audio /usr/bin/seq24 nice=-1 rtprio=76 +@audio /usr/bin/specimen nice=-1 rtprio=75 +@audio /usr/bin/vkeybd nice=-1 rtprio=74 +@audio /usr/bin/zynaddsubfx nice=-1 rtprio=73 +@audio /usr/bin/ams nice=-1 rtprio=72 +@audio /usr/bin/amsynth nice=-1 rtprio=71 diff --git a/set_rlimits.spec b/set_rlimits.spec new file mode 100644 index 0000000..16ee8d9 --- /dev/null +++ b/set_rlimits.spec @@ -0,0 +1,58 @@ +Name: set_rlimits +Version: 1.3.0 +Release: 2mamba +Summary: A program to give unpriviledged users access to realtime scheduling via rtlimits +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.physics.adelaide.edu.au/~jwoithe/ +Source: http://www.physics.adelaide.edu.au/~jwoithe/set_rlimits-%{version}.tgz +Source1: set_rlimits.conf +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +set_rlimits is a small program written to give unpriviledged users access to realtime scheduling via the new rlimits added to kernel 2.6.12. + +%prep +%setup -q +sed -i "/chown/d" Makefile +sed -i "s|man/man8|share/man/man8|g" Makefile + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +mkdir -p %{buildroot} +%make PREFIX=%{buildroot}%{_prefix} \ + SYSCONFDIR=%{buildroot}%{_sysconfdir} \ + MANDIR=%{buildroot}%{_mandir} install +install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/set_rlimits.conf + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/set_rlimits.conf +%attr(4755,root,audio) %{_bindir}/set_rlimits +%{_mandir}/man8/set_rlimits.8.gz +%doc AUTHORS COPYING README + +%changelog +* Wed Jul 10 2013 Automatic Build System 1.3.0-2mamba +- automatic version update by autodist + +* Sun Jan 11 2009 Silvan Calarco 1.3.0-1mamba +- automatic update by autodist + +* Sat Mar 08 2008 Silvan Calarco 1.2.0-3mamba +- add oss2jack to rt priority chain + +* Sat Mar 08 2008 Silvan Calarco 1.2.0-2mamba +- set_rlimits.conf updates with entries for professional audio applications + +* Fri Oct 06 2006 Silvan Calarco 1.2.0-1qilnx +- package created by autospec