diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2009-09-21 02:03:32 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2009-09-21 02:03:32 +0000 |
commit | 4c35d5aa4fc8c05a942bdc6685284744133915ed (patch) | |
tree | 0e5d576b7e83373a587d14cbb64a0cbb8dfe67f8 /sys-apps/readahead-list | |
parent | Removed old, closing #284558 (diff) | |
download | historical-4c35d5aa4fc8c05a942bdc6685284744133915ed.tar.gz historical-4c35d5aa4fc8c05a942bdc6685284744133915ed.tar.bz2 historical-4c35d5aa4fc8c05a942bdc6685284744133915ed.zip |
Make this baseline happy with OpenRC.
Package-Manager: portage-2.2_rc40/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/readahead-list')
-rw-r--r-- | sys-apps/readahead-list/ChangeLog | 11 | ||||
-rw-r--r-- | sys-apps/readahead-list/Manifest | 6 | ||||
-rw-r--r-- | sys-apps/readahead-list/files/conf.d-readahead-list | 16 | ||||
-rw-r--r-- | sys-apps/readahead-list/files/init.d-readahead-list | 23 | ||||
-rw-r--r-- | sys-apps/readahead-list/files/init.d-readahead-list-early | 23 | ||||
-rw-r--r-- | sys-apps/readahead-list/readahead-list-1.20060421.1016-r1.ebuild | 61 |
6 files changed, 137 insertions, 3 deletions
diff --git a/sys-apps/readahead-list/ChangeLog b/sys-apps/readahead-list/ChangeLog index e136186e331a..e9617fbb691e 100644 --- a/sys-apps/readahead-list/ChangeLog +++ b/sys-apps/readahead-list/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-apps/readahead-list -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/readahead-list/ChangeLog,v 1.16 2008/09/26 14:56:40 loki_val Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/readahead-list/ChangeLog,v 1.17 2009/09/21 02:03:32 robbat2 Exp $ + +*readahead-list-1.20060421.1016-r1 (21 Sep 2009) + + 21 Sep 2009; Robin H. Johnson <robbat2@gentoo.org> + +readahead-list-1.20060421.1016-r1.ebuild, +files/conf.d-readahead-list, + +files/init.d-readahead-list, +files/init.d-readahead-list-early: + Make this baseline happy with OpenRC. 26 Sep 2008; Peter Alfredsen <loki_val@gentoo.org> +files/readahead-list-1.20060421.1016-gcc-4.3.patch, diff --git a/sys-apps/readahead-list/Manifest b/sys-apps/readahead-list/Manifest index da7517e6a623..ea17d51cd81a 100644 --- a/sys-apps/readahead-list/Manifest +++ b/sys-apps/readahead-list/Manifest @@ -1,7 +1,11 @@ +AUX conf.d-readahead-list 711 RMD160 f9b28e74ae8e78bcebda7e9c5ca4916de77cdbe9 SHA1 869e8ac0d2c4c9134e20b65c59f3d366a6ae1738 SHA256 8816d1ff9fef5174f6cfb272637f128496e45e923e369e24ade4d4a544d533fa +AUX init.d-readahead-list 643 RMD160 4cc953a6a685e8a7170b6ab449610da2e986efd5 SHA1 45bbf8e319c37cf0beb8ad97b5dae47549bfa7f0 SHA256 a6343d377274345d566248d22bd1e0a374f66584c9a44c4f36f7a3c24b767cbe +AUX init.d-readahead-list-early 648 RMD160 03459efcad1a0648fb244b88212a1c9c958aea49 SHA1 b72326707fa76b1387c8c67bc2f3b50fc7afc6b3 SHA256 b5c014e57cf5dc7dc92fb55437c2d6dcbc375360ca14c8b427278c5e62d19dc5 AUX readahead-list-1.20060421.1016-gcc-4.3.patch 196 RMD160 96f0317af26c1031578cbadcf258d723059f81b0 SHA1 83cbb3e1d23a26469610622fde8ccd60d7fef2e5 SHA256 e81f22df113d580bd9298eebc84bcef690a17e92ae6046b663b59d9428c905ca DIST readahead-list-0.20050517.0220.tar.bz2 106855 RMD160 493feb09448684fd2c869e8e6473427eea07b6ca SHA1 6fd6dcd629c0895645a68e9be12f1fe993387640 SHA256 fdb37b1c2f520e1df5883cb34cd56ae76213995fd1e16aca548d297d9098d5b7 DIST readahead-list-1.20060421.1016.tar.bz2 108337 RMD160 c6154b38d118e9662ae4568a0fb1485277fb2336 SHA1 282b5d548c148e4088a9fb9228b7d47683ac906e SHA256 b031f92e89756f4fd19ad2860f5d6ede80e57ddd1e973376c49e43fe142a6a82 EBUILD readahead-list-0.20050517.0220.ebuild 1799 RMD160 4fd2330d18afaa5c51a2af09e794adedf2ddf787 SHA1 d918d20fc7cb5129e4acc4f2b39d2d2fa14c8f2b SHA256 562664e7c93594db9da9d4cf99bda20b69623aaf4aee26053d64d7905801d3c5 +EBUILD readahead-list-1.20060421.1016-r1.ebuild 1816 RMD160 6a51034cec0d03727292ff8d842c921ead455142 SHA1 5e4b8f527def2bad6a46e72cdcb1fac649c3f19c SHA256 bab719c78787b6ab06af55b87de0a80b51ae3216925e9c6a22e3fc9dc00454c4 EBUILD readahead-list-1.20060421.1016.ebuild 1767 RMD160 47f89370f3a374d14d082c1526b04c6407d2b1c8 SHA1 5ffa0dcab7df1a489a40d4cc87e9f859506a400d SHA256 d45f61b727f266b926e14ca7b027fca16414ff3ef2331dd64b824e7676aa1c31 -MISC ChangeLog 2933 RMD160 7ae4f45ae7e100375464290de5c624cf80572a9b SHA1 e26bc22a43437ad0f6a111c2179d56baad0e1750 SHA256 7a41fbecf24e041e803c723f63fba3e8beb978519464ff6b40bfcfab158b401f +MISC ChangeLog 3219 RMD160 42174595574897787d7d902e0a30d8ee55690708 SHA1 cd281d164aa5878e3160d55dfd6246a57760b533 SHA256 ab846f72cb30951c79d223e3f673850393d800ff177437d9687ffc2f0383d3a7 MISC metadata.xml 306 RMD160 d5796ebc8c7d96262d5c12e6e253e0f6849e3a39 SHA1 66204049d338c96ab7fc1d3a0ecd498cafce7fb7 SHA256 1a2c1c35c3e98850927a5ffb29d87f068dafa0f650580159b78ac9050799b244 diff --git a/sys-apps/readahead-list/files/conf.d-readahead-list b/sys-apps/readahead-list/files/conf.d-readahead-list new file mode 100644 index 000000000000..15e8ce023585 --- /dev/null +++ b/sys-apps/readahead-list/files/conf.d-readahead-list @@ -0,0 +1,16 @@ +#!/sbin/runscript +# Copyright 2005 Robin H. Johnson <robbat2@orbis-terrarum.net> +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/readahead-list/files/conf.d-readahead-list,v 1.1 2009/09/21 02:03:32 robbat2 Exp $ + +# this list is intended for usage very early +READAHEAD_LIST_exec_sbin_rc="/etc/readahead-list/exec_sbin_rc" + +# per-runlevel +READAHEAD_LIST_runlevel_boot="/etc/readahead-list/runlevel-boot" +READAHEAD_LIST_runlevel_default="/etc/readahead-list/runlevel-default" + +READAHEAD_LIST_call_early="${!READAHEAD_LIST_exec_sbin_rc} ${!READAHEAD_LIST_runlevel_boot}" +READAHEAD_LIST_call_main="${!READAHEAD_LIST_runlevel_default}" + +# vim: ts=4 sw=4 diff --git a/sys-apps/readahead-list/files/init.d-readahead-list b/sys-apps/readahead-list/files/init.d-readahead-list new file mode 100644 index 000000000000..77a70959d104 --- /dev/null +++ b/sys-apps/readahead-list/files/init.d-readahead-list @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 2005 Robin H. Johnson <robbat2@orbis-terrarum.net> +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/readahead-list/files/init.d-readahead-list,v 1.1 2009/09/21 02:03:32 robbat2 Exp $ + +depend() { + after localmount + # this should start as early as possible + # we can't do 'before *' as that breaks it + before clock bootmisc consolefont keymaps rmnologin serial urandom +} + +start() { + # force reading + source /etc/conf.d/readahead-list + + f="${READAHEAD_LIST_call_main}" + ebegin "readahead(2): ${f}" + /sbin/readahead-list ${f} + eend $? +} + +# vim: ts=4 sw=4 diff --git a/sys-apps/readahead-list/files/init.d-readahead-list-early b/sys-apps/readahead-list/files/init.d-readahead-list-early new file mode 100644 index 000000000000..2aeaa1f745f2 --- /dev/null +++ b/sys-apps/readahead-list/files/init.d-readahead-list-early @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 2005 Robin H. Johnson <robbat2@orbis-terrarum.net> +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/readahead-list/files/init.d-readahead-list-early,v 1.1 2009/09/21 02:03:32 robbat2 Exp $ + + +depend() { + after checkroot + # this should start as early as possible + # we can't do 'before *' as that breaks it + before hostname modules domainname crypto-loop checkfs localmount +} + +start() { + # force reading + source /etc/conf.d/readahead-list + f="${READAHEAD_LIST_call_early}" + ebegin "readahead(2): ${f}" + /sbin/readahead-list ${f} + eend $? +} + +# vim: ts=4 sw=4 diff --git a/sys-apps/readahead-list/readahead-list-1.20060421.1016-r1.ebuild b/sys-apps/readahead-list/readahead-list-1.20060421.1016-r1.ebuild new file mode 100644 index 000000000000..d5c393414de6 --- /dev/null +++ b/sys-apps/readahead-list/readahead-list-1.20060421.1016-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/readahead-list/readahead-list-1.20060421.1016-r1.ebuild,v 1.1 2009/09/21 02:03:32 robbat2 Exp $ + +inherit base + +DESCRIPTION="Preloads files into the page cache to accelerate program loading." +HOMEPAGE="http://www.orbis-terrarum.net" +SRC_URI="mirror://gentoo/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc" + +# I'm not entirely certain about this +# need to check if other libc variants provide readahead(2) +RDEPEND="virtual/libc" +DEPEND="${RDEPEND} + virtual/os-headers" + +PATCHES=( "${FILESDIR}/${P}-gcc-4.3.patch" ) + +src_compile() { + econf --sbindir=/sbin || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + # init scripts + #cd "${S}/contrib/init/gentoo/" + newinitd "${FILESDIR}"/init.d-readahead-list readahead-list + newinitd "${FILESDIR}"/init.d-readahead-list-early readahead-list-early + newconfd "${FILESDIR}"/conf.d-readahead-list readahead-list + + # default config + insinto /etc/readahead-list + cd "${S}/contrib/data" + newins readahead.runlevel-default.list runlevel-default + newins readahead.runlevel-boot.list runlevel-boot + newins readahead._sbin_rc.list exec_sbin_rc + + # docs + cd "${S}" + dodoc README + if use doc; then + docinto scripts + dodoc contrib/scripts/* + fi + # clean up a bit + find "${D}/usr/share/doc/${PF}/" -type f -name 'Makefile*' -exec rm -f \{\} \; +} + +pkg_postinst() { + einfo "You should add readahead-list to your runlevels:" + einfo " rc-update add readahead-list-early boot" + einfo " rc-update add readahead-list boot" + einfo "Also consider customizing the lists in /etc/readahead-list" + einfo "for maximum performance gain." +} |