diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2007-07-02 09:19:14 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2007-07-02 09:19:14 +0000 |
commit | f1328918648b18f755d3022539fb3b55d944f1ae (patch) | |
tree | 0e6e2a2a8c160146cd7eaadfa7333d7d0116636b /sys-apps | |
parent | fix Emacs support (diff) | |
download | gentoo-2-f1328918648b18f755d3022539fb3b55d944f1ae.tar.gz gentoo-2-f1328918648b18f755d3022539fb3b55d944f1ae.tar.bz2 gentoo-2-f1328918648b18f755d3022539fb3b55d944f1ae.zip |
Revision bump to provide some sane defaults, and also link to the realtime guide.
(Portage version: 2.1.3_rc6)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/realtime-lsm/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/realtime-lsm/files/digest-realtime-lsm-0.8.5-r2 | 3 | ||||
-rw-r--r-- | sys-apps/realtime-lsm/files/modulesd-realtime | 12 | ||||
-rw-r--r-- | sys-apps/realtime-lsm/realtime-lsm-0.8.5-r2.ebuild | 87 |
4 files changed, 108 insertions, 1 deletions
diff --git a/sys-apps/realtime-lsm/ChangeLog b/sys-apps/realtime-lsm/ChangeLog index 7fc9cee78125..65bef4daaa04 100644 --- a/sys-apps/realtime-lsm/ChangeLog +++ b/sys-apps/realtime-lsm/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/realtime-lsm # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/realtime-lsm/ChangeLog,v 1.13 2007/02/25 09:24:37 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/realtime-lsm/ChangeLog,v 1.14 2007/07/02 09:19:14 flameeyes Exp $ + + 02 Jul 2007; Diego Pettenò <flameeyes@gentoo.org> + +files/modulesd-realtime, +realtime-lsm-0.8.5-r2.ebuild: + Revision bump to provide some sane defaults, and also link to the realtime + guide. 25 Feb 2007; <genstef@gentoo.org> realtime-lsm-0.8.5-r1.ebuild: use KV_DIR only after linux-mod_pkg_setup, bug 168051 diff --git a/sys-apps/realtime-lsm/files/digest-realtime-lsm-0.8.5-r2 b/sys-apps/realtime-lsm/files/digest-realtime-lsm-0.8.5-r2 new file mode 100644 index 000000000000..8e8af339b8dd --- /dev/null +++ b/sys-apps/realtime-lsm/files/digest-realtime-lsm-0.8.5-r2 @@ -0,0 +1,3 @@ +MD5 89b05985a2d1529c92d74df3dfb357e5 realtime-lsm-0.8.5.tar.gz 11403 +RMD160 05f4f67cdc68a13e2ba695a05b113d74a1d36626 realtime-lsm-0.8.5.tar.gz 11403 +SHA256 6a7827da9f0e7846587ca3156e4271aed86ae412eab48033eaffbd9ecc7a2901 realtime-lsm-0.8.5.tar.gz 11403 diff --git a/sys-apps/realtime-lsm/files/modulesd-realtime b/sys-apps/realtime-lsm/files/modulesd-realtime new file mode 100644 index 000000000000..1b390999d47c --- /dev/null +++ b/sys-apps/realtime-lsm/files/modulesd-realtime @@ -0,0 +1,12 @@ +# modules.d configuration file for REALTIME +# For more information please read the documentation at +# /usr/share/doc/realtime-lsm-*/ + + +# Configurable module parameters +# ------------------------------ +# mlock: enable memory locking privileges. +# gid: the group ID with access to realtime privileges. +# any: grant realtime privileges to any process. + +options realtime gid=@REALTIMEGROUPID@ diff --git a/sys-apps/realtime-lsm/realtime-lsm-0.8.5-r2.ebuild b/sys-apps/realtime-lsm/realtime-lsm-0.8.5-r2.ebuild new file mode 100644 index 000000000000..a7ee7b21faab --- /dev/null +++ b/sys-apps/realtime-lsm/realtime-lsm-0.8.5-r2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/realtime-lsm/realtime-lsm-0.8.5-r2.ebuild,v 1.3 2007/07/02 09:19:14 flameeyes Exp $ + +inherit linux-mod eutils + +DESCRIPTION="Enable realtime capabilties via a security module." + +HOMEPAGE="http://www.sourceforge.net/projects/realtime-lsm/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="" + +MODULE_NAMES="realtime(extra:)" +BUILD_TARGETS="all" +MODULESD_REALTIME_DOCS="AUTHORS ChangeLog README" + +pkg_setup() { + linux-mod_pkg_setup + BUILD_PARAMS="KSRC=${ROOT}${KV_DIR} TOUT=${TMP}/tmp-gas-check" +} + +src_unpack() { + if ! kernel_is 2 6; then + die "A Linux kernel of version 2.6 is required." + fi + + if ! linux_chkconfig_present SECURITY; then + eerror "" + eerror "${PN} requires you to compile in the 'different security models option." + eerror "In your .config: CONFIG_SECURITY=y" + eerror " CONFIG_SECURITY_CAPABILITIES=m" + eerror "Through 'make menuconfig': Security options-> [*] Enable different security models" + eerror " Security options-> <M> Default Linux Capabilties" + eerror "" + die "Security support not detected." + fi + + if ! linux_chkconfig_module SECURITY_CAPABILITIES; then + eerror "" + eerror "${PN} requires that 'Default Linux Capabilities' be compiled as a module." + eerror "In your .config: CONFIG_SECURITY_CAPABILITIES=m" + eerror "Through 'make menuconfig': Security options-> <M> Default Linux Capabilties" + eerror "" + die "Default Linux capabilities (security) not detected." + fi + + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/kmisc.patch-0.8.2_pre20041022" + convert_to_m Makefile +} + +src_install() { + linux-mod_src_install + + rm "${D}/etc/modules.d/realtime" || die "unable to remove upstream configuration file" + + insinto /etc/modules.d + newins "${FILESDIR}/modulesd-realtime" "realtime" +} + +pkg_preinst() { + enewgroup realtime + + sed -i -e "s:@REALTIMEGROUPID@:$(egetent group realtime | cut -d : -f 3):" \ + "${D}/etc/modules.d/realtime" +} + +pkg_postinst() { + elog "The default configuration for realtime-lsm is now to allow" + elog "realtime usage for all the users in the 'realtime' group." + elog "This is accomplished in the default /etc/modules.d/realtime" + elog "configuration file, by passing the gid parameter to the module." + elog "" + elog "If you want (some of) your users to run code with realtime" + elog "priority, just add the user to that group." + elog "Please note that changing this default behaviour might interfere" + elog "with the default configuration of other software like PulseAudio." + elog "" + elog "For more information please consult the Realtime for Multimedia" + elog "guide at http://www.gentoo.org/proj/en/desktop/sound/realtime.xml" +} |