# -*-mic2-options-*- -f fs --record-pkgs=name --pkgmgr=yum -*-mic2-options-*-
# 
# Do not Edit! Generated by:
# kickstarter.py
# 

lang en_US.UTF-8
keyboard us
timezone --utc UTC


rootpw mer 

user --name mer  --groups audio,video --password mer 

repo --name=mer-core --baseurl=http://releases.merproject.org/releases/0.20130411.1/builds/armv7hl/packages --save --debuginfo --source --debuginfo --debuginfo
repo --name=mer-core-debug --baseurl=http://releases.merproject.org/releases/0.20130411.1/builds/armv7hl/debug --save --debuginfo --source
#repo --name=mer-core --baseurl=http://releases.merproject.org/releases/latest/builds/armv7hl/packages --save --debuginfo --source --debuginfo
#repo --name=mer-core-debug --baseurl=http://releases.merproject.org/releases/latest/builds/armv7hl/debug --save --debuginfo --source
repo --name=adaptation-archos-gen9-pvr --baseurl=http://repo.merproject.org/obs/home:/wonko:/archos-g9-pa-adaptation:/pvr/latest_armv7hl/ --save --debuginfo --source
repo --name=mer-updates --baseurl=http://repo.merproject.org/obs/kde:/devel:/mer-updates/latest_armv7hl/ --save --debuginfo --source
repo --name=kde-mw --baseurl=http://repo.merproject.org/obs/kde:/devel:/mw/latest_armv7hl/ --save --debuginfo --source
repo --name=adaptation-archos-gen9 --baseurl=http://repo.merproject.org/obs/home:/wonko:/archos-g9-pa-adaptation/latest_armv7hl/ --save --debuginfo --source
repo --name=kde-apps --baseurl=http://repo.merproject.org/obs/kde:/devel:/apps/latest_armv7hl/ --save --debuginfo --source
repo --name=nemo-mw --baseurl=http://releases.nemomobile.org/snapshots/repos/platform/0.20130426.0.1/armv7hl/ --save --debuginfo --source
#repo --name=nemo-mw --baseurl=http://repo.merproject.org/obs/nemo:/devel:/mw/latest_armv7hl/ --save --debuginfo --source
repo --name=kde-ux --baseurl=http://repo.merproject.org/obs/kde:/devel:/ux/latest_armv7hl/ --save --debuginfo --source


# See NEW_STUFF_FOO below
repo --name=nemo-apps --baseurl=http://repo.merproject.org/obs/nemo:/devel:/apps/latest_armv7hl/ --save
repo --name=wonko-nemo-compatibility --baseurl=http://repo.merproject.org/obs/home:/wonko:/pa:/nemo-compatibility/latest_armv7hl/ --save


%packages
@Mer Core Utils
@Mer Core
@Mer Connectivity
@Mer Minimal Xorg

kernel-adaptation-archos-gen9-pvr

nemo-mobile-session
contextkit-plugin-upower
plasma-mobile-config-archos-gen9-pvr
plasma-mobile-config-archos-gen9-pvr-blacklist
pvr-archos-gen9-kernel
pvr-omap4-libEGL
pvr-omap4-libGLESv1
pvr-omap4-libGLESv2
alsa-mixer-asound-state-archos-gen9
archos-udev-rules
libwl1271-bin
linux-firmware
pixcir-touch-callibration
pm-utils-config-wlan-archos
xorg-conf-archos-gen9
xorg-x11-drv-evdev
xorg-x11-drv-mtev
xorg-x11-server-Xorg-setuid
-connman
-connman-test
-connman-configs-mer
droid-sans-fonts
droid-sans-mono-fonts
droid-serif-fonts
liberation-fonts-common
liberation-mono-fonts
liberation-narrow-fonts
liberation-sans-fonts
liberation-serif-fonts
cpio
gzip
openssh-server
libqtwebkit-qmlwebkitplugin
xorg-x11-drv-fbdev
xorg-x11-drv-vesa
xorg-x11-utils-xhost
xorg-x11-server-Xorg-setuid
dbus-x11
libqtdeclarative4-gestures
libdeclarative-multimedia
alsa-utils
gdb
gst-plugins-good
ca-certificates
pulseaudio-policy-enforcement
iodbc
contour
contour-intro
declarative-plasmoids
kdelibs-data
kdelibs-imageio-plugins
kdelibs-plasma-runtime
kdepim-strigi-plugins
kde-runtime-desktoptheme
kde-runtime-emoticons
kde-runtime-nepomuk
kde-runtime-netattach
kde-runtime-newstuff
kde-runtime-plasma
kde-runtime-solid
kde-runtime-sounds
kde-runtime-wallet
konsole
kmix
plasma-active
plasma-mobile-mouse
startactive
virtuoso
virtuoso-drivers
virtuoso-server
kdialog
simple-tests
sample-media
ConsoleKit
ConsoleKit-libs
ConsoleKit-x11
dhclient
libpcap
ModemManager
NetworkManager
NetworkManager-glib
NetworkManager-kde
NetworkManager-kde-libs
plasmoid-networkmanagement
plasma-active-config-blacklist
bodega-client
ssu-vendor-data-kde
encfs
fuse
rlog
kpat
kwrite
plasma-mediacenter
-okular


#########################################
# New stuff for testing. This includes: #
# Nemo Compatibility and some Nemo apps #
# Bluetooth                             #
# FW-Installer                          #
# Telepathy (XMPP)                      #
#                                       #
# See also NEW_STUFF_FOO below.     #
#########################################
qt-components-nemo-compatibility
libmeegotouch
libmeegotouch-l10n-en
libdeclarative-location
mapplauncherd
meegotouch-theme
meegotouch-theme-darko

com.substanceofcode.kasvopus
com.substanceofcode.twimgo
meepasswords
qtodo
stellarium-n9
puzzle-master
emumaster

telepathy-filesystem
telepathy-gabble
telepathy-glib
telepathy-mission-control
telepathy-qt4
telepathy-ring
accounts-ui
qmlmessages
qmlgallery


%end

%post

# save a little bit of space at least...
rm -f /boot/initrd*

# make sure there aren't core files lying around
rm -f /core*



# Prelink can reduce boot time
if [ -x /usr/sbin/prelink ]; then
    /usr/sbin/prelink -aRqm
fi

echo "export KDE_IS_PRELINKED=1">/etc/profile.d/kde.sh


# NEW_STUFF_FOO
# Hack to get theming of QML apps right.
ln -s /usr/share/themes/darko /usr/share/themes/blanco
#rm /home/mer/.kde/share/config/kwinrulesrc
cp /usr/share/kde4/config/kwinactiverulesrc /home/mer/.kde/share/config/kwinrulesrc
chown mer:mer /home/mer/.kde/share/config/kwinrulesrc
rm /usr/share/kde4/apps/kwin/default_rules/fsp_workarounds_1.kwinrules




 
cat > /usr/share/xsessions/X-MEEGO-HS.plasmaactive << EOF
[Desktop Entry]
Version=1.0
Name=plasma active session
Exec=/usr/bin/startactive
Type=Application
EOF

# Set symlink pointing to .desktop file 

ln -sf X-MEEGO-HS.plasmaactive /usr/share/xsessions/default.desktop

 
ln -s /lib/systemd/system/getty@.service /lib/systemd/system/getty.target.wants/getty@tty2.service

 
# kde-security: load the fuse module
#echo "/sbin/modprobe fuse" >> /etc/modprobe.d/dist.conf
mkdir -p /etc/modules-load.d/
echo "fuse" > /etc/modules-load.d/fuse.conf



%end

%post --nochroot

if [ -n "$IMG_NAME" ]; then
    echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release
fi



%end
