]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
plymouth: Import of package.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Apr 2012 15:16:17 +0000 (17:16 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Apr 2012 15:16:17 +0000 (17:16 +0200)
This adds a nice bootscreen to the IPFire system.

plymouth/boot-duration [new file with mode: 0644]
plymouth/patches/plymouth-0.8.0-everything-is-better-in-red.patch [new file with mode: 0644]
plymouth/patches/plymouth-no-gtk.patch [new file with mode: 0644]
plymouth/plymouth-update-initrd [new file with mode: 0644]
plymouth/plymouth.nm [new file with mode: 0644]

diff --git a/plymouth/boot-duration b/plymouth/boot-duration
new file mode 100644 (file)
index 0000000..7fe728c
--- /dev/null
@@ -0,0 +1,39 @@
+0.222:RCkernelparam
+0.223:RChostname
+0.238:RCmountfs
+0.275:RCswap
+0.330:microcode_ctl
+0.357:cpuspeed
+0.365:ip6tables
+0.380:iptables
+0.385:isdn
+0.504:auditd
+0.508:restorecond
+0.523:rsyslog
+0.530:irqbalance
+0.533:rpcbind
+0.549:nfslock
+0.561:mdmonitor
+0.563:rpcidmapd
+0.578:rpcgssd
+0.579:messagebus
+0.580:fuse
+0.594:netfs
+0.600:acpid
+0.611:haldaemon
+0.660:pcscd
+0.691:udev-post
+0.703:portreserve
+0.712:setroubleshoot
+0.749:bluetooth
+0.738:sshd
+0.763:ntpd
+0.807:sendmail
+0.876:crond
+0.902:kerneloops
+0.907:smolt
+0.915:atd
+0.927:avahi-daemon
+0.941:cups
+0.983:anacron
+0.992:local
diff --git a/plymouth/patches/plymouth-0.8.0-everything-is-better-in-red.patch b/plymouth/patches/plymouth-0.8.0-everything-is-better-in-red.patch
new file mode 100644 (file)
index 0000000..57635cd
--- /dev/null
@@ -0,0 +1,16 @@
+diff -up plymouth-0.8.0/src/plugins/splash/text/plugin.c.red plymouth-0.8.0/src/plugins/splash/text/plugin.c
+--- plymouth-0.8.0/src/plugins/splash/text/plugin.c.red        2009-11-19 14:40:24.000000000 -0500
++++ plymouth-0.8.0/src/plugins/splash/text/plugin.c    2009-11-19 14:41:40.000000000 -0500
+@@ -184,10 +184,10 @@ view_start_animation (view_t *view)
+                                     0xffffff);
+   ply_terminal_set_color_hex_value (terminal,
+                                     PLY_TERMINAL_COLOR_BLUE,
+-                                    0x0073B3);
++                                    0x880400);
+   ply_terminal_set_color_hex_value (terminal,
+                                     PLY_TERMINAL_COLOR_BROWN,
+-                                    0x00457E);
++                                    0x880400);
+   ply_text_display_set_background_color (view->display,
+                                          PLY_TERMINAL_COLOR_BLACK);
diff --git a/plymouth/patches/plymouth-no-gtk.patch b/plymouth/patches/plymouth-no-gtk.patch
new file mode 100644 (file)
index 0000000..e9bf703
--- /dev/null
@@ -0,0 +1,32 @@
+diff -Nur plymouth-0.8.4.orig/configure.ac plymouth-0.8.4/configure.ac
+--- plymouth-0.8.4.orig/configure.ac   2011-03-31 02:45:20.000000000 +0000
++++ plymouth-0.8.4/configure.ac        2011-11-04 10:12:55.436686905 +0000
+@@ -52,10 +52,6 @@
+   AC_SUBST(PANGO_LIBS)
+ fi
+-PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.12.0 ])
+-AC_SUBST(GTK_CFLAGS)
+-AC_SUBST(GTK_LIBS)
+-
+ AC_ARG_ENABLE(libdrm_intel, AS_HELP_STRING([--enable-libdrm_intel],[enable building with libdrm_intel support]),enable_libdrm_intel=$enableval,enable_libdrm_intel=yes)
+ AM_CONDITIONAL(ENABLE_LIBDRM_INTEL,  [test "$enable_libdrm_intel" = yes])
+diff -Nur plymouth-0.8.4.orig/src/Makefile.am plymouth-0.8.4/src/Makefile.am
+--- plymouth-0.8.4.orig/src/Makefile.am        2011-03-31 02:48:57.000000000 +0000
++++ plymouth-0.8.4/src/Makefile.am     2011-11-04 10:13:42.687191109 +0000
+@@ -1,4 +1,4 @@
+-SUBDIRS = libply libply-splash-core libply-splash-graphics . plugins client viewer tests
++SUBDIRS = libply libply-splash-core libply-splash-graphics . plugins client tests
+ if ENABLE_UPSTART_MONITORING
+ SUBDIRS += upstart-bridge
+ endif
+diff -Nur plymouth-0.8.4.orig/src/plugins/renderers/Makefile.am plymouth-0.8.4/src/plugins/renderers/Makefile.am
+--- plymouth-0.8.4.orig/src/plugins/renderers/Makefile.am      2011-02-01 19:22:26.000000000 +0000
++++ plymouth-0.8.4/src/plugins/renderers/Makefile.am   2011-11-04 10:14:15.185225691 +0000
+@@ -1,3 +1,3 @@
+-SUBDIRS = frame-buffer x11 drm
++SUBDIRS = frame-buffer drm
+ MAINTAINERCLEANFILES = Makefile.in
+
diff --git a/plymouth/plymouth-update-initrd b/plymouth/plymouth-update-initrd
new file mode 100644 (file)
index 0000000..c07b561
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+/sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install $(uname -r)
diff --git a/plymouth/plymouth.nm b/plymouth/plymouth.nm
new file mode 100644 (file)
index 0000000..7d77e6f
--- /dev/null
@@ -0,0 +1,306 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = plymouth
+version    = 0.8.4
+release    = 1
+
+groups     = System/Base
+url        = http://www.freedesktop.org/wiki/Software/Plymouth
+license    = GPLv2+
+summary    = Graphical Boot Animation and Logger.
+
+description
+       Plymouth provides an attractive graphical boot animation in
+       place of the text messages that normally get shown. Text
+       messages are instead redirected to a log file for viewing
+       after boot.
+end
+
+source_dl  = http://www.freedesktop.org/software/plymouth/releases/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               autoconf
+               automake
+               cairo-devel
+               glib2-devel
+               pkgconfig(libdrm)
+               pkgconfig(libdrm_intel)
+               pkgconfig(libdrm_radeon)
+               pkgconfig(libdrm_nouveau)
+               libpng-devel
+               pango-devel
+       end
+
+       CFLAGS += -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
+
+       configure_options += \
+               --libexecdir=/usr/lib \
+               --enable-tracing \
+               --disable-tests \
+               --with-logo=%{datadir}/pixmaps/system-logo-white.png \
+               --with-background-start-color-stop=0x880400 \
+               --with-background-end-color-stop=0x000000 \
+               --with-background-color=0x880400 \
+               --disable-gdm-transition \
+               --enable-systemd-integration \
+               --without-system-root-install \
+               --without-rhgb-compat-link \
+               --without-log-viewer
+
+       prepare_cmds
+               autoreconf -vfi
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}%{datadir}/plymouth
+               mkdir -pv %{BUILDROOT}%{localstatedir}/lib/plymouth
+               cp -vf %{DIR_SOURCE}/boot-duration \
+                       %{BUILDROOT}%{datadir}/plymouth/default-boot-duration
+               cp -vf %{DIR_SOURCE}/boot-duration \
+                       %{BUILDROOT}%{localstatedir}/lib/plymouth
+
+               # Override plymouth-update-initrd to work dracut or mkinitrd
+               cp -vf %{DIR_SOURCE}/plymouth-update-initrd \
+                       %{BUILDROOT}/usr/lib/plymouth/plymouth-update-initrd
+               chmod 755 %{BUILDROOT}/usr/lib/plymouth/plymouth-update-initrd
+       end
+end
+
+packages
+       package %{name}
+               groups += Base
+
+               prerequires
+                       coreutils
+               end
+
+               requires
+                       %{name}-libs = %{thisver}
+                       %{name}-scripts = %{thisver}
+                       %{name}-system-theme = %{thisver}
+                       initscripts
+               end
+
+               configfiles
+                       /etc/plymouth/plymouthd.conf
+               end
+
+               script postin
+                       if [ ! -f "%{localstatedir}/lib/plymouth/boot-duration" ]; then
+                               cp -f %{datadir}/plymouth/default-boot-duration \
+                                       %{localstatedir}/lib/plymouth/boot-duration
+                       fi
+               end
+
+               script posttransin
+                       /usr/lib/plymouth/plymouth-generate-initrd >/dev/null 2>&1
+               end
+
+               script postun
+                       rm -f /boot/initrd-plymouth.img
+               end
+       end
+
+       package %{name}-libs
+               template LIBS
+       end
+
+       package %{name}-devel
+               template DEVEL
+
+               requires = plymouth-libs = %{thisver}
+       end
+
+       package %{name}-scripts
+               summary = Plymouth related scripts.
+               descrtiption
+                       This package contains scripts that help to integrate
+                       Plymouth with the system.
+               end
+
+               prerequires = /usr/bin/plymouth
+
+               requires
+                       plymouth = %{thisver}
+                       coreutils
+                       cpio
+                       dracut
+                       findutils
+                       grubby
+                       gzip
+               end
+
+               files
+                       %{sbindir}/plymouth-set-default-theme
+                       %{sbindir}/plymouth-set-default-plugin
+                       /usr/lib/plymouth/plymouth-update-initrd
+                       /usr/lib/plymouth/plymouth-generate-initrd
+                       /usr/lib/plymouth/plymouth-populate-initrd
+               end
+       end
+
+       package %{name}-plugin-label
+               summary = Plymouth label plugin.
+               description
+                       This package contains the label plugin for Plymouth.
+                       It provides the ability to render text on graphical boot
+                       splashes using pango and cairo.
+               end
+
+               files
+                       %{libdir}/plymouth/label.so
+               end
+       end
+
+       package %{name}-plugin-fade-throbber
+               summary = Plymouth fade-throbber plugin.
+               description
+                       The package contains the fade-throbber plugin for Plymouth.
+                       It features a centered image that fades in and out while
+                       other images pulsate around during system boot up.
+               end
+
+               requires
+                       %{name}-plugin-label
+               end
+
+               files
+                       %{libdir}/plymouth/fade-throbber.so
+               end
+       end
+
+       package %{name}-plugin-throbgress
+               summary = Plymouth throbgress plugin.
+               description
+                       This package contains the throbgress plugin for Plymouth.
+                       It features a centered logo and animated spinner that spins
+                       repeatedly while a progress bar advances at the bootom of the
+                       screen.
+               end
+
+               requires
+                       %{name}-plugin-label
+               end
+
+               files
+                       %{libdir}/plymouth/throbgress.so
+               end
+       end
+
+       package %{name}-plugin-space-flares
+               summary = Plymouth space-flares plugin.
+               description
+                       This package contains the space-flares plugin for Plymouth.
+                       It features a corner image with animated flares.
+               end
+
+               requires
+                       %{name}-plugin-label
+               end
+
+               files
+                       %{libdir}/plymouth/space-flares.so
+               end
+       end
+
+       package %{name}-plugin-two-step
+               summary = Plymouth two-step plugin.
+               description
+                       This package contains the two-step plugin for Plymouth.
+                       It features a corner image with animated flares.
+               end
+
+               requires
+                       %{name}-plugin-label
+               end
+
+               files
+                       %{libdir}/plymouth/two-step.so
+               end
+       end
+
+       package %{name}-plugin-script
+               files
+                       %{libdir}/plymouth/script.so
+               end
+       end
+
+       template THEME
+               summary = The plymouth "%{theme_name}" theme.
+               description
+                       This package contains the "%{theme_name}" boot
+                       splash theme for plymouth.
+               end
+
+               requires
+                       %{name}-scripts = %{thisver}
+               end
+
+               files
+                       %{datadir}/plymouth/themes/%{theme_name}
+               end
+
+               script postun
+                       if [ "$(%{sbindir}/plymouth-set-default-theme)" = %{theme_name}" ]; then
+                               %{sbindir}/plymouth-set-default-theme --reset
+                               /usr/lib/plymouth/plymouth-generate-initrd
+                       fi
+               end
+       end
+
+       package %{name}-theme-fade-in
+               template THEME
+               theme_name = fade-in
+
+               requires += %{name}-plugin-fade-throbber=%{thisver}
+       end
+
+       package %{name}-theme-spinner
+               template THEME
+               theme_name = spinner
+
+               requires += %{name}-plugin-two-step=%{thisver}
+       end
+
+       package %{name}-theme-spinfinity
+               template THEME
+               theme_name = spinfinity
+
+               requires += %{name}-plugin-throbgress=%{thisver}
+       end
+
+       package %{name}-theme-script
+               template THEME
+               theme_name = script
+
+               requires += %{name}-plugin-script=%{thisver}
+       end
+
+       package %{name}-theme-solar
+               template THEME
+               theme_name = solar
+
+               requires += %{name}-plugin-space-flares=%{thisver}
+       end
+
+       package %{name}-system-theme
+               summary = Plymouth default theme.
+               description
+                       This metapackage tracks the current distribution default theme.
+               end
+
+               groups += Base
+
+               requires
+                       system-logos
+               end
+
+               # Don't package any files.
+               files =
+       end
+end