Commit e49ddeca authored by Guilherme Becker Agge's avatar Guilherme Becker Agge
Browse files

Tenta arrumar o erro no preremove

parent 1955c154
Pipeline #17758 passed with stages
in 3 minutes and 28 seconds
This diff is collapsed.
./etc/le-proinfodata/
./tmp/agent.run
./tmp/pyUFbr-0.1.0.tar.gz
./usr/local/
./usr/share/
./var/lib/AccountsService/users/seed_mec
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: le-proinfodata
Source: https://gitlab.c3sl.ufpr.br/le6/le-samba
Files: *
Copyright: 2017 Diego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
2017 Levi Gomes <lhgs15@inf.ufpr.br>
2017 C3SL <contato@c3sl.ufpr.br>
License: GPL-3.0+
On Debian systems, the complete text of the GNU General Public
License, version 3, can be found in /usr/share/common-licenses/GPL-3.
le-proinfodata_1.0.0_all.deb admin important
le-proinfodata_1.0.0_amd64.buildinfo admin important
dh_update_autotools_config
dh_prep
dh_install
dh_installdocs
dh_installchangelogs
dh_lintian
dh_perl
dh_usrlocal
dh_link
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_missing
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
# Automatically added by dh_python3:
if which py3compile >/dev/null 2>&1; then
py3compile -p le-proinfodata /usr/lib/le-proinfodata -V 3.2-
fi
# End automatically added section
# Automatically added by dh_python3:
if which py3clean >/dev/null 2>&1; then
py3clean -p le-proinfodata
else
dpkg -L le-proinfodata | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
fi
# End automatically added section
python3:Depends=python3:any (>= 3.2~), python3:any (>= 3.3.2-2~)
misc:Depends=
misc:Pre-Depends=
#!/bin/bash
#DEBHELPER#
# 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-proinfodata
#
# le-proinfodata 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.
# This is the postrm of proinfodata
set -e
SEED_MEC_HOME="/opt/seed_mec"
if test "$1" != "purge" -a -f "${SEED_MEC_HOME}/SEED2/client/conf/inep"; then
rm -rf "${SEED_MEC_HOME}/SEED2/"[^c]* \
"${SEED_MEC_HOME}/SEED2/"c[^l]* \
"${SEED_MEC_HOME}/SEED2/client/"[^c]* \
"${SEED_MEC_HOME}/SEED2/client/common.sh" \
"${SEED_MEC_HOME}/SEED2/client/conf/version"
else
rm -rf "${SEED_MEC_HOME}"
fi
exit 0
This diff is collapsed.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import os
from pyUFbr.baseuf import ufbr
LE_ZONE = "/etc/le-proinfodata/le.zone"
def print_list(l):
for e in l:
print(e)
def print_list_dict(ld):
for d in ld:
line = ""
first = True
for k, dk in d.iteritems():
if not first:
line = line+"\t"
line = line + str(dk)
first = False
print(line)
# =============MAIN==========
if len(sys.argv) < 2:
sys.exit("Informe uma opção")
opt = sys.argv[1]
if opt == 'states':
print_list(ufbr.list_uf)
elif opt == 'cities':
if len(sys.argv) < 3:
sys.exit("Informe o estado do telecentro")
state = sys.argv[2]
print_list(ufbr.list_cidades(state))
elif opt == 'institutes':
if len(sys.argv) < 4:
sys.exit("Informe o estado e a cidade do telecentro")
state = sys.argv[2]
city = sys.argv[3]
command = "cat {} | awk -F '|' '$2 == \"{}\" && $3 == \"{}\"'"\
.format(LE_ZONE, state, city)
os.system(command)
#!/bin/bash
# Copyright (C) 2004-2012 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
# This file is part of le-proinfodata
#
# exec_dialog.sh 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.
F_MULT="/tmp/.mult.lock"
F_LOCK="/tmp/.dialog.lock"
F_INEP="/opt/seed_mec/SEED2/client/conf/inep"
function enable_mouse () {
# Enable mouse right-click and left-click
xmodmap -e "pointer = default"
}
function disable_mouse () {
if [[ -z "$1" ]]; then
# Disable mouse right-click
xmodmap -e "pointer = 1 2 0 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32"
xmodmap -e "keycode 64 = "
else
# Disable mouse right-click and left-click
xmodmap -e "pointer = 0 2 0 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32"
xmodmap -e "keycode 64 = "
fi
}
function disable_keyboard () {
# Disable keyboard control-button and alt-button
xmodmap -e "remove Control = Control_L"
xmodmap -e "keycode 64 = "
}
function enable_keyboard () {
# Enable keyboard control-button and alt-button
xmodmap -e "add Control = Control_L"
xmodmap -e "keycode 64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L"
}
function call_dialog_inep_mult_off () {
# Disable mouse right-click
disable_mouse
# Disable keyboard control-button and alt-button
disable_keyboard
# Set background
dialog_inep.sh
# Reset background to default
xli -onroot -background black
# Enable mouse right-click
enable_mouse
# Enable keyboard control-button and alt-button
enable_keyboard
}
function call_dialog_inep_mult_on () {
# Disable user interaction
disable_mouse
# Disable keyboard control-button and alt-button
disable_keyboard
# Start Inep Dialog
dialog_inep.sh
# Enable user interaction
enable_gnome
enable_mouse
enable_keyboard
}
function warning_dialog_inep_on () {
# Disable user interaction
# Disable mouse right-click and left-click
disable_mouse "all"
# Disable keyboard control-button and alt-button
disable_keyboard
# Warning other INEP setting
while [ ! -e $F_LOCK ]; do
echo wait
sleep 1
done | zenity --progress --pulsate --no-cancel --auto-close --title="INEP" \
--text="Aguarde a configuração do PROINFODATA"
# Enable user interaction
enable_keyboard
enable_mouse
}
export LANG="pt_BR.UTF-8"
# SANITY CHECK -------------------------------------------------------
# Do not run script if we are on live-cd
# or the INEP code is already set
# or we are logging out
if dpkg --get-selections "ubiquity" | grep -q 'install$' ||
[ -f $F_INEP ] ||
[ -f $F_LOCK ]; then
exit 0
fi
# --------------------------------------------------------------------
# Check whether the computer is running on a the multiterminal
if dpkg --get-selections "le-multiterminal" | grep -q 'install$'; then
# In the first call (lightdm) in multiterminal this is script must leave, to be called again after.
(
flock -n 200
if ! $? ; then
warning_dialog_inep_on
else
call_dialog_inep_mult_on
touch $F_LOCK
fi
) 200>$F_MULT
else
call_dialog_inep_mult_off
touch $F_LOCK
fi
exit 0
C3SL - Centro de Computacao Cientifica e Software Livre
Adriano da Luz
André P. Ziviani
Andrey Ricardo Pimentel
Anna H. B. Strauch
Bruna M. Da Silva
Carlos Carvalho
Cleide Luzia Bonfim Possamai
Dalmon Ian Martins Oliveira
Daniel Weingaertner
Diego Giovane Pasqualin
Edemir Maciel
Edileuton H. De Oliveira
Eduardo Almeida
Eduardo Tainan Bergamini
Eduardo Todt
Erik Alexandre Pucci
Fabiano Silva
Isabella S. L. Borges
Jessiel H. Hacke
João G. Pauluk
Juliana Bueno
Klismann Smoger Mottin
Laura Sanchez Garcia
Leticia Mara Peres
Lior Spach
Lucas Falcão Radaelli
Lucas Manika Koeb
Lucas Pazelo
Lucas Silva Martins
Lucas Vinicius Semprebom Goncalves
Luis Carlos Erpen de Bona
Marcos Castilho
Marcos Sunye
Michael Liang
Mozart P. Tomazetti
Rafael Ravedutti Lucio Machado
Rogério S. Martins
Thiago A. Salvadori
Thiago H. S. Picharski
[Desktop Entry]
Type=Application
Exec=/usr/share/gnome/autostart/stop_screen.sh
Hidden=false
NoDisplay=true
X-GNOME-Autostart-enabled=true
Name[pt_BR]=INEP
Name=INEP
Comment[pt_BR]= Para Le-edubar e Gnome-panel
Comment= Stop Le-edubar and Gnome-panel
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment