summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-07-02 09:19:14 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-07-02 09:19:14 +0000
commit39bb28d594a7297bc95de15493c3a8a8b55fb3fe (patch)
tree82de8d74682892309429e80bfc1c07434a9feaea /sys-apps
parentfix Emacs support (diff)
downloadhistorical-39bb28d594a7297bc95de15493c3a8a8b55fb3fe.tar.gz
historical-39bb28d594a7297bc95de15493c3a8a8b55fb3fe.tar.bz2
historical-39bb28d594a7297bc95de15493c3a8a8b55fb3fe.zip
Revision bump to provide some sane defaults, and also link to the realtime guide.
Package-Manager: portage-2.1.3_rc6
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/realtime-lsm/ChangeLog7
-rw-r--r--sys-apps/realtime-lsm/Manifest29
-rw-r--r--sys-apps/realtime-lsm/files/digest-realtime-lsm-0.8.5-r23
-rw-r--r--sys-apps/realtime-lsm/files/modulesd-realtime12
-rw-r--r--sys-apps/realtime-lsm/realtime-lsm-0.8.5-r2.ebuild87
5 files changed, 133 insertions, 5 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/Manifest b/sys-apps/realtime-lsm/Manifest
index 64150ac7ecf5..ac770a2cccc4 100644
--- a/sys-apps/realtime-lsm/Manifest
+++ b/sys-apps/realtime-lsm/Manifest
@@ -1,16 +1,27 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX kmisc.patch-0.8.2_pre20041022 679 RMD160 b9aa9d67e7f43d5fd7d1fc9b4e67b9477dac0bb1 SHA1 7d5b2674aa344f3b6d21a708319484a1d3110c9f SHA256 087c21b199e1e539f154005812be5ddcde6f3ba899ba01859d602c35b8f5b633
MD5 bd10dcd7b669d837d013107c02b4d17d files/kmisc.patch-0.8.2_pre20041022 679
RMD160 b9aa9d67e7f43d5fd7d1fc9b4e67b9477dac0bb1 files/kmisc.patch-0.8.2_pre20041022 679
SHA256 087c21b199e1e539f154005812be5ddcde6f3ba899ba01859d602c35b8f5b633 files/kmisc.patch-0.8.2_pre20041022 679
+AUX modulesd-realtime 392 RMD160 7771de61d1a46d37fd5ca861509131f7e40b5540 SHA1 262f933f84653b50ed492cb0a37318056141a068 SHA256 64e476683f91ca8481607114290d5ee524f89d5627b72a93b615f1fc9a6a98a4
+MD5 d3e503bc2e6f99fd26773fae61e0387c files/modulesd-realtime 392
+RMD160 7771de61d1a46d37fd5ca861509131f7e40b5540 files/modulesd-realtime 392
+SHA256 64e476683f91ca8481607114290d5ee524f89d5627b72a93b615f1fc9a6a98a4 files/modulesd-realtime 392
DIST realtime-lsm-0.8.5.tar.gz 11403 RMD160 05f4f67cdc68a13e2ba695a05b113d74a1d36626 SHA1 ca0454b2b9917ed6770c19b5e1bf068cc443b80b SHA256 6a7827da9f0e7846587ca3156e4271aed86ae412eab48033eaffbd9ecc7a2901
EBUILD realtime-lsm-0.8.5-r1.ebuild 1786 RMD160 33d9a15ea7ed6fc8bcdbf1246cbe185f15b55061 SHA1 284daad45a47cebca3a4a0ee19ec13592298409f SHA256 5f90617ae4d6abaabe6ac58e1adac8bfe1cef6cc335e461f43d2094fda89f7cf
MD5 c0cfb83b01245a722f3304479f63d5e5 realtime-lsm-0.8.5-r1.ebuild 1786
RMD160 33d9a15ea7ed6fc8bcdbf1246cbe185f15b55061 realtime-lsm-0.8.5-r1.ebuild 1786
SHA256 5f90617ae4d6abaabe6ac58e1adac8bfe1cef6cc335e461f43d2094fda89f7cf realtime-lsm-0.8.5-r1.ebuild 1786
-MISC ChangeLog 3009 RMD160 04e96c079db1a3923b0727b1dc46d1d544e33027 SHA1 c53e3a62903d604976a4e89ea846085148c5f41d SHA256 de3a6abe8f762269c27e290eea6080a8e3991d5c7e5e411dc9ed395dd8aa1c58
-MD5 4cfd2889c1bd1e02315b385dd8134af2 ChangeLog 3009
-RMD160 04e96c079db1a3923b0727b1dc46d1d544e33027 ChangeLog 3009
-SHA256 de3a6abe8f762269c27e290eea6080a8e3991d5c7e5e411dc9ed395dd8aa1c58 ChangeLog 3009
+EBUILD realtime-lsm-0.8.5-r2.ebuild 2849 RMD160 ce7e3a0455a8ea3d91ced1193154d72f78af910a SHA1 0eaee150e120e1743d1f3bf6763f21129842f77f SHA256 15fb303d9df552a461745adeadf19bb2d25b183f32533e9b0bd942502c82c255
+MD5 0d89d9270618ba73e0b9a38775e1ab8b realtime-lsm-0.8.5-r2.ebuild 2849
+RMD160 ce7e3a0455a8ea3d91ced1193154d72f78af910a realtime-lsm-0.8.5-r2.ebuild 2849
+SHA256 15fb303d9df552a461745adeadf19bb2d25b183f32533e9b0bd942502c82c255 realtime-lsm-0.8.5-r2.ebuild 2849
+MISC ChangeLog 3210 RMD160 4637c2778d026482946766ae17c69c50d6c1169f SHA1 66c48d4ebe2fe4dfef4f44cc2e518815264c8b18 SHA256 99e1cb3086fa78cac9a67f19f8ddbd19acded31f3209fbb6ced607fdea9c7d65
+MD5 b42fa7872eefc2a7c33a4284fe34d61d ChangeLog 3210
+RMD160 4637c2778d026482946766ae17c69c50d6c1169f ChangeLog 3210
+SHA256 99e1cb3086fa78cac9a67f19f8ddbd19acded31f3209fbb6ced607fdea9c7d65 ChangeLog 3210
MISC metadata.xml 1150 RMD160 9e5c64851c47704845397d88e73acaa5708523a6 SHA1 3b6679a0ada504db84af4d6a4267428c2f4e389c SHA256 e7874a04c899ee03c58e9dedd5d1870b5de8b769cbd5f3d401979a2e55f28bcc
MD5 cedf5f3b42b314e0b7d6dc9c436b97a8 metadata.xml 1150
RMD160 9e5c64851c47704845397d88e73acaa5708523a6 metadata.xml 1150
@@ -18,3 +29,13 @@ SHA256 e7874a04c899ee03c58e9dedd5d1870b5de8b769cbd5f3d401979a2e55f28bcc metadata
MD5 97ff4c21c8c10121741186a7387daff5 files/digest-realtime-lsm-0.8.5-r1 253
RMD160 907ed25c796598d7fab4d25e6339746a10566128 files/digest-realtime-lsm-0.8.5-r1 253
SHA256 dcc8c1130b840e57502f9d0e1920e2e0d81aea8ad7e3857fb540b6aec0e08540 files/digest-realtime-lsm-0.8.5-r1 253
+MD5 97ff4c21c8c10121741186a7387daff5 files/digest-realtime-lsm-0.8.5-r2 253
+RMD160 907ed25c796598d7fab4d25e6339746a10566128 files/digest-realtime-lsm-0.8.5-r2 253
+SHA256 dcc8c1130b840e57502f9d0e1920e2e0d81aea8ad7e3857fb540b6aec0e08540 files/digest-realtime-lsm-0.8.5-r2 253
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.4 (GNU/Linux)
+
+iD8DBQFGiMNOAiZjviIA2XgRAnZzAJ4uSXER60QeqRhTPuERF/uLs7lYRACfanJr
+BqiA4COa4ttH5S4zITBhOHE=
+=jHBY
+-----END PGP SIGNATURE-----
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"
+}