aboutsummaryrefslogtreecommitdiffstats
path: root/plymouth
diff options
context:
space:
mode:
Diffstat (limited to 'plymouth')
-rw-r--r--plymouth/README51
-rw-r--r--plymouth/doinst.sh15
-rw-r--r--plymouth/plymouth.SlackBuild131
-rw-r--r--plymouth/plymouth.info10
-rw-r--r--plymouth/slack-desc19
5 files changed, 226 insertions, 0 deletions
diff --git a/plymouth/README b/plymouth/README
new file mode 100644
index 0000000..5dc8ef4
--- /dev/null
+++ b/plymouth/README
@@ -0,0 +1,51 @@
+Plymouth provides a flicker-free graphical boot process. It relies on
+kernel mode setting (KMS) to set the native resolution of the display as
+early as possible, then shows a splash screen leading up to the login
+manager.
+
+Installing this package is not enough to get a splash screen. Plymouth
+runs as a daemon started from the initrd, and Slackware's mkinitrd has
+no hook for it, so the wiring is manual:
+
+ 1. Add "splash" to the kernel command line (and "quiet" for a silent
+ boot). With GRUB, edit GRUB_CMDLINE_LINUX_DEFAULT in
+ /etc/default/grub and run grub-mkconfig -o /boot/grub/grub.cfg
+
+ 2. Copy plymouthd, the plymouth client, the renderers in
+ /usr/lib*/plymouth/renderers, the theme directory, /etc/plymouth,
+ and every library they link against into the initrd, then start
+ plymouthd from /init before the root filesystem is mounted.
+ Upstream ships /usr/libexec/plymouth/plymouth-populate-initrd, but
+ it assumes a dracut or initramfs-tools layout and needs adapting.
+
+ 3. Nothing tears the splash down without systemd. Call
+ "plymouth quit --retain-splash" before the display manager starts,
+ or "plymouth quit" at the end of /etc/rc.d/rc.M for a console boot.
+
+On UEFI systems Plymouth uses the SimpleDRM driver by default to draw on
+the EFI framebuffer, so the GPU driver need not be in the initrd.
+Pass plymouth.use-simpledrm=0 to disable that. Note that with SimpleDRM
+secondary monitors stay dark during boot, which matters if an encryption
+passphrase prompt could land on one.
+
+Boot messages are shown by pressing Esc during boot, and are logged to
+/var/log/boot.log. Add plymouth.nolog to disable logging and console
+redirection, or plymouth.debug to write debug output to
+/var/log/plymouth-debug.log. If Plymouth prevents a successful boot,
+disable it with plymouth.enable=0 on the kernel command line.
+
+The theme is set in /etc/plymouth/plymouthd.conf, which this package
+installs empty for administrator overrides. Distribution defaults are in
+/usr/share/plymouth/plymouthd.defaults and select the "spinner" theme.
+Ten themes are shipped; list them with "plymouth-set-default-theme -l".
+The "bgrt" theme reuses the vendor logo the UEFI firmware already
+painted, if the firmware provides one.
+
+To preview the configured theme from a console without rebooting:
+
+ plymouthd; plymouth --show-splash; sleep 5; plymouth --quit
+
+Keep that as one chained command, the sleep is what returns control.
+
+The initrd must be repopulated after every kernel update, and after any
+theme change.
diff --git a/plymouth/doinst.sh b/plymouth/doinst.sh
new file mode 100644
index 0000000..02db71b
--- /dev/null
+++ b/plymouth/doinst.sh
@@ -0,0 +1,15 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/plymouth/plymouthd.conf.new
+config etc/logrotate.d/bootlog.new
diff --git a/plymouth/plymouth.SlackBuild b/plymouth/plymouth.SlackBuild
new file mode 100644
index 0000000..a4cc813
--- /dev/null
+++ b/plymouth/plymouth.SlackBuild
@@ -0,0 +1,131 @@
+#!/bin/bash
+
+# Slackware build script for plymouth
+
+# Copyright 2026 Danilo M. <danix@danix.xyz>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=plymouth
+VERSION=${VERSION:-26.134.222}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Upstream derives the version from the source directory name, so the
+# extracted tree must stay named plymouth-$VERSION.
+
+# systemd-integration defaults to true and pulls in a systemd pkg-config
+# dependency plus systemd-tty-ask-password-agent, so it has to be turned off.
+# Likewise release-file defaults to /etc/system-release, which does not exist
+# on Slackware. tracing enables verbose debug spew, docs needs xmlto/docbook.
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson setup .. \
+ --buildtype=release \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Dstrip=true \
+ -Ddocs=false \
+ -Dsystemd-integration=false \
+ -Dtracing=false \
+ -Dbackground-color=0x000000 \
+ -Drelease-file=/etc/slackware-version
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
+
+# Don't clobber the admin's configuration on upgrade.
+mv $PKG/etc/plymouth/plymouthd.conf $PKG/etc/plymouth/plymouthd.conf.new
+mv $PKG/etc/logrotate.d/bootlog $PKG/etc/logrotate.d/bootlog.new
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING README.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/plymouth/plymouth.info b/plymouth/plymouth.info
new file mode 100644
index 0000000..8f8beef
--- /dev/null
+++ b/plymouth/plymouth.info
@@ -0,0 +1,10 @@
+PRGNAM="plymouth"
+VERSION="26.134.222"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/Plymouth/"
+DOWNLOAD="https://www.freedesktop.org/software/plymouth/releases/plymouth-26.134.222.tar.xz"
+MD5SUM="4b3af5529def5e3b1c986cb321c82f22"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="danix"
+EMAIL="danix@danix.xyz"
diff --git a/plymouth/slack-desc b/plymouth/slack-desc
new file mode 100644
index 0000000..986ded9
--- /dev/null
+++ b/plymouth/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+plymouth: plymouth (graphical boot splash)
+plymouth:
+plymouth: Plymouth provides a flicker-free graphical boot process. It relies
+plymouth: on kernel mode setting (KMS) to set the native resolution of the
+plymouth: display as early as possible, then shows a splash screen leading up
+plymouth: to the login manager. Boot messages remain available by pressing the
+plymouth: Esc key during boot.
+plymouth:
+plymouth: Homepage: https://www.freedesktop.org/wiki/Software/Plymouth/
+plymouth:
+plymouth: