114 lines
4.2 KiB
Bash
114 lines
4.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=dracut
|
|
pkgver=059
|
|
pkgrel=06
|
|
pkgdesc="An event driven initramfs infrastructure w/o systemd"
|
|
#url="https://dracut.wiki.kernel.org"
|
|
url="https://github.com/dracutdevs/dracut"
|
|
depends=('bash' 'coreutils' 'cpio' 'filesystem' 'findutils' 'gawk' 'grep' 'gzip'
|
|
'kmod' 'pkgconf' 'procps-ng' 'sed' 'util-linux' 'xz')
|
|
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'
|
|
'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'
|
|
'elfutils: strip binaries to reduce initramfs size'
|
|
'f2fs-tools: fsfs filesystem support'
|
|
'fuse3: live on NTFS (dmsquash-live-ntfs module)'
|
|
'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'
|
|
'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'
|
|
'tpm2-tools: tpm2 support for e.g. LUKS'
|
|
'xfsprogs: XFS filesystem utilities '
|
|
'xfsdump: Additional XFS filesystem utilities'
|
|
)
|
|
provides=('initramfs')
|
|
backup=('etc/dracut.conf')
|
|
#source=(https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut-${pkgver}.tar{.gz,.sign})
|
|
source=("${pkgname}::git+${url}#tag=${pkgver}?signed"
|
|
dracut-install
|
|
dracut-remove
|
|
90-dracut-install.hook
|
|
60-dracut-remove.hook)
|
|
|
|
prepare() {
|
|
cd "$srcdir/${pkgname}"
|
|
|
|
}
|
|
|
|
build() {
|
|
local prefix=/usr sysconfdir=/etc
|
|
|
|
cd "$srcdir/${pkgname}"
|
|
|
|
./configure \
|
|
--sysconfdir=${sysconfdir} \
|
|
--prefix=${prefix} \
|
|
--libdir=${prefix}/lib \
|
|
--systemdsystemunitdir=/delete \
|
|
--bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion)
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${pkgname}"
|
|
|
|
DESTDIR="$pkgdir" make install
|
|
|
|
## systemd crap thrown away
|
|
rm -rf ${pkgdir}/usr/lib/dracut/modules.d/*systemd*
|
|
rm -f ${pkgdir}/usr/share/man/man8/*.service.*
|
|
rm -rf $pkgdir/delete ## give us a break Jóhann, make a decent option to build this without the crap smeared all over it
|
|
|
|
install -Dm644 "${srcdir}/90-dracut-install.hook" "${pkgdir}/usr/share/libalpm/hooks/90-dracut-install.hook"
|
|
install -Dm644 "${srcdir}/60-dracut-remove.hook" "${pkgdir}/usr/share/libalpm/hooks/60-dracut-remove.hook"
|
|
install -Dm755 "${srcdir}/dracut-install" "${pkgdir}/usr/share/libalpm/scripts/dracut-install"
|
|
install -Dm755 "${srcdir}/dracut-remove" "${pkgdir}/usr/share/libalpm/scripts/dracut-remove"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL-2.0-or-later')
|
|
|
|
validpgpkeys=('F66745589DE755B02AD947D71F1139EBBED1ACA9') # "Jóhann B. Guðmundsson <johannbg@gmail.com>"
|
|
|
|
sha256sums=(SKIP
|
|
4c0ee4c9dc2941d34ebeecf4242c7577e3d193c2a00a9a465a39d42c8266ca6a # dracut-install
|
|
4d6ca5da247a19f290bd8e375c470ef6dc01476288cb8aba71c09c09d23331f5 # dracut-remove
|
|
7365ad289428c7f7dad522ea0a2c9381648912a626bd40237767051468d325ef # 90-dracut-install.hook
|
|
054dac9f1d55029a922ff05c3064e54d25790c7a18d2b598edc58ef3d295cba1) # 60-dracut-remove.hook
|
|
|
|
## 69d49a9e96abbd503f3846c7d2775ad16ad1462b371808c51833f3adfde67822 dracut-059-06-x86_64.pkg.tar.lz
|
|
|