op_power.sh: Suspend can now be triggered when lid is already closed. Untriggering...
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts.bb
1 DESCRIPTION = "Scripts to support system options on the OpenPandora."
2 LICENSE = "GPLV2"
3
4 COMPATIBLE_MACHINE = "omap3-pandora"
5
6 DEPENDS = "zenity dbus"
7 RDEPENDS = "zenity dbus"
8
9 PR = "r92"
10
11 SRC_URI = " \
12           file://op_paths.sh \
13           file://op_bright.sh \
14           file://op_cpuspeed.sh \
15           file://op_cpuspeed.pnd \          
16           file://op_sysspeed.sh \
17           file://op_wifi.sh \
18           file://op_wifi.pnd \  
19           file://op_bluetooth.sh \
20           file://op_bluetooth_work.sh \
21           file://op_bluetooth-check.desktop \
22           file://op_bluetooth.desktop \          
23           file://op_startupmanager.sh \
24           file://op_startupmanager.pnd \
25           file://op_switchgui.sh \
26           file://op_switchgui.pnd \
27           file://startnetbooklauncher \
28           file://startmmenu \    
29           file://startpmenu \ 
30           file://stopmmenu \
31           file://op_calibrate.sh \
32           file://op_calibrate.pnd \
33           file://op_datetime.sh \
34           file://op_datetime.pnd \
35           file://op_usermanager.sh \
36           file://op_usermanager.pnd \
37           file://op_lcdsettings.sh \
38           file://op_lcdsettings.pnd \
39           file://op_cpusettings.sh \
40           file://op_cpusettings.pnd \
41           file://op_lcdrate.sh \
42           file://op_videofir.sh \
43           file://op_storage.sh \
44           file://op_storage.pnd \
45           file://op_nubmode.py \
46           file://op_nubmode.pnd \
47           file://op_lidsettings.pnd \
48           file://op_lidsettings.sh \
49           file://op_tvout.sh \
50           file://op_tvout.pnd \
51           file://ConfigModel.py \
52           file://TVoutConfig.py \
53           file://op_inputtest.pnd \
54           file://gui.conf \
55           file://cpu.conf \
56           file://gamma.conf \
57           file://service.conf \
58           file://nub_profiles.conf \
59           file://tvout-profiles.conf \
60           file://nubmode.glade \
61           file://reset_nubs.sh \
62           file://pndlogo.png \
63           file://tvicon.png \
64           file://tvout.glade \
65           file://default_up \
66           file://none_up \
67           file://op_env.sh \
68           file://evince.pnd \
69           file://gigolo.pnd \
70           file://mousepad.pnd \
71           file://ristretto.pnd \
72           file://squeeze.pnd \
73           file://thunar.pnd \
74           file://xchat.pnd \
75           file://gcalctool.pnd \ 
76           file://op_bright_down.sh \ 
77           file://op_lid.sh \  
78           file://op_power.sh \
79           file://op_battlow.sh \ 
80           file://op_bright_up.sh \  
81           file://op_menu.sh \ 
82           file://op_xfcemenu.sh \
83 "
84
85 do_install() {
86           install -d ${D}${prefix}/pandora/scripts/
87           install -m 0755 ${WORKDIR}/op_paths.sh ${D}${prefix}/pandora/scripts/
88           install -m 0755 ${WORKDIR}/op_bright.sh ${D}${prefix}/pandora/scripts/
89           install -m 0755 ${WORKDIR}/op_cpuspeed.sh ${D}${prefix}/pandora/scripts/
90           install -m 0755 ${WORKDIR}/op_sysspeed.sh ${D}${prefix}/pandora/scripts/
91           install -m 0755 ${WORKDIR}/op_cpusettings.sh ${D}${prefix}/pandora/scripts/
92           install -m 0755 ${WORKDIR}/op_wifi.sh ${D}${prefix}/pandora/scripts/
93           install -m 0755 ${WORKDIR}/op_bluetooth.sh ${D}${prefix}/pandora/scripts/
94           install -m 0755 ${WORKDIR}/op_bluetooth_work.sh ${D}${prefix}/pandora/scripts/
95           install -m 0755 ${WORKDIR}/op_startupmanager.sh ${D}${prefix}/pandora/scripts/
96           install -m 0755 ${WORKDIR}/op_switchgui.sh ${D}${prefix}/pandora/scripts/
97           install -m 0755 ${WORKDIR}/op_calibrate.sh ${D}${prefix}/pandora/scripts/
98           install -m 0755 ${WORKDIR}/op_datetime.sh ${D}${prefix}/pandora/scripts/
99           install -m 0755 ${WORKDIR}/op_usermanager.sh ${D}${prefix}/pandora/scripts/
100           install -m 0755 ${WORKDIR}/op_lcdsettings.sh ${D}${prefix}/pandora/scripts/
101           install -m 0755 ${WORKDIR}/op_lcdrate.sh ${D}${prefix}/pandora/scripts/
102           install -m 0755 ${WORKDIR}/op_videofir.sh ${D}${prefix}/pandora/scripts/
103           install -m 0755 ${WORKDIR}/op_nubmode.py ${D}${prefix}/pandora/scripts/
104           install -m 0755 ${WORKDIR}/op_storage.sh ${D}${prefix}/pandora/scripts/
105           install -m 0755 ${WORKDIR}/op_tvout.sh ${D}${prefix}/pandora/scripts/
106           install -m 0755 ${WORKDIR}/op_bright_down.sh ${D}${prefix}/pandora/scripts/
107           install -m 0755 ${WORKDIR}/op_lid.sh ${D}${prefix}/pandora/scripts/
108           install -m 0755 ${WORKDIR}/op_power.sh ${D}${prefix}/pandora/scripts/
109           install -m 0755 ${WORKDIR}/op_battlow.sh ${D}${prefix}/pandora/scripts/ 
110           install -m 0755 ${WORKDIR}/op_bright_up.sh ${D}${prefix}/pandora/scripts/  
111           install -m 0755 ${WORKDIR}/op_menu.sh ${D}${prefix}/pandora/scripts/ 
112           install -m 0755 ${WORKDIR}/op_xfcemenu.sh ${D}${prefix}/pandora/scripts/ 
113           install -m 0755 ${WORKDIR}/reset_nubs.sh ${D}${prefix}/pandora/scripts/ 
114           install -m 0644 ${WORKDIR}/pndlogo.png ${D}${prefix}/pandora/scripts/ 
115           install -m 0755 ${WORKDIR}/ConfigModel.py ${D}${prefix}/pandora/scripts/
116           install -m 0755 ${WORKDIR}/TVoutConfig.py ${D}${prefix}/pandora/scripts/
117           install -m 0644 ${WORKDIR}/tvicon.png ${D}${prefix}/pandora/scripts/ 
118           install -m 0644 ${WORKDIR}/nubmode.glade ${D}${prefix}/pandora/scripts/ 
119           install -m 0644 ${WORKDIR}/tvout.glade ${D}${prefix}/pandora/scripts/ 
120           install -m 0755 ${WORKDIR}/op_lidsettings.sh ${D}${prefix}/pandora/scripts/ 
121
122
123
124           install -d ${D}${prefix}/pandora/apps/
125           install -m 0755 ${WORKDIR}/op_calibrate.pnd ${D}${prefix}/pandora/apps/
126           install -m 0755 ${WORKDIR}/op_cpuspeed.pnd ${D}${prefix}/pandora/apps/
127           install -m 0755 ${WORKDIR}/op_datetime.pnd ${D}${prefix}/pandora/apps/
128           install -m 0755 ${WORKDIR}/op_lcdsettings.pnd ${D}${prefix}/pandora/apps/
129           install -m 0755 ${WORKDIR}/op_cpusettings.pnd ${D}${prefix}/pandora/apps/
130           install -m 0755 ${WORKDIR}/op_nubmode.pnd ${D}${prefix}/pandora/apps/
131           install -m 0755 ${WORKDIR}/op_startupmanager.pnd ${D}${prefix}/pandora/apps/
132           install -m 0755 ${WORKDIR}/op_storage.pnd ${D}${prefix}/pandora/apps/
133           install -m 0755 ${WORKDIR}/op_switchgui.pnd ${D}${prefix}/pandora/apps/
134           install -m 0755 ${WORKDIR}/op_usermanager.pnd ${D}${prefix}/pandora/apps/
135           install -m 0755 ${WORKDIR}/op_wifi.pnd ${D}${prefix}/pandora/apps/
136           install -m 0755 ${WORKDIR}/op_tvout.pnd ${D}${prefix}/pandora/apps/
137           install -m 0755 ${WORKDIR}/op_inputtest.pnd ${D}${prefix}/pandora/apps/
138           install -m 0755 ${WORKDIR}/op_lidsettings.pnd ${D}${prefix}/pandora/apps/
139
140           install -d ${D}${prefix}/pandora/mmenu/
141           install -m 0755 ${WORKDIR}/evince.pnd ${D}${prefix}/pandora/mmenu/
142           install -m 0755 ${WORKDIR}/gigolo.pnd ${D}${prefix}/pandora/mmenu/
143           install -m 0755 ${WORKDIR}/mousepad.pnd ${D}${prefix}/pandora/mmenu/
144           install -m 0755 ${WORKDIR}/ristretto.pnd ${D}${prefix}/pandora/mmenu/
145           install -m 0755 ${WORKDIR}/squeeze.pnd ${D}${prefix}/pandora/mmenu/
146           install -m 0755 ${WORKDIR}/thunar.pnd ${D}${prefix}/pandora/mmenu/
147           install -m 0755 ${WORKDIR}/xchat.pnd ${D}${prefix}/pandora/mmenu/
148           install -m 0755 ${WORKDIR}/gcalctool.pnd ${D}${prefix}/pandora/mmenu/
149
150           install -d ${D}${datadir}/applications/
151           install -m 0644 ${WORKDIR}/op_bluetooth.desktop ${D}${datadir}/applications/
152           
153           install -d ${D}${sysconfdir}/xdg/autostart/
154           install -m 0644 ${WORKDIR}/op_bluetooth-check.desktop ${D}${sysconfdir}/xdg/autostart/op_bluetooth-check.desktop
155
156           install -d ${D}${sysconfdir}/pandora/conf/
157           install -m 0644 ${WORKDIR}/gui.conf ${D}${sysconfdir}/pandora/conf/gui.conf
158           install -m 0644 ${WORKDIR}/cpu.conf ${D}${sysconfdir}/pandora/conf/cpu.conf
159           install -m 0644 ${WORKDIR}/gamma.conf ${D}${sysconfdir}/pandora/conf/gamma.conf
160           install -m 0644 ${WORKDIR}/service.conf ${D}${sysconfdir}/pandora/conf/service.conf
161           install -m 0666 ${WORKDIR}/nub_profiles.conf ${D}${sysconfdir}/pandora/conf/nub_profiles.conf
162           install -m 0666 ${WORKDIR}/tvout-profiles.conf ${D}${sysconfdir}/pandora/conf/tvout-profiles.conf
163
164           install -d ${D}${sysconfdir}/pandora/conf/dss_fir/
165           install -m 0644 ${WORKDIR}/default_up ${D}${sysconfdir}/pandora/conf/dss_fir/
166           install -m 0644 ${WORKDIR}/none_up ${D}${sysconfdir}/pandora/conf/dss_fir/
167
168           install -d ${D}${sysconfdir}/profile.d/
169           install -m 0755 ${WORKDIR}/op_env.sh ${D}${sysconfdir}/profile.d/
170
171           install -d ${D}${bindir}/
172           install -m 0755 ${WORKDIR}/startnetbooklauncher ${D}${bindir}/
173           install -m 0755 ${WORKDIR}/startmmenu ${D}${bindir}/
174           install -m 0755 ${WORKDIR}/startpmenu ${D}${bindir}/
175           install -m 0755 ${WORKDIR}/stopmmenu ${D}${bindir}/
176 }
177
178 PACKAGE_ARCH = "${MACHINE_ARCH}"
179
180 FILES_${PN} += "${prefix} ${datadir}"