Ignore:
Timestamp:
Feb 1, 2017, 10:38:41 AM (4 years ago)
Author:
Juanma
Message:

Updated to 3.2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jclic/trunk/fuentes/debian/patches/zero-center.patch

    r116 r3466  
    66 it.
    77 .
    8  jclic (0.2.1.0-1) unstable; urgency=low
     8 jclic (0.3.2.1) Xenial; urgency=medium
    99 .
    10    * New upstream version
    11    * Fixed bashism in jclic launcher (Closes: #581114)
    12    * Switch to dpkg-source 3.0 (quilt) format
    13    * debian/control: bumped standards version to 3.8.4
    14    * debian/control: added quilt build dependency
    15    * fix detection of PulseAudio and remote DISPLAY, thanks again to
    16      Mario Izquierdo for his hints (Closes: #576465)
    17 Author: José L. Redrejo Rodríguez <jredrejo@debian.org>
    18 Bug-Debian: http://bugs.debian.org/576465
    19 Bug-Debian: http://bugs.debian.org/581114
     10   * Firts xenial release
     11Author: Juanma Navarro Mañez <juanma1980@gmail.com>
    2012
    2113---
     
    2618Origin: <vendor|upstream|other>, <url of original patch>
    2719Bug: <url in upstream bugtracker>
    28 Bug-Debian: http://bugs.debian.org/<bugnumber>
     20Bug-Debian: https://bugs.debian.org/<bugnumber>
    2921Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
    3022Forwarded: <no|not-needed|url proving that it has been forwarded>
     
    3325
    3426--- /dev/null
    35 +++ jclic-0.2.1.0/zero-jclic.zlaunchers/zero-jclic.zmd
    36 @@ -0,0 +1,36 @@
    37 +#!/bin/sh
    38 +
    39 +#Testear el mysql
    40 +RESULT=$(mysql_root_passwd -a)
    41 +if [ $RESULT = "YES" ] ; then
    42 +       zenity --error --text "Per a continuar cal que instal·leu i arranqueu el Mysql"
    43 +       exit 0
    44 +fi
    45 +
    46 +# Testear los directorios de las posibles máquinas java para crear enlaces al driver de mysql
    47 +LISTA=$(ls /usr/lib/jvm)
    48 +for elemento in $LISTA
    49 +       do
    50 +               if [ ! -h /usr/lib/jvm/$elemento ]; then
    51 +                       if [ -d /usr/lib/jvm/$elemento/jre/lib/ext ]; then   
    52 +                               ln -s /usr/share/java/mysql-connector-java.jar /usr/lib/jvm/$elemento/jre/lib/ext/mysql-connector-java.jar
    53 +                       fi
    54 +               fi
    55 +done
    56 +
    57 +#Crear la base de datos y el usuario
    58 +
    59 +lliurex-sgbd --install jclic
    60 +
    61 +#Crear un fichero de inicialización
    62 +touch /etc/.jclic.conf
    63 +cat > /etc/.jclic.conf << EOF
    64 +*********************************************
    65 +Creado al configurar con zero-center el jclic
    66 +*********************************************
    67 +EOF
    68 +
    69 +#Deshabilitar después de configurar
    70 +zero-sqlmanager -s zero-jclic 1
    71 +
    72 +exit 0
    73 --- /dev/null
    74 +++ jclic-0.2.1.0/zero-jclic.zlaunchers/zero-jclic.app
    75 @@ -0,0 +1,13 @@
    76 +Name=zero-jclic
    77 +Name[es]=Configuracion del Jclic Reportserver
    78 +Name[qcv]=Configuraciò del Jclic Reportserver
    79 +Comment=Client Configuration of Jclic Reportserver
    80 +Comment[es]=Configuración del servidor de informes de Jclic
    81 +Comment[qcv]=Configuraciò del servidor de informes de Jclic
    82 +Icon=jclic
    83 +Category=Software
    84 +ScriptPath=zero-jclic.zmd
    85 +Groups=adm;admins;teachers
    86 +Using=pe
    87 +Service=True
    88 +Locks=zero-jclic
    89 --- /dev/null
    90 +++ jclic-0.2.1.0/jclic.install-files/etc/lliurex-sgbd/jclic.sgbd
    91 @@ -0,0 +1,34 @@
     27+++ jclic-0.3.2.1/jclic.install-files/etc/lliurex-sgbd/jclic.sgbd
     28@@ -0,0 +1,35 @@
    9229+######################################################################################
    9330+# file name app.sgbd
     
    12057+DB_NAME                = JClicReports
    12158+DB_USER                = jclic_user
     59+DB_PASS                = jclic_pwd
    12260+MYSQL_DATA_FILE        =
    12361+INCLUDE_PATH   = /etc/jclic/
    12462+BACKUP_PATH    = /etc/jclic/backup/
    12563+USE_TEMPLATE   = NO
     64--- /dev/null
     65+++ jclic-0.3.2.1/zero-jclic.zlaunchers/zero-jclic.app
     66@@ -0,0 +1,18 @@
     67+Name=zero-jclic
     68+Name[en]=zero-jclic
     69+Name[es]=Configuracion del Jclic Reportserver
     70+Name[qcv]=Configuraciò del Jclic Reportserver
     71+Name[ca]=Configuraciò del Jclic Reportserver
     72+Comment=Client Configuration of Jclic Reportserver
     73+Comment[en]=Client Configuration of Jclic Reportserver
     74+Comment[es]=Configuración del servidor de informes de Jclic
     75+Comment[qcv]=Configuraciò del servidor de informes de Jclic
     76+Comment[ca]=Configuraciò del servidor de informes de Jclic
     77+Icon=jclic
     78+Category=Software
     79+ScriptPath=zero-jclic.zmd
     80+Groups=adm;admins;teachers
     81+Using=pe
     82+Service=True
     83+Modal=True
     84+Locks=zero-jclic
     85--- /dev/null
     86+++ jclic-0.3.2.1/zero-jclic.zlaunchers/zero-jclic.zmd
     87@@ -0,0 +1,87 @@
     88+#!/bin/bash
     89+
     90+export TEXTDOMAIN="zero-jclic"
     91+MSG_ERROR_MYSQL=$(gettext "You must install and run mysql")
     92+MSG_NOCONFIGURE=$(gettext "Leaving unconfigured")
     93+MSG_PASSWD=$(gettext "Administrator password for Jclic Reports: /etc/lliurex-sgbd/jclic.sgbd")
     94+PACKAGE="lliurex-sgbd"
     95+
     96+
     97+function test_install {
     98+               #Testeamos si el paquete esta instalado, no haciendo nada en el caso afirmativo o instalandolo en el caso negativo.
     99+               TEST=$( dpkg-query -s $1 2> /dev/null| grep Status | cut -d " " -f 4 )
     100+               if [ "$TEST" = 'installed' ]; then
     101+                       echo "Package $1 already installed, we have to uninstall it"
     102+                       su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$1 is already installed in your system, now we are goig to remove it and install it again.'" $USER
     103+                       zero-installer remove $1
     104+               fi
     105+
     106+       }
     107+
     108+
     109+
     110+##############################MAIN###########################
     111+
     112+zero-center add-pulsating-color zero-jclic
     113+
     114+(
     115+echo "# Updating Repositories...."
     116+zero-repos-update
     117+echo "20"
     118+echo "Testing if package was installed in your system"
     119+test_install "$PACKAGE"
     120+echo "30"
     121+echo "# Installing lliurex-sgbd...."
     122+zero-installer install "$PACKAGE"
     123+
     124+
     125+
     126+if [ $? -ne 0 ]; then
     127+       zenity --info --text="$MSG_NOCONFIGURE"
     128+       zero-center remove-pulsating-color zero-jclic
     129+       exit 0
     130+fi
     131+
     132+#Testear el mysql
     133+echo "40"
     134+echo "# Testing mysql...."
     135+RESULT=$(mysql_root_passwd -a)
     136+if [ "$RESULT" = "NO" ]; then
     137+       zenity --error --text "$MSG_ERROR_MYSQL"
     138+       zero-center remove-pulsating-color zero-jclic
     139+       exit 0
     140+fi
     141+
     142+#Inicializar mysql
     143+echo "60"
     144+echo "# Customing mysql....."
     145+mysql_root_passwd -i
     146+
     147+#Crear la base de datos y el usuario, si no existe
     148+resp=$(lliurex-sgbd --db_is_present jclic )
     149+if [ "$resp" = "NO" ] ; then
     150+       lliurex-sgbd --install jclic
     151+else
     152+       lliurex-sgbd --upgrade jclic
     153+fi
     154+
     155+#Crear un fichero de inicialización
     156+echo "80"
     157+echo "# Executing last scripts......."
     158+touch /etc/.jclic.conf
     159+cat > /etc/.jclic.conf << EOF
     160+*********************************************
     161+Creado al configurar con zero-center el jclic
     162+*********************************************
     163+EOF
     164+sleep 1
     165+) | zenity --progress --title="Jclic Report Server" --percentage=0 --auto-close --auto-kill --width="500" --no-cancel
     166+
     167+
     168+zenity --warning --text="$MSG_PASSWD" &
     169+
     170+#Deshabilitar después de configurar
     171+zero-center remove-pulsating-color zero-jclic
     172+zero-center set-configured zero-jclic
     173+
     174+exit 0
Note: See TracChangeset for help on using the changeset viewer.