diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2008-10-18 02:20:48 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2008-10-18 02:20:48 +0000 |
commit | e974fdbe709510f4dc2c5962e47cfed6284355ed (patch) | |
tree | 029403d4649a94ec82388e0f902c8ed071821073 /sys-apps/preload | |
parent | Version bump (diff) | |
download | gentoo-2-e974fdbe709510f4dc2c5962e47cfed6284355ed.tar.gz gentoo-2-e974fdbe709510f4dc2c5962e47cfed6284355ed.tar.bz2 gentoo-2-e974fdbe709510f4dc2c5962e47cfed6284355ed.zip |
initial import, sys-app/preload, an adaptive readahead deamon
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-git6 x86_64)
Diffstat (limited to 'sys-apps/preload')
-rw-r--r-- | sys-apps/preload/ChangeLog | 12 | ||||
-rw-r--r-- | sys-apps/preload/Manifest | 6 | ||||
-rw-r--r-- | sys-apps/preload/files/conf.d-preload | 12 | ||||
-rw-r--r-- | sys-apps/preload/files/init.d-preload | 30 | ||||
-rw-r--r-- | sys-apps/preload/metadata.xml | 9 | ||||
-rw-r--r-- | sys-apps/preload/preload-0.6.3.ebuild | 30 |
6 files changed, 99 insertions, 0 deletions
diff --git a/sys-apps/preload/ChangeLog b/sys-apps/preload/ChangeLog new file mode 100644 index 000000000000..4116db179497 --- /dev/null +++ b/sys-apps/preload/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for sys-apps/preload +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/ChangeLog,v 1.1 2008/10/18 02:20:48 darkside Exp $ + +*preload-0.6.3 (18 Oct 2008) + + 18 Oct 2008; Jeremy Olexa <darkside@gentoo.org> +files/conf.d-preload, + +files/init.d-preload, +metadata.xml, +preload-0.6.3.ebuild: + Initial import, ebuild based off the work by robert.zhangle in the Gentoo + China overlay. preload is an adaptive readahead deamon that is very non + resource intensive and a very 'smart' app. + diff --git a/sys-apps/preload/Manifest b/sys-apps/preload/Manifest new file mode 100644 index 000000000000..0e95e3771af7 --- /dev/null +++ b/sys-apps/preload/Manifest @@ -0,0 +1,6 @@ +AUX conf.d-preload 250 RMD160 453647d659b0daa3623a1638e1439e399b1291b8 SHA1 ae99303c8a3ff1ac6ffdbcb570bdfc38ab7daa4b SHA256 b7e915110893813002043273ccf4bc64ac21bc8d81ea0a434a37c538d1cf812e +AUX init.d-preload 580 RMD160 5f5c64a3ff53f3199dc46a4417c68ebe113597ab SHA1 894b9a642df5d7b7fc89a7272a961f41798e06be SHA256 930a1943a15527247662215c0f67bdb111b51a58724352a2875d9b994c51d2b1 +DIST preload-0.6.3.tar.gz 139587 RMD160 ba0666ee67780961651a99ac60068265d29c288a SHA1 3733693e186ebc8965f164a3fd7afa2cf558fec5 SHA256 de6a79ca1426f8a2710135b78fd9edb34e3a152e9cdd7cfd68166399171f358b +EBUILD preload-0.6.3.ebuild 768 RMD160 9a06868866b11e81af7204a0fe6d584d337313db SHA1 dc399779896e21461d9b253fb5c0d306929d64e9 SHA256 0ed693b61004685519bcb4abde0b84e284f353336592af16a0ab976b56c654a0 +MISC ChangeLog 479 RMD160 331ac31f705bac5b8f63f14bf7319b24b55f5ab2 SHA1 d94fde09cc5e10824e488870e90ee54391a05e7c SHA256 d95f7ba7db987b06eb53ef26be09e6a8960a78e69366aa7eea717364a1cdf779 +MISC metadata.xml 503 RMD160 38ab96ae80e53c44b88512bec1409281cf06ef56 SHA1 4196948def119ac92327edf1307cc9a1bd0f4162 SHA256 0cbf6f727b2d3bc82e3a3d949dc9cb003029789718735e32cbc77e28eaa21b24 diff --git a/sys-apps/preload/files/conf.d-preload b/sys-apps/preload/files/conf.d-preload new file mode 100644 index 000000000000..19bd8ebfed24 --- /dev/null +++ b/sys-apps/preload/files/conf.d-preload @@ -0,0 +1,12 @@ +# Copyright 1999-2008 Gentoo Foundation +# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v 1.1 2008/10/18 02:20:48 darkside Exp $ +# preload configuration file + +## verbosity. 0-9, Default is 4. +PRELOAD_VERBOSITY="4" + +## set this for niceness. Default is 15 +PRELOAD_NICE="15" + +## log file +PRELOAD_LOGFILE="/var/log/preload.log" diff --git a/sys-apps/preload/files/init.d-preload b/sys-apps/preload/files/init.d-preload new file mode 100644 index 000000000000..4bd5ff6a6be0 --- /dev/null +++ b/sys-apps/preload/files/init.d-preload @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v 1.1 2008/10/18 02:20:48 darkside Exp $ + +depend() { + after xdm +} + +restart() { + ebegin "Reloading config for preload" + killall -SIGHUP /usr/sbin/preload + eend $? +} + +start() { + ebegin "Starting preload" + start-stop-daemon --start --quiet --exec /usr/sbin/preload -- \ + --logfile ${PRELOAD_LOGFILE} -V ${PRELOAD_VERBOSITY} -n ${PRELOAD_NICE} + eend $? +} + +stop() { + ebegin "Stopping preload" + start-stop-daemon --stop --quiet --exec /usr/sbin/preload + eend $? +} + + + diff --git a/sys-apps/preload/metadata.xml b/sys-apps/preload/metadata.xml new file mode 100644 index 000000000000..6c89025714d9 --- /dev/null +++ b/sys-apps/preload/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>darkside@gentoo.org</email> +</maintainer> +<longdescription> preload is an adaptive readahead daemon. It monitors applications that users run, and by analyzing this data, predicts what applications users might run, and fetches those binaries and their dependencies into memory for faster startup times. </longdescription> +</pkgmetadata> diff --git a/sys-apps/preload/preload-0.6.3.ebuild b/sys-apps/preload/preload-0.6.3.ebuild new file mode 100644 index 000000000000..84c42e526bab --- /dev/null +++ b/sys-apps/preload/preload-0.6.3.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/preload-0.6.3.ebuild,v 1.1 2008/10/18 02:20:48 darkside Exp $ + +DESCRIPTION="Adaptive readahead daemon." +HOMEPAGE="http://sourceforge.net/projects/preload" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="dev-libs/glib" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_compile() { + econf --localstatedir=/var + emake -j1 || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + rm -rf "${D}/etc/rc.d" || die "rm rc.d failed" + newinitd "${FILESDIR}/init.d-preload" preload || die "initd failed" + newconfd "${FILESDIR}/conf.d-preload" preload || die "confd failed" + dodoc AUTHORS ChangeLog NEWS README THANKS TODO +} + |