psplash: run later on shutdown
[openembedded.git] / recipes / psplash / psplash.inc
1 DESCRIPTION = "Userspace framebuffer boot logo based on usplash."
2 HOMEPAGE = "http://projects.o-hand.com/psplash"
3 SECTION = "base"
4 LICENSE = "GPL"
5 RDEPENDS = "initscripts"
6 PROVIDES = "virtual/psplash"
7 RPROVIDES_${PN} = "virtual-psplash"
8 RCONFLICTS_${PN} = "exquisite"
9
10 SRCREV = "249"
11 PV = "0.0+svnr${SRCPV}"
12 INC_PR = "r25"
13
14 # You can create your own pslash-hand-img.h by doing
15 # ./make-image-header.sh <file>.png HAND
16 # and rename the resulting .h to pslash-hand-img.h (for the logo)
17 # respectively psplash-bar-img.h (BAR) for the bar.
18 # You might also want to patch the colors (see patch)
19
20 inherit autotools pkgconfig update-rc.d
21
22 do_configure_append() {
23         if [ -e "${WORKDIR}/psplash-hand-img.h" ]; then
24                 install -m 0644 ${WORKDIR}/psplash-hand-img.h ${S}/
25         fi
26         
27         if [ -e "${WORKDIR}/psplash-poky-img.h" ]; then
28                 install -m 0644 ${WORKDIR}/psplash-poky-img.h ${S}/
29         fi
30         
31         if [ -e "${WORKDIR}/psplash-bar-img.h" ]; then
32                 install -m 0644 ${WORKDIR}/psplash-bar-img.h ${S}/
33         fi
34         
35         if [ -e "${WORKDIR}/psplash-poky2-img.h" ]; then
36                 install -m 0644 ${WORKDIR}/psplash-poky2-img.h ${S}/
37         fi
38
39         if [ -e "${WORKDIR}/psplash.h" ]; then
40                 install -m 0644 ${WORKDIR}/psplash.h ${S}/
41         fi
42 }
43
44 do_install_prepend() {
45         install -d ${D}/mnt/.splash/
46         install -d ${D}${sysconfdir}/default/
47         install -m 0644 ${WORKDIR}/psplash-default ${D}${sysconfdir}/default/psplash
48         install -d ${D}${sysconfdir}/init.d/
49         install -m 0755 ${WORKDIR}/psplash-init ${D}${sysconfdir}/init.d/psplash
50         install -d ${D}${bindir}
51         ln -s psplash-write ${D}${bindir}/splash-write
52         install -d ${D}${sysconfdir}/default
53         install -m 0755 ${WORKDIR}/splashfuncs ${D}${sysconfdir}/default/splashfuncs
54 }
55
56 INITSCRIPT_NAME = "psplash"
57 INITSCRIPT_PARAMS = "start 01 S . stop 32 0 1 6 ."
58
59 PACKAGES =+ "psplash-support"
60
61 RDEPENDS_${PN} += "psplash-support"
62 FILES_psplash-support += "/mnt/.splash ${sysconfdir} ${bindir}/psplash-write ${bindir}/splash-write"