diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-05-06 22:54:58 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-05-06 22:54:58 +0200 |
commit | b08fd77cb2269e001121234a1f2e46d4f328a438 (patch) | |
tree | 0d07fa3ed9d37116fb49ecc3e0d4551972f12b2d /sys-auth/realtime-base/realtime-base-0.1.ebuild | |
parent | acct-group/realtime: new group for sys-auth/realtime-base, GID 206 (diff) | |
download | gentoo-b08fd77cb2269e001121234a1f2e46d4f328a438.tar.gz gentoo-b08fd77cb2269e001121234a1f2e46d4f328a438.tar.bz2 gentoo-b08fd77cb2269e001121234a1f2e46d4f328a438.zip |
sys-auth/realtime-base: migrate to GLEP 81
Closes: https://bugs.gentoo.org/777417
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'sys-auth/realtime-base/realtime-base-0.1.ebuild')
-rw-r--r-- | sys-auth/realtime-base/realtime-base-0.1.ebuild | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/sys-auth/realtime-base/realtime-base-0.1.ebuild b/sys-auth/realtime-base/realtime-base-0.1.ebuild deleted file mode 100644 index 2faa18931f6f..000000000000 --- a/sys-auth/realtime-base/realtime-base-0.1.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit user - -DESCRIPTION="Sets up realtime scheduling" -HOMEPAGE="https://jackaudio.org/faq/linux_rt_config.html" -SRC_URI="" - -LICENSE="public-domain" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86" -IUSE="" - -DEPEND="" -RDEPEND="sys-libs/pam" - -S=${WORKDIR} - -limitsdfile=40-${PN}.conf -rtgroup=realtime - -pkg_setup() { - enewgroup ${rtgroup} -} - -src_compile() { - einfo "Generating ${limitsdfile}" - cat > ${limitsdfile} <<- EOF || die - # Start of ${limitsdfile} from ${P} - - @${rtgroup} - rtprio 99 - @${rtgroup} - memlock unlimited - - # End of ${limitsdfile} from ${P} - EOF -} - -src_install() { - insinto /etc/security/limits.d/ - doins ${limitsdfile} -} - -pkg_postinst() { - elog "We have added realtime scheduling privileges for users in the ${rtgroup} group." - elog "Please make sure users needing such privileges are in that group." -} |