Commit 5c6b05b1 authored by Thiago H. S. Picharski's avatar Thiago H. S. Picharski

Merge remote branch 'le-proinfodata-installer/master'

Signed-off-by: default avatarThiago H. S. Picharski <thsp08@c3sl.ufpr.br>
parents 6b5a478e f753e3e2
#!/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
# Gera o le-proinfodata.deb
./le-proinfodata-deb.sh
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
#!/bin/bash
# This script generates the le-proinfodata debian package
# Copyright (C) 2010-2012 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-proinfodata-installer
#
# le-proinfodata-installer 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.
PREFIX="$(dirname $(readlink -f $0))"
LEPIDURL="http://git.c3sl.ufpr.br/pub/scm/le/le-proinfodata.git"
LEPIDDIR="${PREFIX}/le-proinfodata"
LEPIDDEST="${PREFIX}/pacote/etc/le-proinfodata-installer"
# Check if the le-proinfodata debian package already exists
if test -f "${LEPIDDEST}/"le-proinfodata_*.deb; then
printf "le-proinfodata debian package already exists. Skipping %b"\
"generation.\n"
exit 0
fi
# Check if the le-proinfodata repository directory already exists, cloning it
# otherwise
if ! test -d "${LEPIDDIR}"; then
if ! git clone "${LEPIDURL}" "${LEPIDDIR}"; then
printf "ERROR (1): problems while executing git clone(1).\n"
exit 1
fi
fi
# Change to le-proinfodata directory
cd "${LEPIDDIR}"
# Ensure the le-proinfodata repository is updated
if ! git pull; then
printf "ERROR (2): problems while executing git pull(1).\n"
exit 2
fi
# Generate the debian package
if ! ./gerar.sh; then
printf "ERROR (3): problems while generating le-proinfodata deb.\n"
exit 3
fi
# Ensure the directory where the le-proinfodata deb should be placed exists
mkdir -p "${LEPIDDEST}"
# Get the most updated deb
LEPIDDEB="$(ls "${LEPIDDIR}" | grep le-proinfodata | sort | tail -n 1)"
# Copy the le-proinfodata debian package to the correct place
cp "${LEPIDDEB}" "${LEPIDDEST}/"
Package: le-proinfodata-installer
Version:
Maintainer: <proinfodata@c3sl.ufpr.br>
Architecture: i386
Section: main
Priority: important
Depends: dialog, wget, passwd, sudo, cron, bash, coreutils
Description: Installer of the agent of PROINFODATA project designed for LE
Coleta de dados do projeto ProInfo/MEC de inclusão digital nas escolas
públicas brasileiras (PROINFODATA) is a project supported by Ministério da
Educação e Cultura (MEC) that collects some information about computer
laboratories at public schools in Brazil and make these data avaiable
through a website.
This agent periodically collects the data of the computer that it is
installed and sends them to a webservice running on internet.
#!/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-proinfodata-installer
#
# le-proinfodata-installer 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.
# Set le-proinfodata-installer to run during boot
update-rc.d le-proinfodata-installer defaults 90
#!/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-proinfodata-installer
#
# le-proinfodata-installer 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.
# Unset le-proinfodata-installer to not run during boot
update-rc.d -f le-proinfodata-installer remove
#!/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-proinfodata-installer
#
# le-proinfodata-installer 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.
# Check if it's running on the live CD by checking the installation of ubiquity
if ! dpkg -l ubiquity-le\* 2>/dev/null | grep -q '^ii'; then
# Is the package le-proinfodata installed?
if ! dpkg -l le-proinfodata 2>/dev/null | grep -q '^ii'; then
# Install le-proinfodata
dpkg -i /etc/le-proinfodata-installer/le-proinfodata_*.deb
# Should le-multiterminal be installed?
if dpkg -l le-multiterminal-installer 2>/dev/null | grep -q '^ii'; then
# Wait while it is not installed
while ! dpkg -l le-multiterminal 2>/dev/null | grep -q '^ii'; do
sleep 2
done
fi
# Reboot
reboot
fi
fi
C3SL - Centro de Computacao Cientifica e Software Livre
Adriano da Luz
Bruno Cesar Ribas
Carlos Carvalho
Cleide Luzia Bonfim Possamai
Danilo Kiyoshi Simizu Yorinori
Diego Giovane Pasqualin
Eduardo Todt
Erik Alexandre Pucci
Felipe Cys Laskoski
Guilherme Zasyeki Machado
Josiney de Souza
Juliana Bueno
Klismann Smoger Mottin
Laura Sanchez Garcia
Luis Carlos Erpen de Bona
Marcela Saragioto
Marcos Castilho
Pedro Eugenio Rocha
Renan Franca De Miranda
Ricardo Tavares De Oliveira
Rubens Massayuki Suguimoto
Thiago Henrique Dos Santos Picharski
Tiago Rodrigo Kepe
Victor Tarabola Cortiano
Vinicius Kwiecien Ruoso
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