1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Sets up realtime scheduling"
9 HOMEPAGE="http://jackaudio.org/faq/linux_rt_config.html"
12 LICENSE="public-domain"
14 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 s390 sparc x86"
18 RDEPEND="sys-libs/pam"
22 limitsdfile=40-${PN}.conf
30 einfo "Generating ${limitsdfile}"
31 cat > ${limitsdfile} <<- EOF || die
32 # Start of ${limitsdfile} from ${P}
34 @${rtgroup} - rtprio 99
35 @${rtgroup} - memlock unlimited
37 # End of ${limitsdfile} from ${P}
42 insinto /etc/security/limits.d/
47 elog "We have added realtime scheduling privileges for users in the ${rtgroup} group."
48 elog "Please make sure users needing such privileges are in that group."