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 | 13f6b1ff87d8cb65302b0647a10a56b92f8e5b32 (patch) | |
tree | ca02196725f8b3a4ed7a30946109f47e11b34035 /sys-auth/realtime-base | |
parent | Fixing message given to user when executing test phase, big #370091 (diff) | |
download | historical-13f6b1ff87d8cb65302b0647a10a56b92f8e5b32.tar.gz historical-13f6b1ff87d8cb65302b0647a10a56b92f8e5b32.tar.bz2 historical-13f6b1ff87d8cb65302b0647a10a56b92f8e5b32.zip |
initial import, small package to create a group with realtime scheduling privileges as described on http://www.jackaudio.org/linux_rt_config
Package-Manager: portage-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/Manifest | 13 | ||||
-rw-r--r-- | sys-auth/realtime-base/metadata.xml | 5 | ||||
-rw-r--r-- | sys-auth/realtime-base/realtime-base-0.1.ebuild | 50 |
4 files changed, 79 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/Manifest b/sys-auth/realtime-base/Manifest new file mode 100644 index 000000000000..b445e8110b0f --- /dev/null +++ b/sys-auth/realtime-base/Manifest @@ -0,0 +1,13 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +EBUILD realtime-base-0.1.ebuild 1126 RMD160 c0dcfdac4b0d9accf8cfaa95df155a4394d4c94f SHA1 20312be88b88baa184845ca290f24b5627ba3aa1 SHA256 6cd63d61880cab8dca246b98220a49bb82e68eed7c8c4046456ed80363047cf2 +MISC ChangeLog 495 RMD160 693b21dbac5858ced8129f2d4b6f0f70118c2ae0 SHA1 d38fee680d984aee9516f7c399d744b2aa85dcd4 SHA256 57db059db32bc31e4a7c7f60394a0b3b7590e34a6ba5da97ae66b9b3af1ca8a3 +MISC metadata.xml 163 RMD160 c2b208c0913f8c5bd1148627b5c3c9e37b53060a SHA1 4195ac5ca8352b0f52be6ed92640e4365be5bf0d SHA256 39a67c65d2e7583b6ee9e20fcab1fd821e28c51134eb2f76a7fe0598a2c2b4cb +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iEYEARECAAYFAk3uibQACgkQvFcC4BYPU0qqCwCeNKrDb9eSFAu80KFzFGdzXeD7 +nPIAn1XPW29Bn2RsrQL892Q8qDminU05 +=xLm6 +-----END PGP SIGNATURE----- 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." +} |