From 223b9a823396998e2b5c3fc01e933d8f7c7cf662 Mon Sep 17 00:00:00 2001 From: Arjan Bouter Date: Mon, 24 Dec 2007 09:36:21 +0100 Subject: splashy: new spell, userspace bootsplash app --- display/splashy/DEPENDS | 4 ++++ display/splashy/DETAILS | 28 +++++++++++++++++++++++++ display/splashy/HISTORY | 3 +++ display/splashy/PRE_BUILD | 3 +++ display/splashy/TRIGGERS | 1 + display/splashy/WIP | 1 + display/splashy/init.d/splashy | 10 +++++++++ display/splashy/init.d/splashy1 | 46 +++++++++++++++++++++++++++++++++++++++++ display/splashy/init.d/splashy2 | 43 ++++++++++++++++++++++++++++++++++++++ display/splashy/init.d/splashy3 | 40 +++++++++++++++++++++++++++++++++++ display/splashy/init.d/splashy4 | 37 +++++++++++++++++++++++++++++++++ display/splashy/init.d/splashy5 | 34 ++++++++++++++++++++++++++++++ display/splashy/splashy.patch | 11 ++++++++++ 13 files changed, 261 insertions(+) create mode 100755 display/splashy/DEPENDS create mode 100755 display/splashy/DETAILS create mode 100644 display/splashy/HISTORY create mode 100755 display/splashy/PRE_BUILD create mode 100755 display/splashy/TRIGGERS create mode 100644 display/splashy/WIP create mode 100755 display/splashy/init.d/splashy create mode 100755 display/splashy/init.d/splashy1 create mode 100755 display/splashy/init.d/splashy2 create mode 100755 display/splashy/init.d/splashy3 create mode 100755 display/splashy/init.d/splashy4 create mode 100755 display/splashy/init.d/splashy5 create mode 100644 display/splashy/splashy.patch (limited to 'display/splashy') diff --git a/display/splashy/DEPENDS b/display/splashy/DEPENDS new file mode 100755 index 0000000000..ee8f4a2b29 --- /dev/null +++ b/display/splashy/DEPENDS @@ -0,0 +1,4 @@ +depends directfb && +depends glib2 && +optional_depends libpng '' '' 'For PNG image support' && +optional_depends jpeg '' '' 'For JPEG image support' diff --git a/display/splashy/DETAILS b/display/splashy/DETAILS new file mode 100755 index 0000000000..1142c37483 --- /dev/null +++ b/display/splashy/DETAILS @@ -0,0 +1,28 @@ + SPELL=splashy + VERSION=0.3.7 + SOURCE=$SPELL-$VERSION.tar.gz + SOURCE_HASH=sha512:5d87f24de06c5fcafe359bf2462ba84c9bea2d7b30a360761e0b746d2020157f0454b705eadafeab10b8263fc0b2f9c0cad9146081f10b697c2cd6a739e5f734 + SOURCE_URL[0]=http://alioth.debian.org/frs/download.php/2218/${SOURCE} +SOURCE_DIRECTORY=$BUILD_DIRECTORY/${SPELL}-${VERSION} + WEB_SITE=http://splashy.alioth.debian.org/wiki/ + ENTERED=20071210 + LICENSE[0]=GPL + SHORT="Graphical boot" +cat << EOF +Splashy is a next generation boot splashing system for Unix-like systems. +Unlike other splashing systems, it needs no patches to the kernel. + +INSTRUCTIONS: +1. Install Splashy as you normally would (see INSTALL) + +2. Add "splash vga=791 quiet" to the append= line on your bootloader configuration + NOTE: For Grub, this is /boot/grub/menu.lst + For lilo you need "vga=791" in its own line before the kernel stanzas, and add + only "quiet splash" to append= + Other bootloaders will use the same options, but they need to be passed + differently. Check your bootloader's manual + +3. Make sure that /etc/init.d/runlevels/%S/splashy is installed. + +4. Reboot and have fun! +EOF diff --git a/display/splashy/HISTORY b/display/splashy/HISTORY new file mode 100644 index 0000000000..34f3358d65 --- /dev/null +++ b/display/splashy/HISTORY @@ -0,0 +1,3 @@ +2007-12-10 Arjan Bouter + * DETAILS, DEPENDS, PRE_BUILD, + init.d/splashy, HISTORY: created spell diff --git a/display/splashy/PRE_BUILD b/display/splashy/PRE_BUILD new file mode 100755 index 0000000000..9f192f1477 --- /dev/null +++ b/display/splashy/PRE_BUILD @@ -0,0 +1,3 @@ +default_pre_build && +cd $SOURCE_DIRECTORY && +patch -p1 < ${SCRIPT_DIRECTORY}/splashy.patch diff --git a/display/splashy/TRIGGERS b/display/splashy/TRIGGERS new file mode 100755 index 0000000000..9e4f164ac6 --- /dev/null +++ b/display/splashy/TRIGGERS @@ -0,0 +1 @@ +on_cast directfb cast_self diff --git a/display/splashy/WIP b/display/splashy/WIP new file mode 100644 index 0000000000..ebd4dcbc77 --- /dev/null +++ b/display/splashy/WIP @@ -0,0 +1 @@ +This spell builds, but the init scripts need more work. diff --git a/display/splashy/init.d/splashy b/display/splashy/init.d/splashy new file mode 100755 index 0000000000..23a5fbe1c7 --- /dev/null +++ b/display/splashy/init.d/splashy @@ -0,0 +1,10 @@ +#!/bin/sh + +#grep -q -e '[[:space:]]splash\([[:space:]]\|$\)' /proc/cmdline || exit 1 + +PROGRAM=/usr/sbin/splashy +ARGS=boot +RUNLEVEL=S +NEEDS="+local_fs" + +. /etc/init.d/smgl_init diff --git a/display/splashy/init.d/splashy1 b/display/splashy/init.d/splashy1 new file mode 100755 index 0000000000..dce8159b09 --- /dev/null +++ b/display/splashy/init.d/splashy1 @@ -0,0 +1,46 @@ +#!/bin/sh + +PROGRAM=/bin/false +RUNLEVEL=1 +NEEDS="+local_fs" + +. /etc/init.d/smgl_init +. /etc/sysconfig/init + +MAX_LEVEL=$DEFAULT_RUNLEVEL + +case "$MAX_LEVEL" in + 1) + SPLASHY_PROGRESS=100 + ;; + 2) + SPLASHY_PROGRESS=50 + ;; + 3) + SPLASHY_PROGRESS=33 + ;; + 4) + SPLASHY_PROGRESS=25 + ;; + 5) + SPLASHY_PROGRESS=20 + ;; + *) + echo "Unknown default runlevel" + exit 1 +esac + +start() +{ + /usr/sbin/splashy_update "progress $SPLASHY_PROGRESS" +} + +stop() +{ + true +} + +restart() +{ + true +} diff --git a/display/splashy/init.d/splashy2 b/display/splashy/init.d/splashy2 new file mode 100755 index 0000000000..1e4aa3070a --- /dev/null +++ b/display/splashy/init.d/splashy2 @@ -0,0 +1,43 @@ +#!/bin/sh + +PROGRAM=/bin/false +RUNLEVEL=2 +NEEDS="+local_fs" + +. /etc/init.d/smgl_init +. /etc/sysconfig/init + +MAX_LEVEL=$DEFAULT_RUNLEVEL + +case "$MAX_LEVEL" in + 2) + SPLASHY_PROGRESS=100 + ;; + 3) + SPLASHY_PROGRESS=66 + ;; + 4) + SPLASHY_PROGRESS=50 + ;; + 5) + SPLASHY_PROGRESS=40 + ;; + *) + echo "Unknown default runlevel" + exit 1 +esac + +start() +{ + /usr/sbin/splashy_update "progress $SPLASHY_PROGRESS" +} + +stop() +{ + true +} + +restart() +{ + true +} diff --git a/display/splashy/init.d/splashy3 b/display/splashy/init.d/splashy3 new file mode 100755 index 0000000000..ee5c6da951 --- /dev/null +++ b/display/splashy/init.d/splashy3 @@ -0,0 +1,40 @@ +#!/bin/sh + +PROGRAM=/bin/false +RUNLEVEL=3 +NEEDS="+local_fs" + +. /etc/init.d/smgl_init +. /etc/sysconfig/init + +MAX_LEVEL=$DEFAULT_RUNLEVEL + +case "$MAX_LEVEL" in + 3) + SPLASHY_PROGRESS=100 + ;; + 4) + SPLASHY_PROGRESS=75 + ;; + 5) + SPLASHY_PROGRESS=60 + ;; + *) + echo "Unknown default runlevel" + exit 1 +esac + +start() +{ + /usr/sbin/splashy_update "progress $SPLASHY_PROGRESS" +} + +stop() +{ + true +} + +restart() +{ + true +} diff --git a/display/splashy/init.d/splashy4 b/display/splashy/init.d/splashy4 new file mode 100755 index 0000000000..1ae6dc1efa --- /dev/null +++ b/display/splashy/init.d/splashy4 @@ -0,0 +1,37 @@ +#!/bin/sh + +PROGRAM=/bin/false +RUNLEVEL=4 +NEEDS="+local_fs" + +. /etc/init.d/smgl_init +. /etc/sysconfig/init + +MAX_LEVEL=$DEFAULT_RUNLEVEL + +case "$MAX_LEVEL" in + 4) + SPLASHY_PROGRESS=100 + ;; + 5) + SPLASHY_PROGRESS=80 + ;; + *) + echo "Unknown default runlevel" + exit 1 +esac + +start() +{ + /usr/sbin/splashy_update "progress $SPLASHY_PROGRESS" +} + +stop() +{ + true +} + +restart() +{ + true +} diff --git a/display/splashy/init.d/splashy5 b/display/splashy/init.d/splashy5 new file mode 100755 index 0000000000..ba446ca66f --- /dev/null +++ b/display/splashy/init.d/splashy5 @@ -0,0 +1,34 @@ +#!/bin/sh + +PROGRAM=/bin/false +RUNLEVEL=5 +NEEDS="+local_fs" + +. /etc/init.d/smgl_init +. /etc/sysconfig/init + +MAX_LEVEL=$DEFAULT_RUNLEVEL + +case "$MAX_LEVEL" in + 5) + SPLASHY_PROGRESS=100 + ;; + *) + echo "Unknown default runlevel" + exit 1 +esac + +start() +{ + /usr/sbin/splashy_update "progress $SPLASHY_PROGRESS" +} + +stop() +{ + true +} + +restart() +{ + true +} diff --git a/display/splashy/splashy.patch b/display/splashy/splashy.patch new file mode 100644 index 0000000000..a2cd1ac2ba --- /dev/null +++ b/display/splashy/splashy.patch @@ -0,0 +1,11 @@ +diff -Naur splashy-0.3.7/scripts/Makefile.in splashy-fixed/scripts/Makefile.in +--- splashy-0.3.7/scripts/Makefile.in 2007-12-08 23:50:17.000000000 +0100 ++++ splashy-fixed/scripts/Makefile.in 2007-12-10 02:00:56.000000000 +0100 +@@ -195,7 +195,6 @@ + # This will canonically be installed in /etc + nobase_sysconf_DATA = \ + console-tools/config.d/splashy \ +- init.d/splashy \ + default/splashy + + -- cgit v1.2.3