f32c57f1aba9068a69355c0f6ae4dbd181a47359
[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 = "r133"
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_usbhost.sh \
17           file://op_usbhost.pnd \
18           file://op_osupgrade.sh \
19           file://op_osupgrade.pnd \
20           file://op_sysspeed.sh \
21           file://op_createsd.sh \
22           file://op_createsd.pnd \
23           file://op_wifi.sh \
24           file://op_wifi.pnd \  
25           file://op_bluetooth.sh \
26           file://op_bluetooth_work.sh \
27           file://op_bluetooth-check.desktop \
28           file://op_bluetooth.desktop \          
29           file://op_startupmanager.sh \
30           file://op_startupmanager.pnd \
31           file://op_switchgui.sh \
32           file://op_switchgui.pnd \
33           file://startnetbooklauncher \
34           file://startmmenu \    
35           file://startpmenu \ 
36           file://stopmmenu \
37           file://op_calibrate.sh \
38           file://op_calibrate.pnd \
39           file://op_datetime.sh \
40           file://op_datetime.pnd \
41           file://op_usermanager.sh \
42           file://op_usermanager.pnd \
43           file://op_lcdsettings.sh \
44           file://op_lcdsettings.pnd \
45           file://op_ledsettings.sh \
46           file://op_ledsettings.pnd \
47           file://op_cpusettings.sh \
48           file://op_cpusettings.pnd \
49           file://op_lcdrate.sh \
50           file://op_videofir.sh \
51           file://op_storage.sh \
52           file://op_storage.pnd \
53           file://op_nubmode.py \
54           file://op_nubmode.pnd \
55           file://op_nubchange.sh \
56           file://op_lidsettings.pnd \
57           file://op_lidsettings.sh \
58           file://op_touchinit.sh \
59           file://op_tvout.sh \
60           file://op_tvout.pnd \
61           file://ConfigModel.py \
62           file://TVoutConfig.py \
63           file://op_inputtest.pnd \
64           file://gui.conf \
65           file://cpu.conf \
66           file://led.conf \
67           file://gamma.conf \
68           file://service.conf \
69           file://nub_profiles.conf \
70           file://tvout-profiles.conf \
71           file://nubmode.glade \
72           file://reset_nubs.sh \
73           file://pndlogo.png \
74           file://tvicon.png \
75           file://tvout.glade \
76           file://default_up \
77           file://none_up \
78           file://op_env.sh \
79           file://evince.pnd \
80           file://gigolo.pnd \
81           file://mousepad.pnd \
82           file://ristretto.pnd \
83           file://squeeze.pnd \
84           file://thunar.pnd \
85           file://xchat.pnd \
86           file://gcalctool.pnd \ 
87           file://op_bright_down.sh \ 
88           file://op_lid.sh \  
89           file://op_power.sh \
90           file://op_battlow.sh \ 
91           file://op_bright_up.sh \  
92           file://op_menu.sh \ 
93           file://op_xfcemenu.sh \
94           file://op_hugetlb.sh \
95           file://op_gamma.sh \
96 "
97
98 do_install() {
99           install -d ${D}${prefix}/pandora/scripts/
100           install -m 0755 ${WORKDIR}/op_paths.sh ${D}${prefix}/pandora/scripts/
101           install -m 0755 ${WORKDIR}/op_osupgrade.sh ${D}${prefix}/pandora/scripts/
102           install -m 0755 ${WORKDIR}/op_bright.sh ${D}${prefix}/pandora/scripts/
103           install -m 0755 ${WORKDIR}/op_cpuspeed.sh ${D}${prefix}/pandora/scripts/
104           install -m 0755 ${WORKDIR}/op_createsd.sh ${D}${prefix}/pandora/scripts/
105           install -m 0755 ${WORKDIR}/op_sysspeed.sh ${D}${prefix}/pandora/scripts/
106           install -m 0755 ${WORKDIR}/op_cpusettings.sh ${D}${prefix}/pandora/scripts/
107           install -m 0755 ${WORKDIR}/op_wifi.sh ${D}${prefix}/pandora/scripts/
108           install -m 0755 ${WORKDIR}/op_usbhost.sh ${D}${prefix}/pandora/scripts/
109           install -m 0755 ${WORKDIR}/op_bluetooth.sh ${D}${prefix}/pandora/scripts/
110           install -m 0755 ${WORKDIR}/op_bluetooth_work.sh ${D}${prefix}/pandora/scripts/
111           install -m 0755 ${WORKDIR}/op_startupmanager.sh ${D}${prefix}/pandora/scripts/
112           install -m 0755 ${WORKDIR}/op_switchgui.sh ${D}${prefix}/pandora/scripts/
113           install -m 0755 ${WORKDIR}/op_calibrate.sh ${D}${prefix}/pandora/scripts/
114           install -m 0755 ${WORKDIR}/op_datetime.sh ${D}${prefix}/pandora/scripts/
115           install -m 0755 ${WORKDIR}/op_usermanager.sh ${D}${prefix}/pandora/scripts/
116           install -m 0755 ${WORKDIR}/op_lcdsettings.sh ${D}${prefix}/pandora/scripts/
117           install -m 0755 ${WORKDIR}/op_ledsettings.sh ${D}${prefix}/pandora/scripts/
118           install -m 0755 ${WORKDIR}/op_lcdrate.sh ${D}${prefix}/pandora/scripts/
119           install -m 0755 ${WORKDIR}/op_videofir.sh ${D}${prefix}/pandora/scripts/
120           install -m 0755 ${WORKDIR}/op_nubmode.py ${D}${prefix}/pandora/scripts/
121           install -m 0755 ${WORKDIR}/op_nubchange.sh ${D}${prefix}/pandora/scripts/
122           install -m 0755 ${WORKDIR}/op_storage.sh ${D}${prefix}/pandora/scripts/
123           install -m 0755 ${WORKDIR}/op_tvout.sh ${D}${prefix}/pandora/scripts/
124           install -m 0755 ${WORKDIR}/op_bright_down.sh ${D}${prefix}/pandora/scripts/
125           install -m 0755 ${WORKDIR}/op_lid.sh ${D}${prefix}/pandora/scripts/
126           install -m 0755 ${WORKDIR}/op_power.sh ${D}${prefix}/pandora/scripts/
127           install -m 0755 ${WORKDIR}/op_battlow.sh ${D}${prefix}/pandora/scripts/ 
128           install -m 0755 ${WORKDIR}/op_touchinit.sh ${D}${prefix}/pandora/scripts/ 
129           install -m 0755 ${WORKDIR}/op_bright_up.sh ${D}${prefix}/pandora/scripts/  
130           install -m 0755 ${WORKDIR}/op_menu.sh ${D}${prefix}/pandora/scripts/ 
131           install -m 0755 ${WORKDIR}/op_xfcemenu.sh ${D}${prefix}/pandora/scripts/ 
132           install -m 0755 ${WORKDIR}/op_hugetlb.sh ${D}${prefix}/pandora/scripts/
133           install -m 0755 ${WORKDIR}/op_gamma.sh ${D}${prefix}/pandora/scripts/
134           install -m 0755 ${WORKDIR}/reset_nubs.sh ${D}${prefix}/pandora/scripts/ 
135           install -m 0644 ${WORKDIR}/pndlogo.png ${D}${prefix}/pandora/scripts/ 
136           install -m 0755 ${WORKDIR}/ConfigModel.py ${D}${prefix}/pandora/scripts/
137           install -m 0755 ${WORKDIR}/TVoutConfig.py ${D}${prefix}/pandora/scripts/
138           install -m 0644 ${WORKDIR}/tvicon.png ${D}${prefix}/pandora/scripts/ 
139           install -m 0644 ${WORKDIR}/nubmode.glade ${D}${prefix}/pandora/scripts/ 
140           install -m 0644 ${WORKDIR}/tvout.glade ${D}${prefix}/pandora/scripts/ 
141           install -m 0755 ${WORKDIR}/op_lidsettings.sh ${D}${prefix}/pandora/scripts/ 
142
143
144
145           install -d ${D}${prefix}/pandora/apps/
146           install -m 0755 ${WORKDIR}/op_calibrate.pnd ${D}${prefix}/pandora/apps/
147           install -m 0755 ${WORKDIR}/op_createsd.pnd ${D}${prefix}/pandora/apps/
148           install -m 0755 ${WORKDIR}/op_cpuspeed.pnd ${D}${prefix}/pandora/apps/
149           install -m 0755 ${WORKDIR}/op_datetime.pnd ${D}${prefix}/pandora/apps/
150           install -m 0755 ${WORKDIR}/op_lcdsettings.pnd ${D}${prefix}/pandora/apps/
151           install -m 0755 ${WORKDIR}/op_ledsettings.pnd ${D}${prefix}/pandora/apps/
152           install -m 0755 ${WORKDIR}/op_cpusettings.pnd ${D}${prefix}/pandora/apps/
153           install -m 0755 ${WORKDIR}/op_nubmode.pnd ${D}${prefix}/pandora/apps/
154           install -m 0755 ${WORKDIR}/op_startupmanager.pnd ${D}${prefix}/pandora/apps/
155           install -m 0755 ${WORKDIR}/op_storage.pnd ${D}${prefix}/pandora/apps/
156           install -m 0755 ${WORKDIR}/op_switchgui.pnd ${D}${prefix}/pandora/apps/
157           install -m 0755 ${WORKDIR}/op_usermanager.pnd ${D}${prefix}/pandora/apps/
158           install -m 0755 ${WORKDIR}/op_wifi.pnd ${D}${prefix}/pandora/apps/
159           install -m 0755 ${WORKDIR}/op_usbhost.pnd ${D}${prefix}/pandora/apps/
160           install -m 0755 ${WORKDIR}/op_tvout.pnd ${D}${prefix}/pandora/apps/
161           install -m 0755 ${WORKDIR}/op_inputtest.pnd ${D}${prefix}/pandora/apps/
162           install -m 0755 ${WORKDIR}/op_lidsettings.pnd ${D}${prefix}/pandora/apps/
163           install -m 0755 ${WORKDIR}/op_osupgrade.pnd ${D}${prefix}/pandora/apps/
164
165           install -d ${D}${prefix}/pandora/mmenu/
166           install -m 0755 ${WORKDIR}/evince.pnd ${D}${prefix}/pandora/mmenu/
167           install -m 0755 ${WORKDIR}/gigolo.pnd ${D}${prefix}/pandora/mmenu/
168           install -m 0755 ${WORKDIR}/mousepad.pnd ${D}${prefix}/pandora/mmenu/
169           install -m 0755 ${WORKDIR}/ristretto.pnd ${D}${prefix}/pandora/mmenu/
170           install -m 0755 ${WORKDIR}/squeeze.pnd ${D}${prefix}/pandora/mmenu/
171           install -m 0755 ${WORKDIR}/thunar.pnd ${D}${prefix}/pandora/mmenu/
172           install -m 0755 ${WORKDIR}/xchat.pnd ${D}${prefix}/pandora/mmenu/
173           install -m 0755 ${WORKDIR}/gcalctool.pnd ${D}${prefix}/pandora/mmenu/
174
175           install -d ${D}${datadir}/applications/
176           install -m 0644 ${WORKDIR}/op_bluetooth.desktop ${D}${datadir}/applications/
177           
178           install -d ${D}${sysconfdir}/xdg/autostart/
179           install -m 0644 ${WORKDIR}/op_bluetooth-check.desktop ${D}${sysconfdir}/xdg/autostart/op_bluetooth-check.desktop
180
181           install -d ${D}${sysconfdir}/pandora/conf/
182           install -m 0644 ${WORKDIR}/gui.conf ${D}${sysconfdir}/pandora/conf/gui.conf
183           install -m 0644 ${WORKDIR}/gui.conf ${D}${sysconfdir}/pandora/conf/led.conf
184           install -m 0644 ${WORKDIR}/cpu.conf ${D}${sysconfdir}/pandora/conf/cpu.conf
185           install -m 0644 ${WORKDIR}/gamma.conf ${D}${sysconfdir}/pandora/conf/gamma.conf
186           install -m 0644 ${WORKDIR}/service.conf ${D}${sysconfdir}/pandora/conf/service.conf
187           install -m 0666 ${WORKDIR}/nub_profiles.conf ${D}${sysconfdir}/pandora/conf/nub_profiles.conf
188           install -m 0666 ${WORKDIR}/tvout-profiles.conf ${D}${sysconfdir}/pandora/conf/tvout-profiles.conf
189
190           install -d ${D}${sysconfdir}/pandora/conf/dss_fir/
191           install -m 0644 ${WORKDIR}/default_up ${D}${sysconfdir}/pandora/conf/dss_fir/
192           install -m 0644 ${WORKDIR}/none_up ${D}${sysconfdir}/pandora/conf/dss_fir/
193
194           install -d ${D}${sysconfdir}/profile.d/
195           install -m 0755 ${WORKDIR}/op_env.sh ${D}${sysconfdir}/profile.d/
196
197           install -d ${D}${bindir}/
198           install -m 0755 ${WORKDIR}/startnetbooklauncher ${D}${bindir}/
199           install -m 0755 ${WORKDIR}/startmmenu ${D}${bindir}/
200           install -m 0755 ${WORKDIR}/startpmenu ${D}${bindir}/
201           install -m 0755 ${WORKDIR}/stopmmenu ${D}${bindir}/
202 }
203
204 PACKAGE_ARCH = "${MACHINE_ARCH}"
205
206 FILES_${PN} += "${prefix} ${datadir}"
207
208 CONFFILES_${PN} += ${sysconfdir}/pandora/conf/gui.conf
209 CONFFILES_${PN} += ${sysconfdir}/pandora/conf/cpu.conf
210 CONFFILES_${PN} += ${sysconfdir}/pandora/conf/led.conf
211 CONFFILES_${PN} += ${sysconfdir}/pandora/conf/gamma.conf
212 CONFFILES_${PN} += ${sysconfdir}/pandora/conf/service.conf
213 CONFFILES_${PN} += ${sysconfdir}/pandora/conf/nub_profiles.conf
214 CONFFILES_${PN} += ${sysconfdir}/pandora/conf/tvout-profiles.conf