Skip to content

Commit

Permalink
Revisados updater gnome
Browse files Browse the repository at this point in the history
  • Loading branch information
wifislax-ng committed Mar 23, 2016
1 parent 0903b65 commit b9d930c
Show file tree
Hide file tree
Showing 20 changed files with 328 additions and 115 deletions.
20 changes: 14 additions & 6 deletions Desarrollo/zenity_updater
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Script by www.seguridadwireless.net

SCRIPT_VERSION=20151025
SCRIPT_VERSION=20160323

############################################################
## Funciones comunes. Su nombre empieza por f_ ##
Expand All @@ -18,12 +18,18 @@ f_variables(){
F_variables() {
PRGNAM=zenity
echo -ne "\033]2;${PRGNAM}_updater\007"
WEB=http://ftp.acc.umu.se/pub/gnome/sources/$PRGNAM/
RAMA=`curl -s $WEB |grep -o -E 'href="([^"#]+)"'| grep "/"|tail -1|cut -d '"' -f2|cut -d "/" -f-1`
VERSION=`curl -s ${WEB}${RAMA}/|grep LATEST|cut -d- -f3|cut -d '"' -f-1`
WEB=https://download.gnome.org/sources/$PRGNAM
RAMA=`curl -s $WEB/|egrep -o ">[0-9].[0-9]{1,2}/"|tr -d '>/'|egrep -v "1$|3$|5$|7$|9$"|tail -1`
VERSION=`curl -s ${WEB}/${RAMA}/|grep LATEST|tail -1|cut -d- -f3|cut -d '"' -f-1`
EXTENSION=tar.xz
SOURCES=$PRGNAM-$VERSION.$EXTENSION
DOWNLOAD=${WEB}${RAMA}/$SOURCES
DOWNLOAD=${WEB}/${RAMA}/$SOURCES
}

# Comprobar dependencias
F_dependencias(){
DEPENDENCIAS="libgnomecanvas"
f_dependencias
}

# Descomprimimos el fichero descargado y compilamos
Expand Down Expand Up @@ -74,6 +80,8 @@ f_comprobarUpdates
f_arquitectura
#Comprobamos version instalada del paquete
f_versionInstalada
#Compronar dependencias
F_dependencias
#Si no existe el fichero se descargara
f_download
#Preparamos entorno
Expand All @@ -83,4 +91,4 @@ F_compilar
#Hacemos strip sobre el paquete
f_strip
#Creamos xzm , instalamos y salimos
f_tareasFinales
f_tareasFinales
41 changes: 12 additions & 29 deletions Juegos/four-in-a-row_updater
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Script by www.seguridadwireless.net

SCRIPT_VERSION=20151024
SCRIPT_VERSION=20160323

############################################################
## Funciones comunes. Su nombre empieza por f_ ##
Expand All @@ -18,43 +18,24 @@ f_variables(){
F_variables() {
PRGNAM=four-in-a-row
echo -ne "\033]2;${PRGNAM}_updater\007"
WEB=http://ftp.gnome.org/pub/gnome/sources/$PRGNAM/
RAMA=`curl -s $WEB | grep [0-9]/| tail -1 | cut -d '>' -f3 | cut -d / -f-1`
VERSION=`curl -s ${WEB}${RAMA}/ | grep .xz | tail -1 | cut -d- -f9 | cut -d t -f-1 | sed "s/.$//g"`
DOWNLOAD=http://ftp.gnome.org/pub/gnome/sources/$PRGNAM/$RAMA/$PRGNAM-$VERSION.tar.xz
}

# Si el paquete no existe se descargara de internet
F_download(){
if [ ! -f $PRGNAM-$VERSION.tar.xz ]; then
echo
echo "$CYAN"Descargando sources de $PRGNAM-$VERSION"$CIERRE"
sleep 1
aria2c -x 3 $DOWNLOAD
fi
WEB=https://download.gnome.org/sources/$PRGNAM
RAMA=`curl -s $WEB/|egrep -o ">[0-9].[0-9]{1,2}/"|tr -d '>/'|egrep -v "1$|3$|5$|7$|9$"|tail -1`
VERSION=`curl -s ${WEB}/${RAMA}/|grep LATEST|tail -1|cut -d- -f3|cut -d '"' -f-1`
EXTENSION=tar.xz
SOURCES=$PRGNAM-$VERSION.$EXTENSION
DOWNLOAD=${WEB}/${RAMA}/$SOURCES
}

# Descomprimimos el fichero descargado y compilamos
F_compilar(){
echo
echo "$VERDE"Descomprimiendo ..."$CIERRE"
sleep 1
tar xvf $PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;

echo
echo "$VERDE"Configurando ..."$CIERRE"
sleep 1

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
Expand Down Expand Up @@ -91,10 +72,12 @@ f_arquitectura
#Comprobamos version instalada del paquete
f_versionInstalada
#Si no existe el fichero se descargara
F_download
f_download
#Preparamos entorno
f_preparar
#Descomprimir fichero descargado y compilamos
F_compilar
#Hacemos strip sobre el paquete
f_strip
#Creamos xzm , instalamos y salimos
f_tareasFinales
f_tareasFinales
9 changes: 5 additions & 4 deletions Librerias/ORBit2_updater
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Script by www.seguridadwireless.net

SCRIPT_VERSION=20160210
SCRIPT_VERSION=20160323

############################################################
## Funciones comunes. Su nombre empieza por f_ ##
Expand All @@ -18,11 +18,12 @@ f_variables(){
F_variables() {
PRGNAM=ORBit2
echo -ne "\033]2;${PRGNAM}_updater\007"
WEB=ftp://ftp.gnome.org/pub/gnome/sources/ORBit2/2.14
VERSION=2.14.19
WEB=https://download.gnome.org/sources/$PRGNAM
RAMA=`curl -s $WEB/|egrep -o ">[0-9].[0-9]{1,2}/"|tr -d '>/'|egrep -v "1$|3$|5$|7$|9$"|tail -1`
VERSION=`curl -s ${WEB}/${RAMA}/|grep LATEST|tail -1|cut -d- -f3|cut -d '"' -f-1`
EXTENSION=tar.bz2
SOURCES=$PRGNAM-$VERSION.$EXTENSION
DOWNLOAD=$WEB/$SOURCES
DOWNLOAD=${WEB}/${RAMA}/$SOURCES
}

# Descomprimimos el fichero descargado y compilamos
Expand Down
9 changes: 5 additions & 4 deletions Librerias/gnome-mime-data_updater
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Script by www.seguridadwireless.net

SCRIPT_VERSION=20160210
SCRIPT_VERSION=20160323

############################################################
## Funciones comunes. Su nombre empieza por f_ ##
Expand All @@ -18,11 +18,12 @@ f_variables(){
F_variables() {
PRGNAM=gnome-mime-data
echo -ne "\033]2;${PRGNAM}_updater\007"
WEB=http://ftp.gnome.org/pub/GNOME/sources/$PRGNAM/2.18
VERSION=2.18.0
WEB=https://download.gnome.org/sources/$PRGNAM
RAMA=`curl -s $WEB/|egrep -o ">[0-9].[0-9]{1,2}/"|tr -d '>/'|egrep -v "1$|3$|5$|7$|9$"|tail -1`
VERSION=`curl -s ${WEB}/${RAMA}/|grep LATEST|tail -1|cut -d- -f3|cut -d '"' -f-1`
EXTENSION=tar.bz2
SOURCES=$PRGNAM-$VERSION.$EXTENSION
DOWNLOAD=$WEB/$SOURCES
DOWNLOAD=${WEB}/${RAMA}/$SOURCES
}

# Descomprimimos el fichero descargado y compilamos
Expand Down
9 changes: 5 additions & 4 deletions Librerias/gnome-vfs_updater
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Script by www.seguridadwireless.net

SCRIPT_VERSION=20160210
SCRIPT_VERSION=20160323

############################################################
## Funciones comunes. Su nombre empieza por f_ ##
Expand All @@ -18,11 +18,12 @@ f_variables(){
F_variables() {
PRGNAM=gnome-vfs
echo -ne "\033]2;${PRGNAM}_updater\007"
WEB=http://ftp.gnome.org/pub/GNOME/sources/$PRGNAM/2.24
VERSION=2.24.4
WEB=https://download.gnome.org/sources/$PRGNAM
RAMA=`curl -s $WEB/|egrep -o ">[0-9].[0-9]{1,2}/"|tr -d '>/'|egrep -v "1$|3$|5$|7$|9$"|tail -1`
VERSION=`curl -s ${WEB}/${RAMA}/|grep LATEST|tail -1|cut -d- -f3|cut -d '"' -f-1`
EXTENSION=tar.bz2
SOURCES=$PRGNAM-$VERSION.$EXTENSION
DOWNLOAD=$WEB/$SOURCES
DOWNLOAD=${WEB}/${RAMA}/$SOURCES
}

# Comprobar dependencias
Expand Down
Loading

0 comments on commit b9d930c

Please sign in to comment.