diff --git a/srcpkgs/plymouth/files/71-plymouth-seat.rules b/srcpkgs/plymouth/files/71-plymouth-seat.rules new file mode 100644 index 00000000000..a49d446f3de --- /dev/null +++ b/srcpkgs/plymouth/files/71-plymouth-seat.rules @@ -0,0 +1,9 @@ +ACTION=="remove", GOTO="seat_end" + +SUBSYSTEM=="graphics", KERNEL=="fb[0-9]*", TAG+="seat", TAG+="master-of-seat" +SUBSYSTEM=="drm", KERNEL=="card[0-9]*", TAG+="seat", TAG+="master-of-seat" + +TAG=="seat", ENV{ID_PATH}=="", IMPORT{builtin}="path_id" +TAG=="seat", ENV{ID_FOR_SEAT}=="", ENV{ID_PATH_TAG}!="", ENV{ID_FOR_SEAT}="$env{SUBSYSTEM}-$env{ID_PATH_TAG}" + +LABEL="seat_end" diff --git a/srcpkgs/plymouth/template b/srcpkgs/plymouth/template index cf334245dcf..8071db942de 100644 --- a/srcpkgs/plymouth/template +++ b/srcpkgs/plymouth/template @@ -1,7 +1,7 @@ # Template file for 'plymouth' pkgname=plymouth version=0.9.3 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-system-root-install=no \ --without-rhgb-compat-link --enable-systemd-integration=no \ @@ -25,6 +25,10 @@ case "$XBPS_TARGET_MACHINE" in ;; esac +post_install() { + vinstall ${FILESDIR}/71-plymouth-seat.rules 644 usr/lib/udev/rules.d/ +} + plymouth-devel_package() { short_desc+=" - development files" depends="${makedepends} ${sourcepkg}>=${version}_${revision}"