Bump recipes
[openpandora.oe.git] / recipes / pandora-system / pandora-state.bb
1 DESCRIPTION = "Save and restore some specific Pandora settings on shutdown / startup"
2 LICENSE = "GPLv2"
3
4 COMPATIBLE_MACHINE = "omap3-pandora"
5
6 RDEPENDS = "pandora-scripts"
7
8 PR = "r20"
9 inherit update-rc.d
10
11 INITSCRIPT_NAME = "pandora-state"
12 INITSCRIPT_PARAMS = "start 10 5 3 . stop 31 0 1 6 ."
13
14 SRC_URI = " \
15           file://rc.pandora-state \
16           file://gamma.state \
17           file://dssgamma.state \
18           file://brightness.state \
19           file://nubs.state \
20           file://dirty_expire_centisecs \
21 "
22
23 do_install() {
24           install -d ${D}${sysconfdir}/init.d/
25           install -m 0755 ${WORKDIR}/rc.pandora-state ${D}${sysconfdir}/init.d/pandora-state
26           install -d ${D}${sysconfdir}/pandora/conf/
27           install -m 0644 ${WORKDIR}/gamma.state ${D}${sysconfdir}/pandora/conf/gamma.state
28           install -m 0644 ${WORKDIR}/dssgamma.state ${D}${sysconfdir}/pandora/conf/dssgamma.state
29           install -m 0644 ${WORKDIR}/brightness.state ${D}${sysconfdir}/pandora/conf/brightness.state
30           install -m 0644 ${WORKDIR}/nubs.state ${D}${sysconfdir}/pandora/conf/nubs.state
31           install -m 0644 ${WORKDIR}/dirty_expire_centisecs ${D}${sysconfdir}/pandora/conf/dirty_expire_centisecs
32 }
33
34 PACKAGE_ARCH = "${MACHINE_ARCH}"
35
36 FILES_${PN} += "${prefix} ${datadir}"