2024-07-08 10:13:45 +00:00
|
|
|
# Maintainer: Caleb Connolly <caleb@postmarketos.org>
|
2023-02-17 22:29:10 +00:00
|
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
|
|
pkgname=postmarketos-initramfs
|
2024-07-08 10:13:45 +00:00
|
|
|
pkgver=3.3.1
|
2024-04-19 13:29:48 +00:00
|
|
|
pkgrel=0
|
2023-02-17 22:29:10 +00:00
|
|
|
pkgdesc="Base files for the postmarketOS initramfs / initramfs-extra"
|
|
|
|
url="https://postmarketos.org"
|
2022-06-12 22:28:36 +00:00
|
|
|
options="!check" # no tests
|
2024-06-19 08:11:42 +00:00
|
|
|
provides="postmarketos-ramdisk=$pkgver-r$pkgrel"
|
2024-04-24 22:13:38 +00:00
|
|
|
provider_priority=10
|
2023-02-17 22:29:10 +00:00
|
|
|
depends="
|
2023-10-16 23:02:01 +00:00
|
|
|
blkid
|
2023-02-17 22:29:10 +00:00
|
|
|
btrfs-progs
|
2024-04-19 13:29:48 +00:00
|
|
|
buffyboard
|
2023-05-29 12:51:47 +00:00
|
|
|
busybox-extras
|
2023-02-17 22:29:10 +00:00
|
|
|
bzip2
|
|
|
|
cryptsetup
|
|
|
|
device-mapper
|
2023-06-09 17:34:23 +00:00
|
|
|
devicepkg-utils>=0.2.0
|
2024-06-19 17:55:20 +00:00
|
|
|
dosfstools
|
2023-02-17 22:29:10 +00:00
|
|
|
e2fsprogs
|
|
|
|
e2fsprogs-extra
|
|
|
|
f2fs-tools
|
2024-04-19 13:29:48 +00:00
|
|
|
font-terminus
|
2024-04-10 01:28:08 +00:00
|
|
|
iskey
|
2024-04-28 14:20:14 +00:00
|
|
|
kmod
|
2024-06-18 21:23:29 +00:00
|
|
|
libinput-libs
|
2023-02-17 22:29:10 +00:00
|
|
|
lz4
|
|
|
|
multipath-tools
|
|
|
|
parted
|
|
|
|
postmarketos-fde-unlocker
|
2023-06-09 17:34:23 +00:00
|
|
|
postmarketos-mkinitfs>=2.2
|
2024-04-28 14:20:14 +00:00
|
|
|
udev
|
2023-02-17 22:29:10 +00:00
|
|
|
unudhcpd
|
2022-06-12 22:28:36 +00:00
|
|
|
util-linux-misc
|
2023-02-17 22:29:10 +00:00
|
|
|
xz
|
|
|
|
"
|
|
|
|
source="
|
|
|
|
00-default.modules
|
|
|
|
00-initramfs-base.dirs
|
|
|
|
00-initramfs-base.files
|
|
|
|
00-initramfs-extra-base.files
|
|
|
|
init.sh
|
|
|
|
init_functions.sh
|
2023-01-24 17:46:58 +00:00
|
|
|
unudhcpd.conf
|
2023-02-17 22:29:10 +00:00
|
|
|
"
|
|
|
|
arch="noarch"
|
|
|
|
license="GPL-2.0-or-later"
|
|
|
|
|
2023-12-18 22:48:14 +00:00
|
|
|
build() {
|
|
|
|
mkdir -p "$builddir"
|
|
|
|
|
|
|
|
# Replace <<INITRAMFS_PKG_VERSION>> with the actual version
|
|
|
|
sed "s|<<INITRAMFS_PKG_VERSION>>|$pkgver-r$pkgrel|" \
|
|
|
|
"$srcdir/init.sh" > "$builddir/init.sh"
|
|
|
|
}
|
|
|
|
|
2023-02-17 22:29:10 +00:00
|
|
|
package() {
|
2023-01-24 17:46:58 +00:00
|
|
|
install -Dm644 "$srcdir/unudhcpd.conf" \
|
|
|
|
"$pkgdir/etc/unudhcpd.conf"
|
|
|
|
|
2023-02-17 22:29:10 +00:00
|
|
|
install -Dm644 "$srcdir/init_functions.sh" \
|
2023-08-23 22:31:15 +00:00
|
|
|
"$pkgdir/usr/share/initramfs/init_functions.sh"
|
2023-02-17 22:29:10 +00:00
|
|
|
|
2023-12-18 22:48:14 +00:00
|
|
|
install -Dm755 "$builddir/init.sh" \
|
2023-08-23 22:31:15 +00:00
|
|
|
"$pkgdir/usr/share/initramfs/init.sh"
|
2023-02-17 22:29:10 +00:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/00-initramfs-base.dirs \
|
|
|
|
-t "$pkgdir"/usr/share/mkinitfs/dirs/
|
|
|
|
mkdir -p "$pkgdir"/etc/mkinitfs/dirs
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/00-default.modules \
|
|
|
|
-t "$pkgdir"/usr/share/mkinitfs/modules/
|
|
|
|
mkdir -p "$pkgdir"/etc/mkinitfs/modules
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/00-initramfs-base.files \
|
|
|
|
-t "$pkgdir"/usr/share/mkinitfs/files/
|
|
|
|
mkdir -p "$pkgdir"/etc/mkinitfs/files
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/00-initramfs-extra-base.files \
|
|
|
|
-t "$pkgdir"/usr/share/mkinitfs/files-extra/
|
|
|
|
mkdir -p "$pkgdir"/etc/mkinitfs/files-extra
|
|
|
|
|
|
|
|
mkdir -p "$pkgdir"/usr/share/mkinitfs/hooks
|
|
|
|
mkdir -p "$pkgdir"/usr/share/mkinitfs/hooks-extra
|
|
|
|
mkdir -p "$pkgdir"/etc/mkinitfs/hooks
|
|
|
|
mkdir -p "$pkgdir"/etc/mkinitfs/hooks-extra
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-04-19 13:29:48 +00:00
|
|
|
20bc7a21f4f59548b8179c5cb1fc2b3db64eb355988bce992db3bc4075d65b4135ff9dd7d754215d0402978811494449cce476a26cda6bb2f0f8b53ae8e36bd7 00-default.modules
|
2024-06-02 11:18:43 +00:00
|
|
|
9c0e8f6f61d5da191e03a1aa9d5d0ceb5baf1eae6dbb9bfb0af59817783525119ac8394b135f303f7b6434a3eab0b49185fb90379e06823db847a4999c75ce33 00-initramfs-base.dirs
|
2024-04-19 13:29:48 +00:00
|
|
|
929a8e6cca6b2b4ac6af89fc3912e80315f51c9bf6e9479124ccb7ebe9e99c6c1cafb98d3aa01b0a76a2f6e0071ba3eb86c7a2169a15c2e1788d69458bea3471 00-initramfs-base.files
|
2024-06-19 17:55:20 +00:00
|
|
|
f0f00a35f06b7d0a46c67df753ecef880ac92a725a8301649068069d2d477ae3278b3c548ea3f378b4c23eafb39551f5e3ca6a63478486d50a298132140b5b69 00-initramfs-extra-base.files
|
2024-07-08 10:13:45 +00:00
|
|
|
7ea2c318e3b63b84ba8eb09e31dd74cdd9c86f5f4d8970ab54bb9213930e913c09728b60d429828007ea2dbb0472fd50dc3daae2efbe307babf854e4d8ecb238 init.sh
|
2024-06-19 17:55:20 +00:00
|
|
|
aa9591e2c35577bc3c1e9bafa7904b3dff97c42992a763113fff20754e82d521cc690733a1606d6808d556b5a271b5ad8fdc0d2aa475fcb3921433dca0ce178b init_functions.sh
|
2023-01-24 17:46:58 +00:00
|
|
|
ba3275a9af788c7c782322a22a0f144d5e50e3498ea6886486a29331f23ae89cd32d500a3635cfa7cab369afba92edc18aeca64ccbf0cd589061cce23d15b46c unudhcpd.conf
|
2023-02-17 22:29:10 +00:00
|
|
|
"
|