diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-06-19 16:13:36 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-06-19 16:13:36 +0200 |
commit | ec43e6ea15555a22a007916a882f42e81e5128f6 (patch) | |
tree | ed753c32ab4232451de3d2f8671cb180edc9d5c8 /base/splashy | |
parent | 93d786990c08e7fe6ad4dd18848b6ee8344509c1 (diff) | |
download | nutyx-extra-ec43e6ea15555a22a007916a882f42e81e5128f6.tar.gz nutyx-extra-ec43e6ea15555a22a007916a882f42e81e5128f6.tar.bz2 nutyx-extra-ec43e6ea15555a22a007916a882f42e81e5128f6.tar.xz nutyx-extra-ec43e6ea15555a22a007916a882f42e81e5128f6.zip |
Ajout splashy#0.3.13-1
Diffstat (limited to 'base/splashy')
-rw-r--r-- | base/splashy/.footprint | 72 | ||||
-rw-r--r-- | base/splashy/.md5sum | 3 | ||||
-rw-r--r-- | base/splashy/Pkgfile | 31 | ||||
-rw-r--r-- | base/splashy/nutyx-attapu.jpg | bin | 0 -> 51183 bytes | |||
-rwxr-xr-x | base/splashy/splashy | 157 |
5 files changed, 263 insertions, 0 deletions
diff --git a/base/splashy/.footprint b/base/splashy/.footprint new file mode 100644 index 000000000..8a410e647 --- /dev/null +++ b/base/splashy/.footprint @@ -0,0 +1,72 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/console-tools/ +drwxr-xr-x root/root etc/console-tools/config.d/ +-rw-r--r-- root/root etc/console-tools/config.d/splashy +drwxr-xr-x root/root etc/default/ +-rw-r--r-- root/root etc/default/splashy +drwxr-xr-x root/root etc/rc.d/ +drwxr-xr-x root/root etc/rc.d/init.d/ +-rwxr-xr-- root/root etc/rc.d/init.d/splashy +drwxr-xr-x root/root etc/rc.d/rcsysinit.d/ +lrwxrwxrwx root/root etc/rc.d/rcsysinit.d/S00splashy -> ../init.d/splashy +drwxr-xr-x root/root etc/splashy/ +-rw-r--r-- root/root etc/splashy/config.xml +lrwxrwxrwx root/root etc/splashy/themes -> /usr/share/splashy/themes +drwxr-xr-x root/root sbin/ +-rwxr-xr-x root/root sbin/splashy +lrwxrwxrwx root/root sbin/splashy_chvt -> splashy +-rwxr-xr-x root/root sbin/splashy_config +-rwxr-xr-x root/root sbin/splashy_update +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/splashy.h +-rw-r--r-- root/root usr/include/splashycnf.h +drwxr-xr-x root/root usr/lib/ +-rwxr-xr-x root/root usr/lib/libsplashy.la +lrwxrwxrwx root/root usr/lib/libsplashy.so -> libsplashy.so.1.0.0 +lrwxrwxrwx root/root usr/lib/libsplashy.so.1 -> libsplashy.so.1.0.0 +-rwxr-xr-x root/root usr/lib/libsplashy.so.1.0.0 +-rwxr-xr-x root/root usr/lib/libsplashycnf.la +lrwxrwxrwx root/root usr/lib/libsplashycnf.so -> libsplashycnf.so.1.0.0 +lrwxrwxrwx root/root usr/lib/libsplashycnf.so.1 -> libsplashycnf.so.1.0.0 +-rwxr-xr-x root/root usr/lib/libsplashycnf.so.1.0.0 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/splashy.pc +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/initramfs-tools/ +drwxr-xr-x root/root usr/share/initramfs-tools/hooks/ +-rw-r--r-- root/root usr/share/initramfs-tools/hooks/libsplashy +-rw-r--r-- root/root usr/share/initramfs-tools/hooks/splashy +drwxr-xr-x root/root usr/share/initramfs-tools/modules.d/ +-rw-r--r-- root/root usr/share/initramfs-tools/modules.d/splashy +drwxr-xr-x root/root usr/share/initramfs-tools/scripts/ +drwxr-xr-x root/root usr/share/initramfs-tools/scripts/init-bottom/ +-rw-r--r-- root/root usr/share/initramfs-tools/scripts/init-bottom/splashy +drwxr-xr-x root/root usr/share/initramfs-tools/scripts/local-premount/ +-rw-r--r-- root/root usr/share/initramfs-tools/scripts/local-premount/libsplashy +-rw-r--r-- root/root usr/share/initramfs-tools/scripts/local-premount/splashy +drwxr-xr-x root/root usr/share/locale/ +drwxr-xr-x root/root usr/share/locale/fr/ +drwxr-xr-x root/root usr/share/locale/fr/LC_MESSAGES/ +-rw-r--r-- root/root usr/share/locale/fr/LC_MESSAGES/splashy.mo +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/splashy.1.gz +-rw-r--r-- root/root usr/share/man/man1/splashy_config.1.gz +-rw-r--r-- root/root usr/share/man/man1/splashy_update.1.gz +drwxr-xr-x root/root usr/share/man/man5/ +-rw-r--r-- root/root usr/share/man/man5/splashy-config.xml.5.gz +-rw-r--r-- root/root usr/share/man/man5/splashy-theme.xml.5.gz +drwxr-xr-x root/root usr/share/splashy/ +drwxr-xr-x root/root usr/share/splashy/schemas/ +-rw-r--r-- root/root usr/share/splashy/schemas/config.xsd +-rw-r--r-- root/root usr/share/splashy/schemas/theme.xsd +-rw-r--r-- root/root usr/share/splashy/schemas/theme.xsl +drwxr-xr-x root/root usr/share/splashy/themes/ +drwxr-xr-x root/root usr/share/splashy/themes/default/ +-rw-r--r-- root/root usr/share/splashy/themes/default/FreeSans.ttf +-rw-r--r-- root/root usr/share/splashy/themes/default/background.jpg +-rw-r--r-- root/root usr/share/splashy/themes/default/background.png +-rw-r--r-- root/root usr/share/splashy/themes/default/error.png +-rw-r--r-- root/root usr/share/splashy/themes/default/suspend.png +-rw-r--r-- root/root usr/share/splashy/themes/default/theme.xml diff --git a/base/splashy/.md5sum b/base/splashy/.md5sum new file mode 100644 index 000000000..811466af3 --- /dev/null +++ b/base/splashy/.md5sum @@ -0,0 +1,3 @@ +9e3d5d8a8c89d6db10c6b41ec498a566 nutyx-attapu.jpg +a6ba5548cfacc3db268a62c76be61cab splashy +03b7ee4f31c56ee61463772f74bad8a0 splashy-0.3.13.tar.gz diff --git a/base/splashy/Pkgfile b/base/splashy/Pkgfile new file mode 100644 index 000000000..9b36a3f68 --- /dev/null +++ b/base/splashy/Pkgfile @@ -0,0 +1,31 @@ +# Description: Utilitaires pour produire des images lors du boot +# URL: http://splashy.alioth.debian.org/wiki/ +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch + +name=splashy +version=0.3.13 +release=1 +source=(http://alioth.debian.org/frs/download.php/2691/$name-$version.tar.gz\ + splashy nutyx-attapu.jpg) + +build() { + cd $name-$version + ./configure --prefix=/usr \ + --sbindir=/sbin --libdir=/usr/lib \ + --includedir=/usr/include \ + --datarootdir=/usr/share \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install + mkdir -p $PKG/etc/rc.d{,/rcsysinit.d} + mv $PKG/etc/{init.d,rc.d/} + cp ../splashy $PKG/etc/rc.d/init.d/ + chmod 754 $PKG/etc/rc.d/init.d/splashy + ln -s ../init.d/splashy $PKG/etc/rc.d/rcsysinit.d/S00splashy + rm $PKG/etc/lsb-base-logging.sh + cp ../nutyx-attapu.jpg \ + $PKG/usr/share/splashy/themes/default/background.jpg + sed -i "s/background.png/background.jpg/g" \ + $PKG/usr/share/splashy/themes/default/theme.xml +} diff --git a/base/splashy/nutyx-attapu.jpg b/base/splashy/nutyx-attapu.jpg Binary files differnew file mode 100644 index 000000000..52771c4c3 --- /dev/null +++ b/base/splashy/nutyx-attapu.jpg diff --git a/base/splashy/splashy b/base/splashy/splashy new file mode 100755 index 000000000..ef3b986c5 --- /dev/null +++ b/base/splashy/splashy @@ -0,0 +1,157 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: splashy +# Required-Start: mountkernfs +# Required-Stop: $all +# Default-Start: S +# Default-Stop: 0 6 +# Short-Description: A script to calculate the progress percentage for init scripts +# Description: This calculates the progress percentage +# for the scripts in /etc/rcS.d and +# /etc/rc$CURRENT_RUNLEVEL.d. +### END INIT INFO + +# Author: Tim Dijkstra <newsuser@famdijkstra.org>, +# Luis Mondesi <lemsx1@gmail.com> +# Luca Capello <luca@pca.it> +# +# If called in the rc[06].d runlevels with the stop target it will start +# splashy in 'shutdown' mode. In the rcS.d runlevel it will try +# to start splashy if it didn't start yet from initramfs. +# +# When it decides to start splashy it will first calculate the +# progress percentage which will be used by the calls to splashy_update +# in the log_end_msg functions. +# This is really simple. We just count them and put them +# in alpha-numeric order. Their percentage is then just +# int( their number on the list * ( 100 / total number on list) ) +# +# Of course not all packages use log_end_msg yet, but that +# doesn't matter. The packages that do, will trigger the update +# anyway. This may result in big jumps in the percentage. +# The more scripts start using it, the more granular it will become. +# +# +# This script also needs to detect if Splashy is running and if not +# start it. It's assumed that this will only be run while halt/reboot +# and at RUNLEVEL S. +# + +PATH="/sbin:/bin:/usr/sbin:/usr/bin" +NAME="splashy" +DESC="Boot splash manager" +STEPS_DIR="/lib/init/rw/$NAME" +DEBUG=0 + +[ -r "/etc/default/$NAME" ] && . "/etc/default/$NAME" + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +# if [ -r "/lib/lsb/init-functions" ]; then +# . "/lib/lsb/init-functions" +# else +# echo "Could not read file /lib/lsb/init-functions. Please install lsb-base" +# exit 1 +# fi +. /etc/sysconfig/rc +. ${rc_functions} + +set -e + + +[ "$ENABLE" = "1" ] && log_warning_msg "To enable $NAME add 'splash' to the kernel command line. Use of ENABLE in /etc/default/$NAME is deprecated."; + +check_to_enable () { + ENABLE=0 + SINGLE=false + SPLASH=false + FBMODESET=false + + for x in $(cat /proc/cmdline); do + case $x in + single) + SINGLE="true" + ;; + splash) + SPLASH="true" + ;; + nosplash) + SPLASH="false" + ;; + vga=*|video=*) + FBMODESET="true" + ;; + esac + done + [ "$SPLASH" = "true" -a "$FBMODESET" = "true" ] && ENABLE=1 + [ "$SINGLE" = "true" ] && ENABLE=0 + + if [ "$ENABLE" = "0" ]; then + log_warning_msg "To enable $NAME on multiuser runlevel add 'splash' and a valid framebuffer videomode to the kernel command line" + exit 0 + fi +} + +calculate_steps () { + boot_mesg "(Re)generating splash steps" + echo_ok + [ -f /etc/inittab ] && RLVL=`sed -n 's/id:\([2345]\):initdefault:/\1/ p' /etc/inittab` + + [ ! -d $STEPS_DIR ] && mkdir -p $STEPS_DIR + # + # Mount a tmpfs on $STEPS_DIR + # + # on Ubuntu our Steps dir gets umounted if using /dev/shm/splashy + # we will always use /lib/init/rw/splashy and mount a tmpfs there + SHM_OPT= + [ "${SHM_SIZE:=$TMPFS_SIZE}" ] && SHM_OPT="-osize=$SHM_SIZE" + mount -n -t tmpfs shmfs $STEPS_DIR + + TMP=`mktemp -p $STEPS_DIR` + + # While booting rcS will also be executed + # we only care about the scripts that actually call log_end_msg + # if not we could end up never completing our progressbar! + grep -l "Usage" ${rc_base}/rcsysinit.d/S* > $TMP 2> /dev/null || true + + for ILVL in ${RLVL:=2} 0 3 4 5 6; do + # in debian rc.local runs log_end_msg conditionally. we simply skip that + grep -l "Usage" ${rc_base}/rc$ILVL.d/[KS]* 2> /dev/null | grep -v rc.local >> $TMP || true + + NR=`sed -n -e '$=' $TMP` + I=1 + for SCR in `cat $TMP`; do + echo "$SCR $(($I*100/$NR))" + I=$(($I+1)) + done > "$STEPS_DIR/$ILVL-progress" + + # Truncate $TMP file + echo -n > $TMP + done + + # In the first stage of booting RUNLEVEL will be S + ln -sf "$STEPS_DIR/${RLVL:=2}-progress" "$STEPS_DIR/sysinit-progress" + rm -f $TMP + +} + +# Bug #400598,#401999 +if [ -z "${RUNLEVEL:-}" ]; then + # we need only the current level + RUNLEVEL=`runlevel | sed 's/^. //'` +fi + +case "$1" in + start) + calculate_steps $RUNLEVEL + ;; + + *) + N=/etc/init.d/$NAME + echo "Usage: $N {restart}" >&2 + exit 1 + ;; +esac + +exit 0 + |