diff options
author | 2011-07-24 17:57:24 +0100 | |
---|---|---|
committer | 2011-07-30 02:35:12 +0100 | |
commit | e9b45ff67d32fdc27950a51135b6dabada8334e7 (patch) | |
tree | de99cd760c8292ee1dd334e23e1e5cc43e90dfbd /recipes-opie/opie-init/opie-init.inc | |
download | meta-opie-e9b45ff67d32fdc27950a51135b6dabada8334e7.tar.gz |
initial commit of meta-opie
Populate the repository with files from OpenEmbedded at revision
45edf621296daf150c72b876d720861235e5762e - no changes, only rearranged
the directory structure to match the new oe-core style and added
COPYING.MIT and README.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'recipes-opie/opie-init/opie-init.inc')
-rw-r--r-- | recipes-opie/opie-init/opie-init.inc | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-opie/opie-init/opie-init.inc b/recipes-opie/opie-init/opie-init.inc new file mode 100644 index 0000000..b40492f --- /dev/null +++ b/recipes-opie/opie-init/opie-init.inc @@ -0,0 +1,47 @@ +DESCRIPTION = "Opie Startup scripts and config" +SECTION = "opie/base" +PRIORITY = "optional" +LICENSE = "GPL" +#APPNAME = "qpe" + +#S = "${WORKDIR}/launcher" + +#inherit opie +inherit update-rc.d + +INITSCRIPT_NAME = "opie" +INITSCRIPT_PARAMS = "start 99 5 . stop 20 0 1 6 ." + +do_install() { + install -d ${D}${sysconfdir}/init.d + install -d ${D}${sysconfdir}/profile.d + install -d ${D}${bindir} + install -d ${D}${palmtopdir}/etc/skel + + sed -s "s|@palmtopdir@|${palmtopdir}|" ${WORKDIR}/opie >${WORKDIR}/opie.tmp + sed -s "s|@palmtopdir@|${palmtopdir}|" ${WORKDIR}/opie_defaults >${WORKDIR}/opie_defaults.tmp + install -m 0755 ${WORKDIR}/opie.tmp ${D}${sysconfdir}/init.d/opie + install -m 0644 ${WORKDIR}/opie_defaults.tmp ${D}${sysconfdir}/profile.d/opie_defaults + + install -m 0755 ${WORKDIR}/opie-reorgfiles ${D}${bindir}/ + install -m 0644 ${WORKDIR}/qpe.conf ${D}${palmtopdir}/etc/skel/ + + if [ -s ${WORKDIR}/locale.conf ]; then + install -m 0644 ${WORKDIR}/locale.conf ${D}${palmtopdir}/etc/skel/ + fi + +# This should not be necessary anymore (w100 is currently disabled for c7x0) +# case ${MACHINE} in +# c7x0) +# install -d ${D}${sysconfdir}/apm/event.d/ +# install -m 0755 ${WORKDIR}/qpe-suspend-resume ${D}${sysconfdir}/apm/event.d/00-qpe-suspend-resume.sh +# ;; +# *) +# ;; +# esac +} + +#FILES_opie-init_append = " ${sysconfdir} ${palmtopdir}/bin" +FILES_${PN} += "${palmtopdir}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" |