mixi-exheres

An unofficial repo for exherbo (moved to git://git.exherbo.org/dev/mixi.git).
git clone https://git.shadowice.org/mixi-exheres.git
Log | Files | Refs | README

commit 51f29c45294d8fcf5396a317943a9ae04da4c757
parent 9d8b4437d3031b2e904cc0e46e0185d70825c10e
Author: Johannes Nixdorf <mixi@user-helfen-usern.de>
Date:   Fri,  2 Jul 2010 10:45:37 +0200

Adds preload

Diffstat:
metadata/categories.conf | 1+
packages/sys-apps/preload/files/preload.init | 32++++++++++++++++++++++++++++++++
packages/sys-apps/preload/preload-0.6.4.exheres-0 | 36++++++++++++++++++++++++++++++++++++
3 files changed, 69 insertions(+), 0 deletions(-)

diff --git a/metadata/categories.conf b/metadata/categories.conf @@ -8,3 +8,4 @@ kde games-puzzle games-strategy dev-games +sys-apps diff --git a/packages/sys-apps/preload/files/preload.init b/packages/sys-apps/preload/files/preload.init @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 2010 Johannes Nixdorf <mixi@user-helfen-usern.de> +# Distributed under the terms of the GNU General Public License v2 + +depend() { + after localmount +} + +start() { + ebegin "Starting preload" + + start-stop-daemon --start --make-pidfile --pidfile /var/run/preload.pid \ + --background --exec /usr/sbin/preload -- -f + + eend $? +} + +stop() { + ebegin "Stopping preload" + + start-stop-daemon --stop --pidfile /var/run/preload.pid + + eend $? +} + +reload() { + ebegin "Reloading preload" + + kill -HUP $(</var/run/preload.pid) + + eend $? +} diff --git a/packages/sys-apps/preload/preload-0.6.4.exheres-0 b/packages/sys-apps/preload/preload-0.6.4.exheres-0 @@ -0,0 +1,36 @@ +# Copyright 2010 Johannes Nixdorf <mixi@user-helfen-usern.de> +# Distributed under the terms of the GNU General Public License v2 + +require sourceforge [ suffix=tar.gz ] autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.11 ] ] + +SUMMARY="Preload is an adaptive readahead daemon." +DESCRIPTION=" +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. +" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +DEPENDENCIES=" + build+run: + dev-libs/glib +" + +DEFAULT_SRC_CONFIGURE_PARAMS=( --localstatedir=/var ) + +src_install() { + default + + edo rm "${IMAGE}"/var/lib/preload/preload.state + edo rm -r "${IMAGE}"/var/log/ + edo rm -r "${IMAGE}"/etc/rc.d + edo rm -r "${IMAGE}"/etc/sysconfig + + keepdir /var/lib/preload + + newinitd "${FILES}"/preload.init preload +}