pmaports/main/postmarketos-base-downstream/APKBUILD
Henrik Grimler 43f788fa2f
main/postmarketos-base-downstream: add disable-udev-v4l subpackage (MR 4768)
Which replaces /lib/udev/rules.d/60-persistent-v4l.rules (from the
eudev package) with a symlink to /dev/null.  Around 20 devices need
this to fix a kernel panic with downstream kernel when starting udev.
Issue happens due to that camera firmware is missing and/or not loaded
properly.
2024-01-28 22:15:10 +01:00

37 lines
1 KiB
Text

# Maintainer: Henrik Grimler <henrik@grimler.se>
pkgname=postmarketos-base-downstream
pkgver=2
pkgrel=0
pkgdesc="Base package for devices with downstream (vendor) kernels"
url="https://postmarketos.org"
arch="noarch"
license="GPL-3.0-or-later"
subpackages="
$pkgname-disable-udev-v4l:disable_udev_v4l
$pkgname-lightdm
"
source="10-logind-check-graphical.conf"
package() {
mkdir -p "$pkgdir"
}
disable_udev_v4l() {
# On some devices the kernel panics or hangs when starting
# udev if camera firmware is missing and/or fails to load
pkgdesc="Package to disable udev video4linux rules"
replaces="eudev"
mkdir -p "$subpkgdir"/lib/udev/rules.d
ln -s /dev/null "$subpkgdir"/lib/udev/rules.d/60-persistent-v4l.rules
}
lightdm() {
install_if="$pkgname=$pkgver-r$pkgrel lightdm"
install -Dm644 "$srcdir"/10-logind-check-graphical.conf \
-t "$subpkgdir"/usr/share/lightdm/lightdm.conf.d
}
sha512sums="
00addbea452dd3e2cb90e18793becc47d22118e6b99a79b76eb57db02aa8b00b133569beaea81cce4b39c9e556280c1d6ac8ab687016354e2d189734e38768cf 10-logind-check-graphical.conf
"