Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "Plymouth is a project from Fedora providing a flicker-free graphical boot process." |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 2 | DESCRIPTION = "Plymouth is an application that runs very early in the boot process \ |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame^] | 3 | (even before the root filesystem is mounted!) that provides a \ |
| 4 | graphical boot animation while the boot process happens in the background." |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 5 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/Plymouth" |
| 6 | SECTION = "base" |
| 7 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 8 | LICENSE = "GPL-2.0-or-later" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 10 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 11 | SRC_URI = " \ |
| 12 | http://www.freedesktop.org/software/plymouth/releases/${BPN}-${PV}.tar.xz \ |
| 13 | file://0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch \ |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 14 | file://0001-plymouth-start-service-in-add-related-kernel-paramet.patch \ |
| 15 | file://0001-plymouth-Add-the-retain-splash-option.patch \ |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame^] | 16 | file://0001-Use-standard-runstatedir-vs-custom-flag.patch \ |
| 17 | file://0001-Fix-daemon-install-ignoring-configured-runstatedir.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 18 | " |
| 19 | |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame^] | 20 | SRC_URI[sha256sum] = "100551442221033ce868c447ad6c74d831d209c18ae232b98ae0207e34eadaeb" |
| 21 | |
| 22 | LOGO ??= "${datadir}/plymouth/bizcom.png" |
| 23 | RUNSTATEDIR ??= "${localstatedir}/run" |
| 24 | |
| 25 | EXTRA_OECONF = "--runstatedir=${RUNSTATEDIR}" |
| 26 | |
| 27 | PACKAGECONFIG ??= "initrd logo pango udev ${@bb.utils.filter('DISTRO_FEATURES', 'systemd usrmerge', d)}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | PACKAGECONFIG:append:x86 = " drm" |
| 29 | PACKAGECONFIG:append:x86-64 = " drm" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 30 | |
| 31 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame^] | 32 | PACKAGECONFIG[documentation] = "--enable-documentation,--disable-documentation" |
| 33 | PACKAGECONFIG[initrd] = ",," |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 34 | PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame^] | 35 | PACKAGECONFIG[logo] = "--with-logo=${LOGO},--without-logo" |
| 36 | PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango" |
| 37 | PACKAGECONFIG[systemd] = "--enable-systemd-integration --with-systemd-tty-ask-password-agent=${base_bindir}/systemd-tty-ask-password-agent,--disable-systemd-integration,systemd" |
| 38 | PACKAGECONFIG[udev] = "--with-udev,--without-udev,udev" |
| 39 | PACKAGECONFIG[upstart-monitoring] = "--enable-upstart-monitoring,--disable-upstart-monitoring,ncurses dbus" |
| 40 | PACKAGECONFIG[usrmerge] = "--without-system-root-install,--with-system-root-install" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 41 | |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 42 | inherit autotools pkgconfig systemd gettext |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 43 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 44 | do_install:append() { |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 45 | # Remove /var/run from package as plymouth will populate it on startup |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame^] | 46 | rm -fr ${D}${RUNSTATEDIR} |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 47 | |
| 48 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'initrd', 'true', 'false', d)}; then |
| 49 | rm -rf "${D}${libexecdir}" |
| 50 | fi |
| 51 | } |
| 52 | |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame^] | 53 | PROVIDES = "virtual/psplash" |
| 54 | RPROVIDES:${PN} = "virtual-psplash virtual-psplash-support" |
| 55 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 56 | PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}" |
| 57 | PACKAGES =+ "${PN}-set-default-theme" |
| 58 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 59 | FILES:${PN}-initrd = "${libexecdir}/plymouth/*" |
| 60 | FILES:${PN}-set-default-theme = "${sbindir}/plymouth-set-default-theme" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 61 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 62 | FILES:${PN} += "${systemd_unitdir}/system/*" |
| 63 | FILES:${PN}-dbg += "${libdir}/plymouth/renderers/.debug" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 64 | |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame^] | 65 | DEPENDS = "libcap libpng" |
| 66 | DEPENDS:append:libc-musl = " musl-rpmatch" |
| 67 | |
| 68 | LDFLAGS:append:libc-musl = " -lrpmatch" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 69 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 70 | RDEPENDS:${PN}-initrd = "bash dracut" |
| 71 | RDEPENDS:${PN}-set-default-theme = "bash" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 72 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 73 | SYSTEMD_SERVICE:${PN} = "plymouth-start.service" |