Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37855197
en ru br
Репозитории ALT
5.1: 3.5-alt2
4.1: 3.3-alt0.5.pre6
4.0: 3.3-alt0.5.pre6
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: module-init-tools

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: module-init-tools
Version: 3.3
Release: alt0.5.pre6

Summary: Kernel module management utilities
License: GPL
Group: System/Kernel and hardware
URL: http://www.kerneltools.org
ExclusiveOS: Linux
ExclusiveArch: %ix86 x86_64
Packager: Sergey Vlasov <vsu at altlinux.ru>

Source0: %name-%version-%release.tar

Conflicts: modutils < 2.4.27-alt8
Conflicts: etcnet < 0.8.5
Conflicts: mkinitrd < 1:2.9.11-alt1
Conflicts: lm_sensors < 2.10.2-alt1

%define _unpackaged_files_terminate_build 1

BuildPreReq: dietlibc >= 0.30-alt3

# Automatically added by buildreq on Fri Jan 26 2007

BuildRequires: dietlibc docbook-utils glibc-devel-static zlib-devel

%description
The module-init-tools package includes various programs needed for
automatic loading and unloading of modules under 2.6.x kernels, as
well as other module management programs.

%package initramfs
Summary: Module management utilities for use in initramfs images
Group: System/Kernel and hardware
Requires: %name = %version-%release
PreReq: mkinitrd-initramfs

%description initramfs
This package contains a special version of kernel module management
utilities intended for use in initramfs images generated by mkinitrd.
This version is linked with dietlibc instead of glibc.

%package compat
Summary: Script for migration from modutils to module-init-tools
Group: System/Kernel and hardware
PreReq: %name = %version-%release

%description compat
This package contains a script which converts configuration files
for old modutils (/etc/modules.conf) to the new format used by
module-init-tools.

%prep
%setup -n %name-%version-%release
bzip2 -k ChangeLog

# remove pregenerated man pages - they will be recreated from SGML source

rm -f *.[58]

%build
autoreconf -vi

%configure --bindir=/bin --sbindir=/sbin \
CC="diet gcc" \
CPPFLAGS="-DCONFIG_NO_BACKWARDS_COMPAT"
%make_build modprobe
mv modprobe modprobe.mkinitrd
make clean distclean

%configure --bindir=/bin --sbindir=/sbin --enable-zlib \
CPPFLAGS="-DCONFIG_NO_BACKWARDS_COMPAT"
%make_build LDADD="-lz"

%install
%make_install install DESTDIR=%buildroot

# lsmod was in /sbin before

ln -s ../bin/lsmod %buildroot/sbin/lsmod

mkdir -p %buildroot%_sysconfdir/{depmod.d,modprobe.d}
find extra/modprobe.d -maxdepth 1 -type f -print0 | \
xargs -r0 install -m644 -p -t %buildroot%_sysconfdir/modprobe.d/ --
%ifarch %ix86 x86_64
install -m644 -p extra/modprobe.d/arch/i386 \
%buildroot%_sysconfdir/modprobe.d/arch
%endif

install -m644 -p extra/modules.5 %buildroot%_man5dir/

mkdir -p %buildroot/lib/mkinitrd/%name/sbin
install -p modprobe.mkinitrd %buildroot/lib/mkinitrd/%name/sbin/modprobe

%files
%config(noreplace) %_sysconfdir/depmod.d
%config(noreplace) %_sysconfdir/modprobe.d
/bin/lsmod
/sbin/depmod
/sbin/insmod
%exclude /sbin/insmod.static
/sbin/lsmod
/sbin/modinfo
/sbin/modprobe
/sbin/rmmod
%_man5dir/*
%_man8dir/*
%doc AUTHORS ChangeLog.bz2

%files initramfs
/lib/mkinitrd/%name

%files compat
/sbin/generate-modprobe.conf

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin