116 lines
4.7 KiB
Bash
116 lines
4.7 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobextra/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=dracut
|
|
pkgver=102
|
|
pkgrel=01
|
|
pkgdesc="An event driven initramfs infrastructure w/o systemd"
|
|
#url="https://dracut.wiki.kernel.org"
|
|
url="https://github.com/dracut-ng/dracut-ng"
|
|
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}-${pkgver}::git+${url}#tag=${pkgver}"
|
|
dracut-install
|
|
dracut-remove
|
|
90-dracut-install.hook
|
|
60-dracut-remove.hook)
|
|
|
|
prepare() {
|
|
cd "$srcdir/${pkgname}-${pkgver}"
|
|
|
|
}
|
|
|
|
build() {
|
|
local prefix=/usr sysconfdir=/etc
|
|
|
|
cd "$srcdir/${pkgname}-${pkgver}"
|
|
./configure \
|
|
--sysconfdir=${sysconfdir} \
|
|
--prefix=${prefix} \
|
|
--libdir=${prefix}/lib \
|
|
--systemdsystemunitdir=no \
|
|
--bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion)
|
|
make
|
|
}
|
|
|
|
package() {
|
|
# cd "$srcdir/${pkgname}"
|
|
cd "$srcdir/${pkgname}-${pkgver}"
|
|
|
|
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>"
|
|
|
|
|
|
sha512sums=('1bc57ba049e05a178ad92787615187c04b0baed414d684f4091bb1bb7105fcac851525ccb260e1ad7ba834689a67cd013147215378c8187455090b7045a61a21'
|
|
SKIP SKIP SKIP SKIP )
|
|
b2sums=('f06a79c381d5e67a107c1e98109fe97850a294125b6afd3b81799e711f4fb02c900e7473e925837025365d773e1fd3d901d5b205c0debd36c5fd81ed4d7adc2e'
|
|
SKIP SKIP SKIP SKIP )
|
|
sha256sums=(SKIP
|
|
4c0ee4c9dc2941d34ebeecf4242c7577e3d193c2a00a9a465a39d42c8266ca6a # dracut-install
|
|
4d6ca5da247a19f290bd8e375c470ef6dc01476288cb8aba71c09c09d23331f5 # dracut-remove
|
|
7365ad289428c7f7dad522ea0a2c9381648912a626bd40237767051468d325ef # 90-dracut-install.hook
|
|
054dac9f1d55029a922ff05c3064e54d25790c7a18d2b598edc58ef3d295cba1) # 60-dracut-remove.hook
|
|
|
|
## e2f0a9b41c7147382756e7b21b44ed56234319bf50155fa094b2440b4fbeffd8 dracut-102-01-x86_64.pkg.tar.lz
|
|
|
|
## f6e4ca981c65af30217e7727bd072a1c3aef4da1b01443831f275c298a1c6e50 dracut-102-01-x86_64.pkg.tar.lz
|