forked from wifislax-ng/wifislax-updaters
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
645d93b
commit 28c3011
Showing
34 changed files
with
107 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/bin/sh | ||
|
||
# Script by www.seguridadwireless.net | ||
|
||
SCRIPT_VERSION=20160403 | ||
|
||
############################################################ | ||
## Funciones comunes. Su nombre empieza por f_ ## | ||
############################################################ | ||
f_variables(){ | ||
. /opt/wifislax-updaters/Funciones/funciones_updater | ||
} | ||
|
||
############################################################ | ||
## Funciones propias del script. Su nombre empieza por F_ ## | ||
############################################################ | ||
# Definicion de variables | ||
F_variables() { | ||
PRGNAM=goocanvas | ||
echo -ne "\033]2;${PRGNAM}_updater\007" | ||
WEB=http://ftp.gnome.org/pub/GNOME/sources/${PRGNAM} | ||
VERSION=0.15 | ||
EXTENSION=tar.bz2 | ||
SOURCES=${PRGNAM}-$VERSION.$EXTENSION | ||
DOWNLOAD=$WEB/$VERSION/$SOURCES | ||
} | ||
|
||
# Descomprimimos el fichero descargado y compilamos | ||
F_compilar(){ | ||
echo | ||
echo "$VERDE"Configurando ..."$CIERRE" | ||
sleep 1 | ||
|
||
CFLAGS="$SLKCFLAGS" \ | ||
CXXFLAGS="$SLKCFLAGS" \ | ||
./configure \ | ||
--prefix=/usr \ | ||
--libdir=/usr/lib${LIBDIRSUFFIX} \ | ||
--sysconfdir=/etc \ | ||
--localstatedir=/var/lib \ | ||
--mandir=/usr/man \ | ||
--disable-static \ | ||
--enable-shared \ | ||
--build=$ARCH-slackware-linux | ||
|
||
echo | ||
echo "$VERDE"Compilando ..."$CIERRE" | ||
sleep 1 | ||
|
||
make || exit 1 | ||
make install DESTDIR=$PKG || exit 1 | ||
} | ||
|
||
################################### | ||
## BLOQUE PRINCIPAL DE EJECUCION ## | ||
################################### | ||
# Si se cierra el script inesperadamente, ejecutar la funcion de limpieza | ||
trap f_exitmode SIGHUP SIGINT | ||
|
||
#Inicializamos las variables globales | ||
f_variables | ||
#Asignamos o detectamos arquitectura | ||
f_arquitectura | ||
#Comprobamos conexion a Internet | ||
f_comprobarConexion | ||
#Inicializamos las variables del script | ||
F_variables | ||
#Creamos directorio de trabajo | ||
f_directorioTemporal | ||
#Mostramos el mensaje de presentacion | ||
f_presentacion | ||
#Comprobamos updates del script | ||
f_comprobarUpdates | ||
#Comprobamos version instalada del paquete | ||
f_versionInstalada | ||
#Si no existe el fichero se descargara | ||
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 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Empty file.
Oops, something went wrong.