1 |
commit: 7f7ec9c6508c5a3f7d41be75831254de43c89b2a |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 27 21:42:33 2017 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 27 21:45:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f7ec9c6 |
7 |
|
8 |
sys-apps/readahead-list: bump for confd tweak. |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
.../readahead-list/files/conf.d-readahead-list | 4 +- |
13 |
.../readahead-list-1.20060421.1016-r3.ebuild | 60 ++++++++++++++++++++++ |
14 |
2 files changed, 62 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/sys-apps/readahead-list/files/conf.d-readahead-list b/sys-apps/readahead-list/files/conf.d-readahead-list |
17 |
index d8da5696e0e..c5ea49b0ecd 100644 |
18 |
--- a/sys-apps/readahead-list/files/conf.d-readahead-list |
19 |
+++ b/sys-apps/readahead-list/files/conf.d-readahead-list |
20 |
@@ -9,7 +9,7 @@ READAHEAD_LIST_exec_sbin_rc="/etc/readahead-list/exec_sbin_rc" |
21 |
READAHEAD_LIST_runlevel_boot="/etc/readahead-list/runlevel-boot" |
22 |
READAHEAD_LIST_runlevel_default="/etc/readahead-list/runlevel-default" |
23 |
|
24 |
-READAHEAD_LIST_call_early="${!READAHEAD_LIST_exec_sbin_rc} ${!READAHEAD_LIST_runlevel_boot}" |
25 |
-READAHEAD_LIST_call_main="${!READAHEAD_LIST_runlevel_default}" |
26 |
+READAHEAD_LIST_call_early="${READAHEAD_LIST_exec_sbin_rc} ${READAHEAD_LIST_runlevel_boot}" |
27 |
+READAHEAD_LIST_call_main="${READAHEAD_LIST_runlevel_default}" |
28 |
|
29 |
# vim: ts=4 sw=4 |
30 |
|
31 |
diff --git a/sys-apps/readahead-list/readahead-list-1.20060421.1016-r3.ebuild b/sys-apps/readahead-list/readahead-list-1.20060421.1016-r3.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..80b37f7a964 |
34 |
--- /dev/null |
35 |
+++ b/sys-apps/readahead-list/readahead-list-1.20060421.1016-r3.ebuild |
36 |
@@ -0,0 +1,60 @@ |
37 |
+# Copyright 1999-2017 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=6 |
41 |
+ |
42 |
+DESCRIPTION="Preloads files into the page cache to accelerate program loading" |
43 |
+HOMEPAGE="http://www.orbis-terrarum.net" |
44 |
+SRC_URI="mirror://gentoo/${P}.tar.bz2" |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~ppc ~x86" |
48 |
+IUSE="doc" |
49 |
+ |
50 |
+RDEPEND="" |
51 |
+DEPEND="${RDEPEND} |
52 |
+ virtual/os-headers |
53 |
+" |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}/${P}-gcc-4.3.patch" |
57 |
+ "${FILESDIR}/${P}-gcc6.patch" |
58 |
+) |
59 |
+ |
60 |
+src_configure() { |
61 |
+ econf --sbindir=/sbin |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ default |
66 |
+ |
67 |
+ # init scripts |
68 |
+ #cd "${S}/contrib/init/gentoo/" |
69 |
+ newinitd "${FILESDIR}"/init.d-readahead-list readahead-list |
70 |
+ newinitd "${FILESDIR}"/init.d-readahead-list-early readahead-list-early |
71 |
+ newconfd "${FILESDIR}"/conf.d-readahead-list readahead-list |
72 |
+ |
73 |
+ # default config |
74 |
+ insinto /etc/readahead-list |
75 |
+ cd "${S}/contrib/data" |
76 |
+ newins readahead.runlevel-default.list runlevel-default |
77 |
+ newins readahead.runlevel-boot.list runlevel-boot |
78 |
+ newins readahead._sbin_rc.list exec_sbin_rc |
79 |
+ |
80 |
+ # docs |
81 |
+ cd "${S}" |
82 |
+ if use doc; then |
83 |
+ docinto scripts |
84 |
+ dodoc contrib/scripts/* |
85 |
+ fi |
86 |
+ # clean up a bit |
87 |
+ find "${D}/usr/share/doc/${PF}/" -type f -name 'Makefile*' -exec rm -f \{\} \; |
88 |
+} |
89 |
+ |
90 |
+pkg_postinst() { |
91 |
+ einfo "You should add readahead-list to your runlevels:" |
92 |
+ einfo " rc-update add readahead-list-early boot" |
93 |
+ einfo " rc-update add readahead-list boot" |
94 |
+ einfo "Also consider customizing the lists in /etc/readahead-list" |
95 |
+ einfo "for maximum performance gain." |
96 |
+} |