commit: f4af38b859561b460b9ab17166880b06339c5966
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 3 18:37:12 2018 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Jan 3 18:37:12 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4af38b8
sys-auth/realtime-base: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
sys-auth/realtime-base/realtime-base-0.1.ebuild | 26 ++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/sys-auth/realtime-base/realtime-base-0.1.ebuild
b/sys-auth/realtime-base/realtime-base-0.1.ebuild
index 7af8533be7c..1fc02cd38e0 100644
--- a/sys-auth/realtime-base/realtime-base-0.1.ebuild
+++ b/sys-auth/realtime-base/realtime-base-0.1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=3
+EAPI=6
inherit user
@@ -17,30 +17,30 @@ IUSE=""
DEPEND=""
RDEPEND="virtual/pam"
+S=${WORKDIR}
+
limitsdfile=40-${PN}.conf
rtgroup=realtime
-S=${WORKDIR}
-
pkg_setup() {
enewgroup ${rtgroup}
}
-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}"
+ cat > ${limitsdfile} <<- EOF || die
+ # Start of ${limitsdfile} from ${P}
+
+ @${rtgroup} - rtprio 99
+ @${rtgroup} - memlock unlimited
+
+ # End of ${limitsdfile} from ${P}
+ EOF
}
src_install() {
insinto /etc/security/limits.d/
- doins "${S}/${limitsdfile}" || die
+ doins ${limitsdfile}
}
pkg_postinst() {