Репозиторий Sisyphus
Последнее обновление: 17 октября 2018 | Пакетов: 18649 | Посещений: 12379428
en ru br
Репозитории ALT
S:2.2.4-alt1
5.1: 0.1.5-alt1
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: make-initrd

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

%global myname make-initrd

Name: make-initrd
Version: 2.2.4
Release: alt1

Summary: Creates an initramfs image
License: GPL3
Group: System/Base

Packager: Alexey Gladkov <legion at altlinux.ru>

BuildRequires: help2man
BuildRequires: libkmod-devel
BuildRequires: zlib-devel
BuildRequires: bzlib-devel
BuildRequires: liblzma-devel
BuildRequires: libzstd-devel

Provides: make-initrd(crc32c) = 1

Provides: mkinitrd = 2:%version-%release
Provides: make-initrd2 = %version-%release
Obsoletes: make-initrd2

Requires: sh libshell make sed module-init-tools coreutils findutils grep glibc-utils
Requires: chrooted-resolv service util-linux which file

# Feature qemu

Requires: pciutils

# setsid, timeout

Requires: make-initrd-busybox >= 1.24.2-alt2

# depinfo

Requires: libkmod >= 8-alt1

# make bug-report

Requires: tar

# ipconfig -q: kinit-utils-1.5.15-alt3

# run-init -e: kinit-utils-1.5.17-alt2
# ipconfig -D: kinit-utils-1.5.25-alt2
# halt, replace, showenv moved from kinit-utils-1.5.25-alt5
Requires: kinit-utils >= 1.5.25-alt5

# Move /dev from initrd to the real system.

# 167: udevadm info --run
Requires: udev >= 167-alt1

# installkernel

Requires: bootloader-utils >= 0.4.10-alt1

# blkid

Requires: util-linux >= 2.17.2-alt1

# /sbin/init.initrd

Requires: sysvinit-initramfs

# This avoids getting a dependency on sh from "#!/bin/sh".

#AutoReq: yes, nopam, noperl, nopython, noshell, notcl
AutoReq: noshell, noshebang

Source0: %name-%version.tar

%description
make-initrd is a new, uevent-driven initramfs infrastructure based around udev.

%package devmapper
Summary: device-mapper module for %name
Group: System/Base
Requires: %name = %version-%release
Requires: dmsetup >= 1.02.44-alt3
AutoReq: noshell, noshebang

%description devmapper
device-mapper module for %name

%package lvm
Summary: LVM module for %name
Group: System/Base
Requires: %name = %version-%release
Requires: %name-devmapper = %version-%release
Requires: lvm2
AutoReq: noshell, noshebang

%description lvm
LVM module for %name

%package luks
Summary: LUKS module for %name
Group: System/Base
Requires: %name = %version-%release
Requires: %name-devmapper = %version-%release
Requires: cryptsetup
AutoReq: noshell, noshebang

%description luks
LUKS module for %name

%package nfs
Summary: NFS module for %name
Group: System/Base
AutoReq: noshell, noshebang

%description nfs
NFS module for %name

%package multipath
Summary: multipath module for %name
Group: System/Base
Requires: %name = %version-%release
Requires: %name-devmapper = %version-%release
Requires: multipath-tools
AutoReq: noshell, noshebang

%description multipath
Multipath module for %name

%package plymouth
Summary: plymouth module for %name
Group: System/Base
Requires: %name = %version-%release
Requires: plymouth
AutoReq: noshell, noshebang

%description plymouth
plymouth module for %name

%package mdadm
Summary: mdadm module for %name
Group: System/Base
Requires: %name = %version-%release
Requires: mdadm
AutoReq: noshell, noshebang

%description mdadm
Mdadm module for %name

%package ucode
Summary: CPU microcode module for %name
Group: System/Base
Requires: %name = %version-%release
Requires: iucode_tool, firmware-intel-ucode, linux-firmware
Requires: cpio
AutoReq: noshell, noshebang

%description ucode
CPU microcode autoloading module for %name

%prep
%setup -q

%build
%make_build

%install
%make_install DESTDIR=%buildroot install

%triggerin -- %name < 0.8.1-alt1
c="%_sysconfdir/initrd.mk"
if [ -s "$c" ] && ! grep -qs '^AUTODETECT[[:space:]]*=[[:space:]]*all[[:space:]]*' "$c"; then
printf -- 'make-initrd: Migrating to new autodetect scheme ...\n' >&2
sed -i -e 's/^\(AUTODETECT[[:space:]]*=.*\)$/# \1\nAUTODETECT = all/' "$c"
fi

%files
%dir %_sysconfdir/initrd.mk.d
%config(noreplace) %_sysconfdir/initrd.mk.d/*.mk.example
%config(noreplace) %_sysconfdir/initrd.mk
%_bindir/*
%_sbindir/*
%_datadir/%myname
%_man1dir/*
/lib/initrd
%exclude %_datadir/%myname/features/devmapper
%exclude %_datadir/%myname/features/lvm
%exclude %_datadir/%myname/features/luks
%exclude %_datadir/%myname/features/nfsroot
%exclude %_datadir/%myname/features/multipath
%exclude %_datadir/%myname/features/plymouth
%exclude %_datadir/%myname/features/mdadm
%exclude %_datadir/%myname/features/ucode
%doc docs/*.md

%files devmapper
%_datadir/%myname/features/devmapper

%files lvm
%_datadir/%myname/features/lvm

%files luks
%_datadir/%myname/features/luks

%files nfs
%_datadir/%myname/features/nfsroot

%files multipath
%_datadir/%myname/features/multipath

%files plymouth
%_datadir/%myname/features/plymouth

%files mdadm
%_datadir/%myname/features/mdadm

%ifarch %ix86 x86_64
%files ucode
%_datadir/%myname/features/ucode
%endif

%changelog

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

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