Commit f4ecb4ac authored by Thiago H. S. Picharski's avatar Thiago H. S. Picharski

Merge remote branch 'le-interface/master'

Signed-off-by: default avatarThiago H. S. Picharski <thsp08@c3sl.ufpr.br>
parents f7c18d29 2c3fb17a
#!/bin/bash
# gerar.sh
# Copyright (c) 2006 by Bruno Ribas <ribas@ufpr.br>
DIRTMP=$(mktemp -d)
VERSAO=$(cat VERSAO)
#arrumar versao
#$1 tipo de incremento
MAJOR=$(echo $VERSAO| cut -d'.' -f1)
MINOR=$(echo $VERSAO| cut -d'.' -f2)
REVISION=$(echo $VERSAO| cut -d'.' -f3)
case $1 in
Minor)
((MINOR++))
REVISION=0
;;
Major)
((MAJOR++))
MINOR=0
REVISION=0
;;
help)
echo "Uso: $0 Major|Minor|Revision"
echo ' Major - Altera versao Major'
echo ' Minor - Altera versao Minor'
exit
;;
*)
((REVISION++))
;;
esac
VERSAO="${MAJOR}.${MINOR}.${REVISION}"
echo "$VERSAO" > VERSAO
#Compila a documentacao do pacote no diretorio doc/
#cd doc/
#hevea -text *.tex
#hevea -text *.tex
#cd ../
cp -r pacote $DIRTMP
#Copia a documentacao compilada para dentro do pacote.
#cp doc/*.txt $DIRTMP/pacote/usr/share/doc/prd-*
cd $DIRTMP
find . -name ".svn" -exec rm -rf {} \; &>/dev/null
sed -i -e "s/Version:/Version: $VERSAO/" pacote/DEBIAN/control
fakeroot dpkg -b pacote .
cd -
cp $DIRTMP/*deb .
rm -rf $DIRTMP
# vim:tabstop=4:shiftwidth=4:encoding=iso-8859-1
Package: le-interface
Priority: important
Section: main
Version:
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
Description: KDE4 user interface and desktop configuration for Linux Educacional
Architecture: i386
Depends: kdm, le-kubuntu-theme, le-icon-theme, le-wallpaper, le-kdm-theme,
le-splash, le-search, le-help, firefox, slay,
kwin-style-crystal, kde-style-qtcurve, synaptic, plasma-widget-cashew-off
#!/bin/bash
#
# Copyright (C) 2004-2010 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-interface
#
# le-interface is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
# Paths
DEFAULTCONFPATH=/etc/skel/.kde/share/config
KDEPATH=.kde
BACKUPFOLDER=.le-conf-backup
# Configuration files
GLOBALS=kdeglobals
KWIN=kwinrc
PDA=plasma-desktop-appletsrc
SPLASH=ksplashrc
PLASMA=plasmarc
LAUNCH=klaunchrc
# Change kdm theme
kwriteconfig --file /etc/kde4/kdm/kdmrc --group X-*-Greeter \
--key Theme /usr/share/kde4/apps/kdm/themes/le
# Reconfigure some options of kdm
kwriteconfig --file /etc/kde4/kdm/kdmrc --group X-*-Greeter \
--key AllowConsole false
kwriteconfig --file /etc/kde4/kdm/kdmrc --group X-*-Greeter \
--key UseTheme true
kwriteconfig --file /etc/kde4/kdm/kdmrc --group X-*-Greeter \
--key ColorScheme LinuxEducacionalKDM
kwriteconfig --file /etc/kde4/kdm/kdmrc --group X-*-Greeter \
--key GUIStyle QtCurve
kwriteconfig --file /etc/kde4/kdm/kdmrc --group X-*-Greeter \
--key Language pt_BR
kwriteconfig --file /etc/kde4/kdm/kdmrc --group X-:*-Greeter \
--key AllowClose false
kwriteconfig --file /etc/kde4/kdm/kdmrc --group X-:*-Greeter \
--key LoginMode LocalOnly
kwriteconfig --file /etc/kde4/kdm/kdmrc --group X-:*-Greeter \
--key FaceSource AdminOnly
# Copy default configuration files
userlist=$(getent passwd | tr " " "-" | grep "/home/")
for lin in $userlist; do
user=$(echo $lin | awk -F ':' '{ print $1 }')
id=$(echo $lin | awk -F ':' '{ print $3 }')
uhome=$(echo $lin | awk -F ':' '{ print $6 }')
if test $id -gt 999; then
confpath=$uhome/$KDEPATH
if ! test -d $confpath; then
mkdir -p $confpath/share/config
chown -R --reference=$uhome $confpath
fi
# Create backup folder
bkppath=$uhome/$BACKUPFOLDER
if ! test -d $bkppath; then
mkdir -p $bkppath
fi
# Make backup of all configuration files at .kde/share/config
mv -n $confpath/* $bkppath
mkdir -p $confpath/share/config
ln -s -T /var/tmp/kdecache-$user $confpath/cache-$HOSTNAME
ln -s -T /tmp/ksocket-$user $confpath/socket-$HOSTNAME
ln -s -T /tmp/kde-$user $confpath/tmp-$HOSTNAME
cp $DEFAULTCONFPATH/* $confpath/share/config/
chown --reference=$confpath -R $confpath
fi
done
# Verify if le-device-notifier is installed
if test $(dpkg -l le-device-notifier | grep -c '^ii') -ne 0; then
# Enable le-device-notifier
sed -i "s@notifier@notifier_automount@g" $DEFAULTCONFPATH/$PDA
fi
# Rebuild cache of system configuration
kbuildsycoca4 &> /dev/null
#!/bin/bash
#
# Copyright (C) 2004-2010 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-interface
#
# le-interface is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
# Paths
KDPATH=/usr/share/kubuntu-default-settings/kde4-profile/default/share
KDMPATH=/etc/kde4/kdm
KDEPATH=.kde
NOTIFYPATH=/usr/share/kde4/apps/kde
DEFAULTICONPATH=/usr/share/icons/oxygen
BACKUPFOLDER=.le-conf-backup
LCMSGPATH=/usr/share/locale-langpack/pt_BR/LC_MESSAGES
XDGPATH=/etc/xdg/menus
KONQPROFILES=/usr/share/kde4/apps/konqueror/profiles
# Configuration files
GLOBALS=kdeglobals
KWIN=kwinrc
PDA=plasma-desktop-appletsrc
SPLASH=ksplashrc
PLASMA=plasmarc
LAUNCH=klaunchrc
SYSSETTINGS=systemsettingsrc
KDSETUP=01-kubuntu-default-setup.js
CACHE=icon-theme.cache
STARTUP=Xstartup
RESET=Xreset
KDM=kdmrc
KDENOTIFY=kde.notifyrc
MENU=kde4-applications.menu
KONQCONFIG=webbrowsing
KONQRC=konquerorrc
# Language files
DESKTOP=plasma_applet_showdesktop.mo
LAUNCHER=plasma_applet_launcher.mo
# List of files to divert
divertList="
$KDPATH/apps/plasma-desktop/init/$KDSETUP \
$KDPATH/config/$GLOBALS \
$KDPATH/config/$KWIN \
$KDPATH/config/$PDA \
$KDPATH/config/$SPLASH \
$KDPATH/config/$PLASMA \
$KDPATH/config/$LAUNCH \
$KDPATH/config/$SYSSETTINGS \
$KDPATH/config/$KONQRC \
$KDMPATH/$KDM \
$KDMPATH/$STARTUP \
$KDMPATH/$RESET \
$LCMSGPATH/$DESKTOP \
$LCMSGPATH/$LAUNCHER \
$XDGPATH/$MENU \
$NOTIFYPATH/$KDENOTIFY \
$DEFAULTICONPATH/$CACHE \
$KONQPROFILES/$KONQCONFIG
"
# Divert files
if [[ "$1" != "upgrade" ]]; then
for file in $divertList; do
if test -e $file.real; then
rm -f $file
dpkg-divert --package le-interface --remove --rename \
--divert $file{.real,}
fi
done
fi
# Restore user config files
userlist=$(getent passwd | tr " " "-" | grep "/home/")
for lin in $userlist; do
id=$(echo $lin | awk -F ':' '{ print $3 }')
uhome=$(echo $lin | awk -F ':' '{ print $6 }')
if test $id -gt 999; then
confpath=$uhome/$KDEPATH
bkppath=$uhome/$BACKUPFOLDER
if test -d $bkppath; then
# Restore backup
rm -rf $confpath
mkdir -p $confpath
cp -r $bkppath/* $confpath
chown -R --reference=$uhome $confpath
# Remove backup directory
rm -rf $bkppath
fi
fi
done
# Rebuild cache of system configuration
kbuildsycoca4 &> /dev/null
#!/bin/bash
#
# Copyright (C) 2004-2010 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-interface
#
# le-interface is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
# Paths
KDPATH=/usr/share/kubuntu-default-settings/kde4-profile/default/share
KDMPATH=/etc/kde4/kdm
KDEPATH=.kde/share/config
NOTIFYPATH=/usr/share/kde4/apps/kde
DEFAULTICONPATH=/usr/share/icons/oxygen
LCMSGPATH=/usr/share/locale-langpack/pt_BR/LC_MESSAGES
XDGPATH=/etc/xdg/menus
KONQPROFILES=/usr/share/kde4/apps/konqueror/profiles
# Configuration files
GLOBALS=kdeglobals
KWIN=kwinrc
PDA=plasma-desktop-appletsrc
SPLASH=ksplashrc
PLASMA=plasmarc
LAUNCH=klaunchrc
SYSSETTINGS=systemsettingsrc
KDSETUP=01-kubuntu-default-setup.js
CACHE=icon-theme.cache
STARTUP=Xstartup
RESET=Xreset
KDM=kdmrc
KDENOTIFY=kde.notifyrc
MENU=kde4-applications.menu
KONQCONFIG=webbrowsing
KONQRC=konquerorrc
# Language files
DESKTOP=plasma_applet_showdesktop.mo
LAUNCHER=plasma_applet_launcher.mo
# List of files to divert
divertList="
$KDPATH/apps/plasma-desktop/init/$KDSETUP \
$KDPATH/config/$GLOBALS \
$KDPATH/config/$KWIN \
$KDPATH/config/$PDA \
$KDPATH/config/$SPLASH \
$KDPATH/config/$PLASMA \
$KDPATH/config/$LAUNCH \
$KDPATH/config/$SYSSETTINGS \
$KDPATH/config/$KONQRC \
$KDMPATH/$KDM \
$KDMPATH/$STARTUP \
$KDMPATH/$RESET \
$LCMSGPATH/$DESKTOP \
$LCMSGPATH/$LAUNCHER \
$XDGPATH/$MENU \
$NOTIFYPATH/$KDENOTIFY \
$DEFAULTICONPATH/$CACHE \
$KONQPROFILES/$KONQCONFIG
"
# Divert files
for file in $divertList; do
if test -f $file; then
dpkg-divert --package le-interface --add --rename \
--divert $file{.real,}
fi
done
# Copy /etc/kde4/kdm/kdmrc
if test -f $KDMPATH/kdmrc.real; then
cp $KDMPATH/kdmrc.real $KDMPATH/kdmrc
fi
#! /bin/sh
# Xreset - run as root after session exits
# Reassign ownership of the console to root, this should disallow
# assignment of console output to any random users's xterm. See Xstartup.
#
#chown root /dev/console
#chmod 622 /dev/console
# XDM configurations typically have sessreg here. KDM has it built-in.
if groups $USER | grep -q "\<freeze\>"; then
slay $USER
slay -9 $USER
fi
#! /bin/sh
# Xstartup - run as root before session starts
PATH="$PATH:/usr/bin/X11"
if [ -e /etc/nologin ]; then
# always display the nologin message, if possible
if [ -s /etc/nologin ] && which xmessage > /dev/null 2>&1; then
xmessage -file /etc/nologin -geometry 640x480
fi
if [ "$(id -u)" != "0" ] && \
! grep -qs '^ignore-nologin' /etc/kde4/kdm/kdm.options; then
exit 1
fi
fi
# Invoke LE scripts
# Paths
SHPATH=/usr/local/bin
# Scripts
KONQUEROR=le-konqueror.sh
BROWSER=le-browser.sh
DESKTOP=le-interface-config-recovery.sh
EDUBAR=le-edubar-fixed-position.sh
CASHEW=le-interface-cashew.sh
KWIN=le-interface-kwin.sh
MENU=le-interface-menus.sh
VIA=le-interface-via-fix.sh
NETWORK=le-interface-network.sh
NETCONFIG=le-netconfig.sh
SOUNDCONFIG=le-soundconfig.sh
# Scripts lists for non-freeze and freeze users, and a commom scripts list
COMMONSCRIPTS="
$SHPATH/$KWIN \
$SHPATH/$MENU \
$SHPATH/$EDUBAR \
$SHPATH/$VIA \
$SHPATH/$NETWORK \
$SHPATH/$NETCONFIG \
$SHPATH/$SOUNDCONFIG
"
NFSCRIPTS="
$SHPATH/$CASHEW \
$COMMONSCRIPTS
"
FSCRIPTS="
$SHPATH/$KONQUEROR \
$SHPATH/$BROWSER \
$SHPATH/$DESKTOP \
$COMMONSCRIPTS
"
# Execute scripts according to user groups
if groups $USER | grep -q "\<freeze\>"; then
for script in ${FSCRIPTS}; do
bash $script &>/dev/null
done
else
for script in ${NFSCRIPTS}; do
bash $script &>/dev/null
done
fi
# NOTE: The session is aborted if the last command returns non-zero.
[ColumnMode]
FontWeight=50
[DetailsMode]
FontWeight=50
[General]
EditableUrl=true
FilterBar=true
FirstRun=false
ShowFullPath=true
ShowZoomSlider=false
ViewPropsTimestamp=2010,10,8,10,37,53
[IconsMode]
FontWeight=50
PreviewSize=32
[MainWindow]
State=AAAA/wAAAAD9AAAAAwAAAAAAAAClAAAByvwCAAAAAvsAAAAWAGYAbwBsAGQAZQByAHMARABvAGMAawEAAAA2AAABygAAAGMA////+wAAABQAcABsAGEAYwBlAHMARABvAGMAawAAAAESAAAA4gAAAGMA////AAAAAQAAAK4AAAG+/AIAAAAB+wAAABAAaQBuAGYAbwBEAG8AYwBrAAAAADYAAAG+AAAAFwD///8AAAADAAAC7gAAAOT8AQAAAAH7AAAAGAB0AGUAcgBtAGkAbgBhAGwARABvAGMAawAAAAAAAAAC7gAAAEsA////AAACKwAAAcoAAAAEAAAABAAAAAgAAAAI/AAAAAEAAAACAAAAAgAAABYAbQBhAGkAbgBUAG8AbwBsAEIAYQByAQAAAAD/////AAAAAAAAAAAAAAAaAHMAZQBhAHIAYwBoAFQAbwBvAGwAQgBhAHIAAAAAAv////8AAAAAAAAAAA==
ToolBarsMovable=Disabled
[MainWindow][Toolbar mainToolBar]
ToolButtonStyle=IconOnly
[PreviewSettings]
Plugins=directorythumbnail,imagethumbnail,jpegthumbnail
[SettingsDialog]
Height 1024=469
Height 768=431
Width 1280=512
Width 1360=601
[Toolbar mainToolBar]
ToolButtonStyle=IconOnly
[ViewPropertiesDialog]
Height 1024=434
Width 1280=344
[$Version]
update_info=kaccel.upd:kde3.3/r1,mouse_cursor_theme.upd:kde3.4.99,kwin.upd:kde3.2Xinerama,kded.upd:kde3.0
[ColorEffects:Disabled]
Color=197,179,153
ColorAmount=0.5
ColorEffect=2
ContrastAmount=0.25
ContrastEffect=1
IntensityAmount=0.25
IntensityEffect=0
[ColorEffects:Inactive]
Color=213,198,176
ColorAmount=0.1
ColorEffect=2
ContrastAmount=0.2
ContrastEffect=1
Enable=false
IntensityAmount=-0.05
IntensityEffect=0
[Colors:Button]
BackgroundAlternate=246,240,227
BackgroundNormal=247,242,232
DecorationFocus=128,112,96
DecorationHover=102,153,0
ForegroundActive=32,95,86
ForegroundInactive=197,179,153
ForegroundLink=0,87,174
ForegroundNegative=232,87,82
ForegroundNeutral=227,170,0
ForegroundNormal=0,0,0
ForegroundPositive=93,102,110
ForegroundVisited=100,74,155
[Colors:Selection]
BackgroundAlternate=27,131,196
BackgroundNormal=102,153,0
DecorationFocus=128,112,96
DecorationHover=102,153,0
ForegroundActive=32,95,86
ForegroundInactive=50,148,133
ForegroundLink=0,87,174
ForegroundNegative=232,87,82
ForegroundNeutral=227,170,0
ForegroundNormal=255,255,255
ForegroundPositive=93,102,110
ForegroundVisited=100,74,155
[Colors:Tooltip]
BackgroundAlternate=250,248,241
BackgroundNormal=253,252,251
DecorationFocus=128,112,96
DecorationHover=102,153,0
ForegroundActive=32,95,86
ForegroundInactive=197,179,153
ForegroundLink=0,87,174
ForegroundNegative=232,87,82
ForegroundNeutral=227,170,0
ForegroundNormal=0,0,0
ForegroundPositive=93,102,110
ForegroundVisited=100,74,155
[Colors:View]
BackgroundAlternate=250,246,239
BackgroundNormal=253,252,250
DecorationFocus=128,112,96
DecorationHover=102,153,0
ForegroundActive=32,95,86
ForegroundInactive=197,179,153
ForegroundLink=0,87,174
ForegroundNegative=232,87,82
ForegroundNeutral=227,170,0
ForegroundNormal=0,0,0
ForegroundPositive=93,102,110
ForegroundVisited=100,74,155
[Colors:Window]
BackgroundAlternate=233,223,206
BackgroundNormal=244,246,231
DecorationFocus=128,112,96
DecorationHover=102,153,0
ForegroundActive=32,95,86
ForegroundInactive=197,179,153
ForegroundLink=0,87,174
ForegroundNegative=232,87,82
ForegroundNeutral=227,170,0
ForegroundNormal=0,78,46
ForegroundPositive=93,102,110
ForegroundVisited=100,74,155
[General]
BrowserApplication[$e]=firefox.desktop
Name=LinuxEducacional
shadeSortColumn=true
widgetStyle=qtcurve
[KDE]
contrast=2
SingleClick=false
[WM]
activeBackground=135,175,38
activeForeground=255,255,255
inactiveBackground=216,202,178
inactiveForeground=255,255,255
[PreviewSettings]
UseFileThumbnails=true
[Toolbar style]
ToolButtonStyle=TextBesideIcon
[Emoticons]
emoticonsTheme=kde4
[Notification Messages]
:confirmNewSession=false
[Icons]
Theme=le-icons