Package: live-package
Version: 0.99.6-1
Severity: Wishlist
Tags: Patch

Attached is a patch which allows users to provide their own splash image for
the live CD.  It also includes the fix from bug #388204.

This patch adds a dependency to the package: it needs netpbm to create the
splash image from the user-supplied format (it is very unlikely that the user
wants to supply an lss16 image).

The reason white is mapped to colour 7 is that colour 7 is used for the text
below the splash image.

Thanks,
Bas

-- 
I encourage people to send encrypted e-mail (see http://www.gnupg.org).
If you have problems reading my e-mail, use a better reader.
Please send the central message of e-mails as plain text
   in the message body, not as HTML and definitely not as MS Word.
Please do not use the MS Word format for attachments either.
For more information, see http://129.125.47.90/e-mail.html
diff -ur debian/usr/sbin/make-live shevek/usr/sbin/make-live
--- debian/usr/sbin/make-live   2006-09-10 21:02:56.000000000 +0200
+++ shevek/usr/sbin/make-live   2006-09-22 15:11:23.000000000 +0200
@@ -41,7 +41,7 @@
        . "${SCRIPT}"
 done
 
-USAGE="Usage: ${PROGRAM} [-a|--architecture ARCHITECTURE] [-b|--bootappend 
KERNEL_PARAMETER|\"KERNEL_PARAMETERS\"] [--config FILE] [-c|--chroot DIRECTORY] 
[-d|--distribution DISTRIBUTION] [--disable-generic-indices] 
[--enable-generic-indices] [--filesystem FILESYSTEM] [-f|--flavour 
BOOTSTRAP_FLAVOUR] [--hook COMMAND|\"COMMANDS\"] [--include-chroot 
FILE|DIRECTORY] [--include-image FILE|DIRECTORY] [-k|--kernel KERNEL_FLAVOUR] 
[--manifest PACKAGE] [-m|--mirror URL] [--mirror-security URL] [--packages 
PACKAGE|\"PACKAGES\"] [-p|--package-list LIST|FILE] [--proxy-ftp URL] 
[--proxy-http URL] [-r|--root DIRECTORY] [-s|--section SECTION|\"SECTIONS\"] 
[--server-address HOSTNAME|IP] [--server-path DIRECTORY] [--templates 
DIRECTORY] [-t|--type TYPE]"
+USAGE="Usage: ${PROGRAM} [-a|--architecture ARCHITECTURE] [-b|--bootappend 
KERNEL_PARAMETER|\"KERNEL_PARAMETERS\"] [--config FILE] [-c|--chroot DIRECTORY] 
[-d|--distribution DISTRIBUTION] [--disable-generic-indices] 
[--enable-generic-indices] [--filesystem FILESYSTEM] [-f|--flavour 
BOOTSTRAP_FLAVOUR] [--hook COMMAND|\"COMMANDS\"] [--include-chroot 
FILE|DIRECTORY] [--include-image FILE|DIRECTORY] [-k|--kernel KERNEL_FLAVOUR] 
[--manifest PACKAGE] [-m|--mirror URL] [--mirror-security URL] [--packages 
PACKAGE|\"PACKAGES\"] [-p|--package-list LIST|FILE] [--proxy-ftp URL] 
[--proxy-http URL] [-r|--root DIRECTORY] [-s|--section SECTION|\"SECTIONS\"] 
[--server-address HOSTNAME|IP] [--server-path DIRECTORY] [--templates 
DIRECTORY] [-t|--type TYPE] [--splash IMAGE_FILE]"
 
 Help ()
 {
@@ -89,6 +89,7 @@
        echo "  --server-path: specifies the netboot server path for chroot."
        echo "  --templates: specifies location of the templates."
        echo "  -t, --type: specifies live system type."
+       echo "  --splash: specifies the splash image to use during boot."
        echo
        echo "Environment:"
        echo "  All settings can be also specified trough environment 
variables. Please see make-live.conf(8) for more information."
@@ -158,7 +159,7 @@
 
 Main ()
 {
-       ARGUMENTS="`getopt --longoptions 
root:,type:,architecture:,bootappend:,config:,chroot:,distribution:,filesystem:,flavour:,hook:,include-chroot:,include-image:,kernel:,manifest:,mirror:,mirror-security:,output:,packages:,package-list:,proxy-ftp:,proxy-http:,section:,server-address:,server-path:,templates:,with-generic-indices,without-generic-indices,with-source,without-source,help,usage,version
 --name=${PROGRAM} --options r:t:a:b:c:d:f:k:m:o:p:s:huv --shell sh -- [EMAIL 
PROTECTED]"
+       ARGUMENTS="`getopt --longoptions 
root:,type:,architecture:,bootappend:,config:,chroot:,distribution:,filesystem:,flavour:,hook:,include-chroot:,include-image:,kernel:,manifest:,mirror:,mirror-security:,output:,packages:,package-list:,proxy-ftp:,proxy-http:,section:,server-address:,server-path:,templates:,with-generic-indices,without-generic-indices,with-source,without-source,help,usage,version,splash
 --name=${PROGRAM} --options r:t:a:b:c:d:f:k:m:o:p:s:huv --shell sh -- "[EMAIL 
PROTECTED]"`"
 
        if [ "${?}" != "0" ]
        then
@@ -298,6 +299,10 @@
                                Version; shift
                                ;;
 
+                       --splash)
+                               LIVE_SPLASH="${2}"; shift
+                               ;;
+
                        --)
                                shift; break
                                ;;
diff -ur debian/usr/share/make-live/scripts/21image.sh 
shevek/usr/share/make-live/scripts/21image.sh
--- debian/usr/share/make-live/scripts/21image.sh       2006-09-10 
21:02:56.000000000 +0200
+++ shevek/usr/share/make-live/scripts/21image.sh       2006-09-22 
14:53:42.000000000 +0200
@@ -181,6 +181,17 @@
                                ;;
                esac
 
+               if [ -r "${LIVE_SPLASH}" ]
+               then
+                       map="`mktemp`"
+                       pnm="`mktemp`"
+                       anytopnm < "${LIVE_SPLASH}" > "${pnm}"
+                       pnmcolormap 15 < "${pnm}" > "${map}"
+                       pnmremap -map="${map}" "${pnm}" | ppmtolss16 
'#ffffff=7' > "${LIVE_ROOT}"/binary/isolinux/splash.rle
+                       rm "${pnm}"
+                       rm "${map}"
+               fi
+
                # Remove syslinux
                Chroot_exec "apt-get remove --purge --yes syslinux"
                Patch_network deapply

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

Reply via email to