2023-02-17 22:29:10 +00:00
|
|
|
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
|
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
|
|
pkgname=postmarketos-initramfs
|
2024-06-05 12:34:28 +00:00
|
|
|
pkgver=2.7.1
|
2024-02-07 06:54:42 +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-04-24 22:13:38 +00:00
|
|
|
provides="postmarketos-ramdisk"
|
|
|
|
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
|
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
|
2023-02-17 22:29:10 +00:00
|
|
|
e2fsprogs
|
|
|
|
e2fsprogs-extra
|
|
|
|
f2fs-tools
|
|
|
|
lz4
|
2024-02-07 20:28:37 +00:00
|
|
|
mdev-conf
|
2023-02-17 22:29:10 +00:00
|
|
|
multipath-tools
|
|
|
|
parted
|
|
|
|
postmarketos-fde-unlocker
|
2023-06-09 17:34:23 +00:00
|
|
|
postmarketos-mkinitfs>=2.2
|
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-08-23 21:27:00 +00:00
|
|
|
mdev.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
|
|
|
|
|
2023-08-23 21:27:00 +00:00
|
|
|
install -Dm644 "$srcdir"/mdev.conf \
|
|
|
|
-t "$pkgdir"/usr/share/initramfs/
|
|
|
|
|
2023-02-17 22:29:10 +00:00
|
|
|
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-03-29 17:44:48 +00:00
|
|
|
59be0649ed87a72d93624bd8a2e3f8c99a0f32f7b7a26f99436de782beba55671472c269eeee86440efc87e0d7148a0bb335fa537791092e73878ca21330544a 00-default.modules
|
2024-06-02 11:18:43 +00:00
|
|
|
9c0e8f6f61d5da191e03a1aa9d5d0ceb5baf1eae6dbb9bfb0af59817783525119ac8394b135f303f7b6434a3eab0b49185fb90379e06823db847a4999c75ce33 00-initramfs-base.dirs
|
2023-06-09 17:34:23 +00:00
|
|
|
ab41b45b0613f25a61114ed8c8b92bc53c60838f6e2e0ba18c76e5369b2984e6023a0661887692673aca3f647f268c468a468f6b1ac424cfee609017a89481dd 00-initramfs-base.files
|
2023-08-23 21:30:05 +00:00
|
|
|
8a4adad3785af474b36a09a05f6a3b2c4b4f43aac331a53b903abfa51ea12be1e3d1d807b7a6e66a1346815f3b0044daf8cd62e21e2dc75d2db13ee265a72985 00-initramfs-extra-base.files
|
2024-04-04 14:04:50 +00:00
|
|
|
917a3e995c50d510d242413e76752b75cdd8e673a5e433481a3cbe883d917980cda50996a714d4be24b09ce19196184a487632dfa6d76d74d2cc3ec6513473aa init.sh
|
|
|
|
df53083f74b8824c3e537ddd84cb45a2470a129ba1060efac75661eb2fb86602a942ee4d34c9fb03a07e82a3c87cf37f16e690725e1f667a24c8920fe45042ee init_functions.sh
|
2023-01-24 17:46:58 +00:00
|
|
|
ba3275a9af788c7c782322a22a0f144d5e50e3498ea6886486a29331f23ae89cd32d500a3635cfa7cab369afba92edc18aeca64ccbf0cd589061cce23d15b46c unudhcpd.conf
|
2023-08-23 21:30:05 +00:00
|
|
|
675e7d5bee39b2df7d322117f8dcaccc274d61beaf4d50ead19bbf2109446d64b1c0aa0c5b4f9846eb6c1c403418f28f6364eff4537ba41120fbfcbc484b7da7 mdev.conf
|
2023-02-17 22:29:10 +00:00
|
|
|
"
|