97 lines
3.0 KiB
Bash
97 lines
3.0 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
|
|
pkgname=dracut
|
|
pkgver=103
|
|
pkgrel=1
|
|
pkgdesc="An event driven initramfs infrastructure"
|
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
|
url="https://github.com/dracut-ng/dracut-ng"
|
|
license=('GPL-2.0-or-later')
|
|
depends=(
|
|
'bash'
|
|
'coreutils'
|
|
'cpio'
|
|
'filesystem'
|
|
'findutils'
|
|
'gawk'
|
|
'grep'
|
|
'kmod'
|
|
'pkgconf'
|
|
'procps-ng'
|
|
'sed'
|
|
'systemd'
|
|
'util-linux'
|
|
)
|
|
makedepends=(
|
|
'asciidoc'
|
|
'bash-completion'
|
|
'git'
|
|
)
|
|
optdepends=(
|
|
'binutils: --uefi option support'
|
|
'bluez: bluetooth (keyboard)'
|
|
'btrfs-progs: scan for Btrfs on block devices'
|
|
'busybox: allows use of busybox (on your own risk)'
|
|
'bzip2: bzip2 compression'
|
|
'cifs-utils: support CIFS'
|
|
'connman: support for connman networking'
|
|
'cryptsetup: support for encrypted with LUKS filesystems'
|
|
'dash: allows use of dash (on your own risk)'
|
|
'dhclient: legacy networking support'
|
|
'dmraid: dmraid dracut module support'
|
|
'e2fsprogs: ext2/3/4 filesystem support'
|
|
'elfutils: strip binaries to reduce initramfs size'
|
|
'f2fs-tools: fsfs filesystem support'
|
|
'fuse3: live on NTFS (dmsquash-live-ntfs module)'
|
|
'gzip: gzip compression'
|
|
'iproute2: legacy networking support'
|
|
'iputils: networking support'
|
|
'lvm2: support Logical Volume Manager'
|
|
'lzop: lzop compression'
|
|
'mdadm: support MD devices, also known as software RAID devices'
|
|
'multipath-tools: dmraid dracut module support'
|
|
'nbd: support network block devices'
|
|
'ndctl: NVDIMM support'
|
|
'networkmanager: networkmanager support'
|
|
'nfs-utils: support NFS'
|
|
'ntfs-3g: live on NTFS (dmsquash-live-ntfs module)'
|
|
'nvme-cli: NVMe-oF support (nvmf module)'
|
|
'open-iscsi: support iSCSI (iscsi module)'
|
|
'openssh: install ssh and scp along with config files and specified keys (ssh-client module)'
|
|
'pigz: faster gzip compression'
|
|
'plymouth: plymouth boot splash'
|
|
'rng-tools: enable rngd service to help generating entropy early during boot'
|
|
'sbsigntools: uefi_secureboot_cert/key configuration option support'
|
|
'squashfs-tools: support for building a squashed initramfs'
|
|
'tar: live tar image'
|
|
'tpm2-tools: tpm2 support for e.g. LUKS'
|
|
'xz: xz compression'
|
|
)
|
|
provides=('initramfs')
|
|
backup=('etc/dracut.conf')
|
|
source=(
|
|
"${pkgname}-${pkgver}::git+${url}#tag=${pkgver}"
|
|
)
|
|
sha512sums=('af696ba9ec6c48861a8e9ebca3679aac1cd35c22a1cdb29f7710cfa7ce1d77108ddbf726a77dcb9a47170fed9f21c45e286614280f0892a5aa05ddc4eac25bb5')
|
|
b2sums=('f8d594e9ac7d4f0bda0f83bc781746cb559a91c0bb56d4c480660451785911477202d614311866904eaf8d6ee7d89ea2e3cd00899dd2b0a51379e2d41bac0957')
|
|
|
|
build() {
|
|
local prefix=/usr sysconfdir=/etc
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
./configure \
|
|
--sysconfdir=${sysconfdir} \
|
|
--prefix=${prefix} \
|
|
--libdir=${prefix}/lib \
|
|
--systemdsystemunitdir=${prefix}/lib/systemd/system \
|
|
--bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion)
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
DESTDIR="$pkgdir" make install
|
|
}
|