~vcs-imports/soas/trunk

402 by Sebastian Dziallas
heavy refactoring for the upcoming soas-3 development
1
%include fedora-mini-base.ks
2
3
repo --name=sugar --baseurl=http://download.sugarlabs.org/soas/repositories/3/
4
5
%packages --excludedocs --instLangs en:es:ar:pl:pt_BR:pt:it:fr:ht:el:mn:mr_IN:th:am_ET:km_KH:ne_NP:ur_PK:rw:ja:de:tr:te:ps:fa_AF:si
6
7
# sugar!
8
sugar*
9
10
# addtional packages
218 by Sebastian Dziallas
dependency clean-ups for live & appliance version
11
etoys
331 by Sebastian Dziallas
add FoodForce2 to the included activities
12
gdm
13
402 by Sebastian Dziallas
heavy refactoring for the upcoming soas-3 development
14
# some removals
15
-sugar-emulator
16
-sugar-help
17
-sugar-xomail
18
19
# olpc
20
dracut-modules-olpc
21
ohm
22
olpc-kbdshim
23
24
# internet
25
alpine
26
27
# multimedia
159 by Sebastian Dziallas
add new base and desktop file and adjust build file
28
gnash-plugin
344 by Sebastian Dziallas
fix copy-to-datastore script
29
gtk-recordmydesktop
30
402 by Sebastian Dziallas
heavy refactoring for the upcoming soas-3 development
31
# system
32
PackageKit-browser-plugin
33
gettext
203 by Sebastian Dziallas
add gnome-power-manager to master branch
34
gnome-power-manager
402 by Sebastian Dziallas
heavy refactoring for the upcoming soas-3 development
35
gnugo
36
gparted
340 by Sebastian Dziallas
add livecd-tools to use liveusb-to-liveusb
37
livecd-tools
402 by Sebastian Dziallas
heavy refactoring for the upcoming soas-3 development
38
zyx-liveinstaller
39
40
# hardware
41
b43-openfwwf
42
libertas-usb8388-firmware
43
44
# sound
45
alsa-plugins-pulseaudio
46
alsa-utils
47
gstreamer-plugins-good
48
gstreamer-plugins-espeak
49
pulseaudio
50
51
# fonts
52
google-droid-fonts-common
53
google-droid-sans-fonts
54
google-droid-sans-mono-fonts
55
google-droid-serif-fonts
56
57
# strip fedora trademarks and use the soas release package
58
-fedora-logos
59
-fedora-release
60
-fedora-release-notes
61
generic-logos
62
generic-release
63
generic-release-notes
331 by Sebastian Dziallas
add FoodForce2 to the included activities
64
224 by Sebastian Dziallas
include the accidentally removed activities again
65
%end
66
159 by Sebastian Dziallas
add new base and desktop file and adjust build file
67
%post
176 by Sebastian Dziallas
try to fix activity and sample content installation
68
402 by Sebastian Dziallas
heavy refactoring for the upcoming soas-3 development
69
cat >> /etc/rc.d/init.d/livesys << EOF
70
# make sure the fonts are not too big in Sugar
71
echo "Xft.dpi: 150" > /home/liveuser/.Xresources
72
chown liveuser:liveuser /home/liveuser/.Xresources
73
74
EOF
75
76
# permanently set %__dbi_cdb rpm macro to work around jffs2's lack of writeable mmap()
77
mkdir -p /etc/rpm
78
echo "%__dbi_cdb create private nommap" > /etc/rpm/macros.rpmdb
79
332 by Sebastian Dziallas
add plymouth spec file for tracking
80
# change build strings
402 by Sebastian Dziallas
heavy refactoring for the upcoming soas-3 development
81
echo "SoaS release 3 (Snapshot)" > /etc/fedora-release
82
echo "cpe://o:sugarlabs:soas:3" > /etc/system-release-cpe
332 by Sebastian Dziallas
add plymouth spec file for tracking
83
402 by Sebastian Dziallas
heavy refactoring for the upcoming soas-3 development
84
# set up auto-login
85
cat >> /etc/gdm/custom.conf << FOE
86
[daemon]
87
AutomaticLoginEnable=true
88
AutomaticLogin=liveuser
159 by Sebastian Dziallas
add new base and desktop file and adjust build file
89
FOE
90
91
# disable the logout menu item in Sugar
92
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /desktop/sugar/show_logout false >/dev/null
93
402 by Sebastian Dziallas
heavy refactoring for the upcoming soas-3 development
94
# disable screensaver locking
95
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-screensaver/lock_enabled false >/dev/null
96
97
# set sugar power management on
98
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /desktop/sugar/power/automatic True >/dev/null
99
100
# change bug report page in browse
101
sed -i -e 's/dev.sugarlabs.org/launchpad.net\/soas/' /usr/share/sugar/activities/Browse.activity/data/index.html
102
103
# and do so for the e-book page too
104
sed -i -e 's/schoolserver\//wiki.sugarlabs.org\/go\/Sugar_on_a_Stick\/E-Books/' /usr/share/sugar/activities/Browse.activity/data/index.html
105
sed -i -e 's/school/books/' /usr/share/sugar/activities/Browse.activity/data/index.html
106
159 by Sebastian Dziallas
add new base and desktop file and adjust build file
107
# add more activities to the favorites
108
cat > /usr/share/sugar/data/activities.defaults << FOE
109
com.garycmartin.Moon
110
org.laptop.AbiWordActivity
111
org.laptop.Calculate
112
org.laptop.Chat
113
org.sugarlabs.InfoSlicer
114
org.sugarlabs.IRC
115
org.laptop.Memorize
116
org.laptop.Pippy
117
org.laptop.TurtleArtActivity
118
org.laptop.WebActivity
119
org.vpri.EtoysActivity
197 by Sebastian Dziallas
add paint labyrinth and record and remove terminal from the ring
120
org.laptop.Oficina
200 by Sebastian Dziallas
fix typo to get labyrinth in the ring
121
org.gnome.Labyrinth
201 by Sebastian Dziallas
add physics activity for previewing purposes
122
org.laptop.physics
159 by Sebastian Dziallas
add new base and desktop file and adjust build file
123
vu.lux.olpc.Speak
124
org.worldwideworkshop.olpc.JigsawPuzzle
393 by Sebastian Dziallas
add a new bunch of activities to the ring
125
org.laptop.TamTamEdit
126
org.laptop.TamTamJam
127
org.laptop.TamTamMini
128
org.laptop.TamTamSynthLab
129
org.laptop.sugar.GetIABooksActivity
130
org.laptop.Arithmetic
131
com.socialtext.SocialCalcActivity
132
org.sugarlabs.VisualMatchActivity
133
edu.mit.media.ScratchActivity
394 by Sebastian Dziallas
and another bunch of activities for the ring
134
org.laptop.community.TypingTurtle
135
vu.lux.olpc.Maze
136
org.laptop.sugar.ReadEtextsActivity
159 by Sebastian Dziallas
add new base and desktop file and adjust build file
137
FOE
138
402 by Sebastian Dziallas
heavy refactoring for the upcoming soas-3 development
139
# set sugar scaling
140
cat >> /etc/X11/xinit/xinitrc.d/70-sugar-scaling.sh << FOE
141
#!/bin/bash
142
# Copyright (C) 2009 Martin Dengler <martin@martindengler.com>
143
#
144
# All rights reserved. This copyrighted material is made available to anyone
145
# wishing to use, modify, copy, or redistribute it subject to the terms and
146
# conditions of the GNU General Public License version 2 or later.
147
#
148
# You should have received a copy of the GNU General Public License
149
# along with this program; if not, write to the Free Software
150
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
151
#
152
153
# Thanks to Chris Ball for the XO-detection logic
154
if [ -z "\$SUGAR_SCALING" ]; then
155
    DMI_PATH=/sys/clas/dmi/id/product_name
156
    OFW_PATH=/ofw/mfg-data/MN
157
    IS_XO=\$( ( [ -e \$DMI_PATH ] && cat \$DMI_PATH ) || ( [ -e \$OFW_PATH ] && cut -c -2 < \$OFW_PATH ) )
158
    export SUGAR_SCALING=72
159
    if [ "\$IS_XO" = "XO" ]; then
160
    	SUGAR_SCALING=100
161
    fi
162
fi
163
FOE
164
165
chmod 755 /etc/X11/xinit/xinitrc.d/70-sugar-scaling.sh
175 by Sebastian Dziallas
run copy-to-journal at boot time (and not during build)
166
173 by Sebastian Dziallas
add sample content for journal to image
167
%end