Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37859038
en ru br
ALT Linux repos
5.0: 0.2-alt2
4.1: 0.2-alt2

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# spec file for package preload (Version 0.2)
#
# Copyright (c) 2008 Stas Myasnikov
# Copyright (c) 2008 Kirill A. Shutemov
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

Name: preload
Version: 0.2
Release: alt2
Summary: Preloads Files into System Cache for Faster Booting
License: %gpl2plus
#License: GPLv2+
Group: System/Configuration/Boot and Init
Source: %name-%version-%release.tar

# TODO: Preload lists are arch dependent. There is only lists for %ix86.

ExclusiveArch: %ix86

#Packager: Kirill A. Shutemov <kas at altlinux.org>

Packager: Gleb Stiblo <ulfr at altlinux.org>

BuildRequires: rpm-build-licenses
BuildRequires: crontabs service perl-base

%description
Preload lists files to load into the system cache. This shortens system
boot time if used correctly.

%prep
%setup -q -n %name-%version-%release

%build
gcc $RPM_OPT_FLAGS -DUSE_FADVISE -o preload preload.c
gcc $RPM_OPT_FLAGS -o print-bmap print-bmap.c
gcc $RPM_OPT_FLAGS -o precated precat.c

%install
mkdir -p %buildroot{%_bindir,%_sbindir,%_initdir,%_sysconfdir/cron.daily,%_cachedir/%name}
install -pm755 preload precated %buildroot%_bindir
install -pm755 print-bmap update_preload prepare_preload update_precat %buildroot%_sbindir
install -pm755 init.preload %buildroot/%_initdir/%name
cp -a preload.d %buildroot%_sysconfdir
install -pm755 cron %buildroot/%_sysconfdir/cron.daily/update-preload
cp kde.precat2 %buildroot/%_cachedir/%name/

%post
echo "Generating caches, please wait..."
update_preload >/dev/null 2>&1
update_precat >/dev/null 2>&1
%post_service %name

%preun
%preun_service %name
rm -rf %_cachedir/%name/*.preload

%files
%_bindir/*
%_sbindir/*
%_sysconfdir/cron.daily/update-preload
%_sysconfdir/preload.d
%_initdir/%name
%_cachedir/%name

%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