diff --git a/le-pregao-712010/TODO b/le-pregao-712010/TODO new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/le-pregao-712010/VERSAO b/le-pregao-712010/VERSAO new file mode 100644 index 0000000000000000000000000000000000000000..3eefcb9dd5b38e2c1dc061052455dd97bcd51e6c --- /dev/null +++ b/le-pregao-712010/VERSAO @@ -0,0 +1 @@ +1.0.0 diff --git a/le-pregao-712010/gerar.sh b/le-pregao-712010/gerar.sh new file mode 100755 index 0000000000000000000000000000000000000000..adf7235568c89ba0f7ffcd08345250c0bdc279d3 --- /dev/null +++ b/le-pregao-712010/gerar.sh @@ -0,0 +1,62 @@ +#!/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 diff --git a/le-pregao-712010/pacote/DEBIAN/control b/le-pregao-712010/pacote/DEBIAN/control new file mode 100644 index 0000000000000000000000000000000000000000..0a10dec696e5e399379434d7f530c16faa86a674 --- /dev/null +++ b/le-pregao-712010/pacote/DEBIAN/control @@ -0,0 +1,8 @@ +Package: le-pregao-712010 +Version: 0.0.12 +Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br> +Architecture: i386 +Section: main +Priority: important +Depends: linux-image-2.6.32-29-generic-pae +Description: Especific changes to make LE4.0 work on "Pregao 71/2010" diff --git a/le-pregao-712010/pacote/DEBIAN/postinst b/le-pregao-712010/pacote/DEBIAN/postinst new file mode 100755 index 0000000000000000000000000000000000000000..4db0fa2dc02d98a98757fe19b1cb6c757d722969 --- /dev/null +++ b/le-pregao-712010/pacote/DEBIAN/postinst @@ -0,0 +1,36 @@ +#!/bin/bash + +# Copyright (C) 2004-2011 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR +# +# This file is part of le-pregao-712010 +# +# le-pregao-712010 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. + +echo "Running depmod..." +/sbin/depmod -a 2.6.32-29-generic-pae + +echo "Loading module rt3562sta" +modprobe rt3562sta || true + +echo "Restarting network interfaces" +/etc/init.d/networking restart || true + +# Set cups at complain mode and start cups +aa-complain cupsd +/etc/init.d/cups start + +exit 0 diff --git a/le-pregao-712010/pacote/DEBIAN/postrm b/le-pregao-712010/pacote/DEBIAN/postrm new file mode 100755 index 0000000000000000000000000000000000000000..c5da2e30d34b1f6f63f43e940c0f77ac3862958b --- /dev/null +++ b/le-pregao-712010/pacote/DEBIAN/postrm @@ -0,0 +1,29 @@ +#!/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-pregao-712010 +# +# le-pregao-712010 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. + +echo "Running depmod..." +/sbin/depmod -a 2.6.32-29-generic-pae + +echo "Restarting network interfaces" +/etc/init.d/networking restart || true + +exit 0 diff --git a/le-pregao-712010/pacote/DEBIAN/preinst b/le-pregao-712010/pacote/DEBIAN/preinst new file mode 100755 index 0000000000000000000000000000000000000000..d8c131377eb61690471eee07b927789e518c7c6f --- /dev/null +++ b/le-pregao-712010/pacote/DEBIAN/preinst @@ -0,0 +1,31 @@ +#!/bin/bash + +# Copyright (C) 2004-2011 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR +# +# This file is part of le-pregao-712010 +# +# le-pregao-712010 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. + +echo "Stopping apparmor..." +/etc/init.d/apparmor stop + +echo "Stopping cups" +/etc/init.d/cups stop + +rm -rf /etc/sysctl.d/* + +exit 0 diff --git a/le-pregao-712010/pacote/DEBIAN/prerm b/le-pregao-712010/pacote/DEBIAN/prerm new file mode 100755 index 0000000000000000000000000000000000000000..9b8ae296cdd0d764a37f1aa78d5e23aafca2b944 --- /dev/null +++ b/le-pregao-712010/pacote/DEBIAN/prerm @@ -0,0 +1,26 @@ +#!/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-pregao-712010 +# +# le-pregao-712010 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. + +echo "Unloading module rt3562sta" +rmmod rt3562sta || true + +exit 0 diff --git a/le-pregao-712010/pacote/etc/Wireless/RT3060STA/RT3060STA.dat b/le-pregao-712010/pacote/etc/Wireless/RT3060STA/RT3060STA.dat new file mode 100644 index 0000000000000000000000000000000000000000..9489c2969f2c46fb085f98db9b64c3799ed1bce9 --- /dev/null +++ b/le-pregao-712010/pacote/etc/Wireless/RT3060STA/RT3060STA.dat @@ -0,0 +1,58 @@ +#The word of "Default" must not be removed +Default +CountryRegion=5 +CountryRegionABand=7 +CountryCode= +ChannelGeography=1 +SSID=Dennis2860AP +NetworkType=Infra +WirelessMode=5 +Channel=0 +BeaconPeriod=100 +TxPower=100 +BGProtection=0 +TxPreamble=0 +RTSThreshold=2347 +FragThreshold=2346 +TxBurst=1 +PktAggregate=0 +WmmCapable=1 +AckPolicy=0;0;0;0 +AuthMode=OPEN +EncrypType=NONE +WPAPSK= +DefaultKeyID=1 +Key1Type=0 +Key1Str= +Key2Type=0 +Key2Str= +Key3Type=0 +Key3Str= +Key4Type=0 +Key4Str= +PSMode=CAM +AutoRoaming=0 +RoamThreshold=70 +APSDCapable=0 +APSDAC=0;0;0;0 +HT_RDG=1 +HT_EXTCHA=0 +HT_OpMode=0 +HT_MpduDensity=4 +HT_BW=1 +HT_AutoBA=1 +HT_BADecline=0 +HT_AMSDU=0 +HT_BAWinSize=64 +HT_GI=1 +HT_MCS=33 +HT_MIMOPSMode=3 +HT_DisallowTKIP=1 +HT_STBC=0 +IEEE80211H=0 +TGnWifiTest=0 +WirelessEvent=0 +CarrierDetect=0 +AntDiversity=0 +BeaconLostTime=4 +PSP_XLINK_MODE=0 diff --git a/le-pregao-712010/pacote/etc/modprobe.d/em28xx.conf b/le-pregao-712010/pacote/etc/modprobe.d/em28xx.conf new file mode 100644 index 0000000000000000000000000000000000000000..35097dca78efc7c3083b8db5eb515ccf44afc5af --- /dev/null +++ b/le-pregao-712010/pacote/etc/modprobe.d/em28xx.conf @@ -0,0 +1,3 @@ +# Video/audio capture device configuration +# Used only on Linux Educational server +options em28xx card=2 diff --git a/le-pregao-712010/pacote/etc/sysctl.d/bindv6only.conf b/le-pregao-712010/pacote/etc/sysctl.d/bindv6only.conf new file mode 100644 index 0000000000000000000000000000000000000000..fdc4b97a8d6a068dd1cb28a90b35f92f78874a80 --- /dev/null +++ b/le-pregao-712010/pacote/etc/sysctl.d/bindv6only.conf @@ -0,0 +1,11 @@ +# This sysctl sets the default value of the IPV6_V6ONLY socket option. +# +# When disabled, IPv6 sockets will also be able to send and receive IPv4 +# traffic with addresses in the form ::ffff:192.0.2.1 and daemons listening +# on IPv6 sockets will also accept IPv4 connections. +# +# When IPV6_V6ONLY is enabled, daemons interested in both IPv4 and IPv6 +# connections must open two listening sockets. +# This is the default behaviour of almost all modern operating systems. + +net.ipv6.bindv6only = 0 diff --git a/le-pregao-712010/pacote/lib/modules/2.6.32-29-generic-pae/kernel/drivers/net/wireless/rt3562sta.ko b/le-pregao-712010/pacote/lib/modules/2.6.32-29-generic-pae/kernel/drivers/net/wireless/rt3562sta.ko new file mode 100644 index 0000000000000000000000000000000000000000..bcd2b9fac0d987fe0a0be263fe00568b963acc22 Binary files /dev/null and b/le-pregao-712010/pacote/lib/modules/2.6.32-29-generic-pae/kernel/drivers/net/wireless/rt3562sta.ko differ diff --git a/le-pregao-712010/pacote/usr/local/bin/le-netconfig.sh b/le-pregao-712010/pacote/usr/local/bin/le-netconfig.sh new file mode 100755 index 0000000000000000000000000000000000000000..2c1f65c851c9b970d21e1d6f24b9b59a7ec7d769 --- /dev/null +++ b/le-pregao-712010/pacote/usr/local/bin/le-netconfig.sh @@ -0,0 +1,57 @@ +#!/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-pregao-712010 +# +# le-pregao-712010 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. + +CONFIG="$HOME/.kde/share/config/networkmanagementrc" +uuid=$(ls /usr/share/kde4/apps/networkmanagement/connections/) + +if test ! -d "$HOME/.kde/share/apps/networkmanagement/connections"; then + mkdir -p "$HOME/.kde/share/apps/networkmanagement/connections" +fi + +for con in $uuid; do + ln -sf /usr/share/kde4/apps/networkmanagement/connections/$con \ + $HOME/.kde/share/apps/networkmanagement/connections/$con +done + +name=$(kreadconfig --file $CONFIG --group Connection_$uuid --key Name) +if [[ $name != "proinfo71" ]]; then + kwriteconfig --file $CONFIG --group Connection_$uuid \ + --key Name proinfo71 + kwriteconfig --file $CONFIG --group Connection_$uuid \ + --key Type 802-11-wireless +fi + +old=$(kreadconfig --file $CONFIG --group General --key Connections) + +for net in $uuid; do + if ! grep -q "Connections=.*$net.*" $CONFIG; then + if test "$old" == ""; then + kwriteconfig --file $CONFIG --group General \ + --key Connections $uuid + else + kwriteconfig --file $CONFIG --group General \ + --key Connections $old,$uuid + fi + fi +done + +chown -R --reference="$HOME" "$HOME/.kde" diff --git a/le-pregao-712010/pacote/usr/share/kde4/apps/networkmanagement/connections/{88f47d3f-d98e-41ad-b90a-a4bd37bf50d5} b/le-pregao-712010/pacote/usr/share/kde4/apps/networkmanagement/connections/{88f47d3f-d98e-41ad-b90a-a4bd37bf50d5} new file mode 100644 index 0000000000000000000000000000000000000000..5eb531da46417000a756679727fcf6b58e30fc99 --- /dev/null +++ b/le-pregao-712010/pacote/usr/share/kde4/apps/networkmanagement/connections/{88f47d3f-d98e-41ad-b90a-a4bd37bf50d5} @@ -0,0 +1,49 @@ +[802-11-wireless] +band=bg +bssid= +channel=0 +macaddress= +mode=infrastructure +mtu=0 +rate=0 +security=802-11-wireless-security +seenbssids= +ssid=proinfo71 +txpower=0 + +[802-11-wireless-security] +authalg=none +group= +keymgmt=WPAPSK +leappassword= +leapusername= +pairwise= +proto= +psk=proinfourbano712010 +securityType=WpaPsk +wepkey0= +wepkey1= +wepkey2= +wepkey3= +weppassphrase= +weptxkeyindex=0 + +[connection] +autoconnect=true +icon=network-wireless +id=proinfo71 +timestamp= +type=802-11-wireless +uuid={88f47d3f-d98e-41ad-b90a-a4bd37bf50d5} + +[ipv4] +addresses= +dhcpclientid= +dhcphostname= +dns= +dnssearch= +ignoreautoroute=false +ignoredhcpdns=false +method=Automatic +neverdefault=false +routes=