Sisyphus repository
Last update: 3 december 2022 | SRPMs: 17961 | Visits: 25477377
en ru br
ALT Linux repos
S:1.4-alt3
5.0: 0.9.1-alt1
4.1: 0.9.1-alt0.M41.1
4.0: 0.9.1-alt0.M40.1

Group :: System/Kernel and hardware
RPM: update-kernel

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: update-kernel
Version: 1.4
Release: alt3

Summary: Update kernel and modules
License: GPL-2.0+
Group: System/Kernel and hardware

Source: %name-%version.tar
BuildArch: noarch
BuildRequires: shellcheck

Requires: apt
Requires: /usr/bin/rpmevrcmp
# May use rpm -q with an Epoch in the pkg argument (as well as Buildtime and
# Disttag -- but these are dependent on the output from APT, and APT cares
# about the correct dependencies on such features).
Requires: RPMQ(EPOCH)

%description
This package contains a script to conveniently update
kernel and modules.

It works by installing a new package set along with existing kernel
so that you don't end up without a kernel guaranteed to boot (your
good old one); by default, it will look for the most recent package
of the same flavour (e.g. "std-def") and try to install all the same
modules as already installed for that.

See also:
http://lists.altlinux.org/pipermail/community/2005-November/366618.html
http://lists.altlinux.org/pipermail/sisyphus/2006-November/192226.html

%prep
%setup

%install
mkdir -p %buildroot%_sbindir
install -pm755 update-kernel %buildroot%_sbindir/
install -pm755 remove-old-kernels %buildroot%_sbindir/
install -pm755 analyze-kmodules %buildroot%_sbindir/
install -Dp update-kernel.8 -t %buildroot%_man8dir/
install -Dp update-kernel.8.ru %buildroot%_mandir/ru/man8/update-kernel.8
install -Dp bash_completion %buildroot/usr/share/bash-completion/completions/update-kernel
ln -sf update-kernel %buildroot/usr/share/bash-completion/completions/remove-old-kernels

%check
make check

%files
%_sbindir/update-kernel
%_sbindir/remove-old-kernels
%_sbindir/analyze-kmodules
%_man8dir/*.8*
%_mandir/ru/man8/*.8*
%_datadir/bash-completion/completions/*

%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