/[gentoo-x86]/sys-auth/realtime-base/realtime-base-0.1.ebuild
Gentoo

Contents of /sys-auth/realtime-base/realtime-base-0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Tue Nov 6 11:12:14 2012 UTC (20 months, 2 weeks ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +2 -2 lines
change license to public-domain, bug #442004

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-auth/realtime-base/realtime-base-0.1.ebuild,v 1.17 2012/05/29 15:14:49 aballier Exp $
4
5 EAPI=3
6
7 inherit user
8
9 DESCRIPTION="Sets up realtime scheduling"
10 HOMEPAGE="http://www.jackaudio.org/linux_rt_config"
11 SRC_URI=""
12
13 LICENSE="public-domain"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~amd64-fbsd"
16 IUSE=""
17
18 DEPEND=""
19 RDEPEND="virtual/pam"
20
21 limitsdfile=40-${PN}.conf
22 rtgroup=realtime
23
24 S=${WORKDIR}
25
26 pkg_setup() {
27 enewgroup ${rtgroup}
28 }
29
30 print_limitsdfile() {
31 printf "# Start of ${limitsdfile} from ${P}\n\n"
32 printf "@${rtgroup}\t-\trtprio\t99\n"
33 printf "@${rtgroup}\t-\tmemlock\tunlimited\n"
34 printf "\n# End of ${limitsdfile} from ${P}\n"
35 }
36
37 src_compile() {
38 einfo "Generating ${limitsdfile}"
39 print_limitsdfile > "${S}/${limitsdfile}"
40 }
41
42 src_install() {
43 insinto /etc/security/limits.d/
44 doins "${S}/${limitsdfile}" || die
45 }
46
47 pkg_postinst() {
48 elog "We have added realtime scheduling privileges for users in the ${rtgroup} group."
49 elog "Please make sure users needing such privileges are in that group."
50 }

  ViewVC Help
Powered by ViewVC 1.1.20