summaryrefslogtreecommitdiffstats
path: root/meta-openmoko/packages/openmoko2/openmoko-session2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openmoko/packages/openmoko2/openmoko-session2.bb')
-rw-r--r--meta-openmoko/packages/openmoko2/openmoko-session2.bb46
1 files changed, 33 insertions, 13 deletions
diff --git a/meta-openmoko/packages/openmoko2/openmoko-session2.bb b/meta-openmoko/packages/openmoko2/openmoko-session2.bb
index 046f59b3d9..d0c3268e0c 100644
--- a/meta-openmoko/packages/openmoko2/openmoko-session2.bb
+++ b/meta-openmoko/packages/openmoko2/openmoko-session2.bb
@@ -1,33 +1,53 @@
1DESCRIPTION = "Custom MB session files for OpenMoko" 1DESCRIPTION = "Custom Matchbox session files for Openmoko"
2LICENSE = "GPL" 2LICENSE = "GPL"
3SECTION = "x11" 3SECTION = "x11"
4RDEPENDS = "matchbox-common matchbox-applet-startup-monitor matchbox-panel-2" 4RDEPENDS_${PN} = "matchbox-panel-2 openmoko-common2 openmoko-today2 openmoko-dialer2"
5RDEPENDS += "openmoko-common2 openmoko-today2 openmoko-dialer2" 5RCONFLICTS_${PN} = "openmoko-session matchbox-common"
6RCONFLICTS = "openmoko-session" 6PR = "r69"
7PR = "r29"
8 7
9SRC_URI = "file://etc" 8SRC_URI = "\
10S = ${WORKDIR} 9 file://etc \
10 file://matchbox-session \
11"
12
13S = "${WORKDIR}"
14
15inherit update-alternatives
11 16
12do_install() { 17do_install() {
13 cp -R ${S}/etc ${D}/etc 18 install -d ${D}${bindir}
14 rm -fR ${D}/etc/.svn 19 install -m 0655 ${WORKDIR}/matchbox-session ${D}${bindir}
15 rm -fR ${D}/etc/matchbox/.svn 20 install -d ${D}${sysconfdir}
16 chmod -R 755 ${D}/etc 21 cp -R ${S}/etc/* ${D}${sysconfdir}
22 rm -fR ${D}${sysconfdir}/.svn
23 rm -fR ${D}${sysconfdir}/matchbox/.svn
24 chmod -R 755 ${D}${sysconfdir}/
17} 25}
18 26
27PACKAGE_ARCH = "all"
28
19pkg_postinst_openmoko-session2 () { 29pkg_postinst_openmoko-session2 () {
20#!/bin/sh -e 30#!/bin/sh -e
21if [ "x$D" != "x" ]; then 31if [ "x$D" != "x" ]; then
22 exit 1 32 exit 1
23fi 33fi
24 34
25gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/theme openmoko-standard-2 35gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/theme Moko
26gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/icon_theme openmoko-standard 36gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/icon_theme openmoko-standard
27gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 5" 37gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 5"
38gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/wallpaper ${datadir}/pixmaps/wallpaper.png
39gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type bool --set /desktop/poky/interface/digital_clock 1
28gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type int --set /desktop/poky/peripherals/mouse/drag_threshold 8 40gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type int --set /desktop/poky/peripherals/mouse/drag_threshold 8
29gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type int --set /desktop/openmoko/neod/power_management 2 41gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type int --set /desktop/openmoko/neod/power_management 2
42# gstreamer audio settings
43gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct -t string --set /system/gstreamer/0.10/default/audiosink pulsesink
44gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct -t string --set /system/gstreamer/0.10/default/audiosrc pulsesrc
30 45
31} 46}
32 47
33PACKAGE_ARCH = "all" 48ALTERNATIVE_NAME = "x-window-manager"
49ALTERNATIVE_PATH = "${bindir}/matchbox-session"
50ALTERNATIVE_LINK = "${bindir}/x-window-manager"
51ALTERNATIVE_PRIORITY = "11"
52
53CONFFILES_${PN} = "${sysconfdir}/matchbox/session"