Merge branch 'opendreambox-1.6' into vuplus-1.6
[vuplus_openembedded] / recipes / opie-init / opie-init.inc
1 DESCRIPTION = "Opie Startup scripts and config"
2 SECTION = "opie/base"
3 PRIORITY = "optional"
4 LICENSE = "GPL"
5 #APPNAME = "qpe"
6
7 #S = "${WORKDIR}/launcher"
8
9 #inherit opie
10 inherit update-rc.d
11
12 INITSCRIPT_NAME = "opie"
13 INITSCRIPT_PARAMS = "start 99 5 . stop 20 0 1 6 ."
14
15 do_install() {
16         install -d ${D}${sysconfdir}/init.d
17         install -d ${D}${sysconfdir}/profile.d  
18         install -d ${D}${bindir}
19         install -d ${D}${palmtopdir}/etc/skel
20
21         sed -s "s|@palmtopdir@|${palmtopdir}|" ${WORKDIR}/opie >${WORKDIR}/opie.tmp
22         sed -s "s|@palmtopdir@|${palmtopdir}|" ${WORKDIR}/opie_defaults >${WORKDIR}/opie_defaults.tmp
23         install -m 0755 ${WORKDIR}/opie.tmp ${D}${sysconfdir}/init.d/opie
24         install -m 0644 ${WORKDIR}/opie_defaults.tmp ${D}${sysconfdir}/profile.d/opie_defaults
25
26         install -m 0755 ${WORKDIR}/opie-reorgfiles ${D}${bindir}/
27         install -m 0644 ${WORKDIR}/qpe.conf ${D}${palmtopdir}/etc/skel/
28
29         if [ -s ${WORKDIR}/locale.conf ]; then
30             install -m 0644 ${WORKDIR}/locale.conf ${D}${palmtopdir}/etc/skel/
31         fi
32
33         case ${MACHINE} in
34         c7x0)
35                 install -d ${D}${sysconfdir}/apm/event.d/
36                 install -m 0755 ${WORKDIR}/qpe-suspend-resume ${D}${sysconfdir}/apm/event.d/00-qpe-suspend-resume.sh
37                 ;;
38         *)
39                 ;;
40         esac    
41 }
42
43 #FILES_opie-init_append = " ${sysconfdir} ${palmtopdir}/bin"
44 FILES_${PN} += "${palmtopdir}"
45
46 PACKAGE_ARCH = "${MACHINE_ARCH}"