1 |
commit: f4af38b859561b460b9ab17166880b06339c5966 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 3 18:37:12 2018 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 3 18:37:12 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4af38b8 |
7 |
|
8 |
sys-auth/realtime-base: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
sys-auth/realtime-base/realtime-base-0.1.ebuild | 26 ++++++++++++------------- |
13 |
1 file changed, 13 insertions(+), 13 deletions(-) |
14 |
|
15 |
diff --git a/sys-auth/realtime-base/realtime-base-0.1.ebuild b/sys-auth/realtime-base/realtime-base-0.1.ebuild |
16 |
index 7af8533be7c..1fc02cd38e0 100644 |
17 |
--- a/sys-auth/realtime-base/realtime-base-0.1.ebuild |
18 |
+++ b/sys-auth/realtime-base/realtime-base-0.1.ebuild |
19 |
@@ -1,7 +1,7 @@ |
20 |
-# Copyright 1999-2017 Gentoo Foundation |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=3 |
25 |
+EAPI=6 |
26 |
|
27 |
inherit user |
28 |
|
29 |
@@ -17,30 +17,30 @@ IUSE="" |
30 |
DEPEND="" |
31 |
RDEPEND="virtual/pam" |
32 |
|
33 |
+S=${WORKDIR} |
34 |
+ |
35 |
limitsdfile=40-${PN}.conf |
36 |
rtgroup=realtime |
37 |
|
38 |
-S=${WORKDIR} |
39 |
- |
40 |
pkg_setup() { |
41 |
enewgroup ${rtgroup} |
42 |
} |
43 |
|
44 |
-print_limitsdfile() { |
45 |
- printf "# Start of ${limitsdfile} from ${P}\n\n" |
46 |
- printf "@${rtgroup}\t-\trtprio\t99\n" |
47 |
- printf "@${rtgroup}\t-\tmemlock\tunlimited\n" |
48 |
- printf "\n# End of ${limitsdfile} from ${P}\n" |
49 |
-} |
50 |
- |
51 |
src_compile() { |
52 |
einfo "Generating ${limitsdfile}" |
53 |
- print_limitsdfile > "${S}/${limitsdfile}" |
54 |
+ cat > ${limitsdfile} <<- EOF || die |
55 |
+ # Start of ${limitsdfile} from ${P} |
56 |
+ |
57 |
+ @${rtgroup} - rtprio 99 |
58 |
+ @${rtgroup} - memlock unlimited |
59 |
+ |
60 |
+ # End of ${limitsdfile} from ${P} |
61 |
+ EOF |
62 |
} |
63 |
|
64 |
src_install() { |
65 |
insinto /etc/security/limits.d/ |
66 |
- doins "${S}/${limitsdfile}" || die |
67 |
+ doins ${limitsdfile} |
68 |
} |
69 |
|
70 |
pkg_postinst() { |