Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37533140
en ru br
ALT Linux repos
S:1.5.6-alt1.1
5.0: 1.4.4-alt1.1

Group :: System/Configuration/Boot and Init
RPM: readahead

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: readahead
Version: 1.5.6
Release: alt1.1

Packager: Victor Forsiuk <force at altlinux.org>

Summary: Read a preset list of files into memory
License: GPLv2+
Group: System/Configuration/Boot and Init

Url: http://fedorahosted.org/readahead/
# Source available only via git. Commands to get archive with latest released
# tag looks like:
# git clone git://git.fedorahosted.org/readahead
# git archive --prefix=readahead-1.5.4/ v1.5.4 |bzip2 -9 >readahead-1.5.4.tar.bz2
Source: readahead-%version.tar.bz2
Source1: readahead_early.init
Source2: readahead_later.init

# Automatically added by buildreq on Tue Oct 12 2010

BuildRequires: libaudit-devel libblkid-devel libe2fs-devel

# NB! ALT Linux doesn't use upstart (as Fedora) and support for readahead not

# yet added to rc.sysinit (as in Mandriva). So, we need to use own startup
# scripts for a while.

# Note for myself: 1.5.7 will support systemd!


%description
readahead reads the contents of a list of files into memory, which causes them
to be read from cache when they are actually needed. Its goal is to speed up the
boot process.

%prep
%setup

%build
./autogen.sh
%configure --sbindir=/sbin
sed -i 's|^dnl|#|' scripts/Makefile
%make_build
# To convert list from arch independent to arch specific format.
# Commented for now as default lists does not need this rebuild.
#%make rpm-lists-rebuild RPM_LIB="%_lib" RPM_ARCH="%_arch" FILES="default.early default.later"

%install
install -pD -m755 %_sourcedir/readahead_early.init %buildroot%_initdir/readahead_early
install -pD -m755 %_sourcedir/readahead_later.init %buildroot%_initdir/readahead_later

%makeinstall_std
install -d %buildroot/var/lib/readahead

%find_lang %name

%post
%post_service readahead_early
%post_service readahead_later

%preun
%preun_service readahead_early
%preun_service readahead_later

%files -f %name.lang
%config(noreplace) %_sysconfdir/readahead.conf
%config(noreplace) %_sysconfdir/sysconfig/readahead
%dir /var/lib/readahead
# We don't use upstart
%exclude %_sysconfdir/init
%_sysconfdir/cron.daily/*
%_sysconfdir/cron.monthly/*
%_initdir/*
/sbin/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin