diff options
author | Alexis Ballier <aballier@gentoo.org> | 2011-06-07 20:27:26 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2011-06-07 20:27:26 +0000 |
commit | d397ac1d8270dcbb8c88f8a0927b83240c239bfd (patch) | |
tree | bfec5a33f6dc04412b13ee2ecd5a14891973ff8c /sys-auth/realtime-base | |
parent | Fixing message given to user when executing test phase, big #370091 (diff) | |
download | gentoo-2-d397ac1d8270dcbb8c88f8a0927b83240c239bfd.tar.gz gentoo-2-d397ac1d8270dcbb8c88f8a0927b83240c239bfd.tar.bz2 gentoo-2-d397ac1d8270dcbb8c88f8a0927b83240c239bfd.zip |
initial import, small package to create a group with realtime scheduling privileges as described on http://www.jackaudio.org/linux_rt_config
(Portage version: 2.2.0_alpha38/cvs/Linux x86_64)
Diffstat (limited to 'sys-auth/realtime-base')
-rw-r--r-- | sys-auth/realtime-base/ChangeLog | 11 | ||||
-rw-r--r-- | sys-auth/realtime-base/metadata.xml | 5 | ||||
-rw-r--r-- | sys-auth/realtime-base/realtime-base-0.1.ebuild | 50 |
3 files changed, 66 insertions, 0 deletions
diff --git a/sys-auth/realtime-base/ChangeLog b/sys-auth/realtime-base/ChangeLog new file mode 100644 index 000000000000..89964d9d822e --- /dev/null +++ b/sys-auth/realtime-base/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-auth/realtime-base +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/realtime-base/ChangeLog,v 1.1 2011/06/07 20:27:26 aballier Exp $ + +*realtime-base-0.1 (07 Jun 2011) + + 07 Jun 2011; Alexis Ballier <aballier@gentoo.org> +realtime-base-0.1.ebuild, + +metadata.xml: + initial import, small package to create a group with realtime scheduling + privileges as described on http://www.jackaudio.org/linux_rt_config + diff --git a/sys-auth/realtime-base/metadata.xml b/sys-auth/realtime-base/metadata.xml new file mode 100644 index 000000000000..af0275e2998a --- /dev/null +++ b/sys-auth/realtime-base/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proaudio</herd> +</pkgmetadata> diff --git a/sys-auth/realtime-base/realtime-base-0.1.ebuild b/sys-auth/realtime-base/realtime-base-0.1.ebuild new file mode 100644 index 000000000000..3976cc462948 --- /dev/null +++ b/sys-auth/realtime-base/realtime-base-0.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/realtime-base/realtime-base-0.1.ebuild,v 1.1 2011/06/07 20:27:26 aballier Exp $ + +EAPI=3 + +inherit eutils + +DESCRIPTION="Sets up realtime scheduling" +HOMEPAGE="http://www.jackaudio.org/linux_rt_config" +SRC_URI="" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="virtual/pam" + +limitsdfile=40-${PN}.conf +rtgroup=realtime + +S=${WORKDIR} + +pkg_setup() { + enewgroup ${rtgroup} || die +} + +print_limitsdfile() { + printf "# Start of ${limitsdfile} from ${P}\n\n" + printf "@${rtgroup}\t-\trtprio\t99\n" + printf "@${rtgroup}\t-\tmemlock\tunlimited\n" + printf "\n# End of ${limitsdfile} from ${P}\n" +} + +src_compile() { + einfo "Generating ${limitsdfile}" + print_limitsdfile > "${S}/${limitsdfile}" +} + +src_install() { + insinto /etc/security/limits.d/ + doins "${S}/${limitsdfile}" || die +} + +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." +} |