Skip to content

Commit

Permalink
Reorganizacion de librerias
Browse files Browse the repository at this point in the history
  • Loading branch information
wifislax-ng committed Apr 2, 2016
1 parent 645d93b commit 28c3011
Show file tree
Hide file tree
Showing 34 changed files with 107 additions and 271 deletions.
126 changes: 4 additions & 122 deletions Auditoria/wireshark_updater
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Script by www.seguridadwireless.net

SCRIPT_VERSION=20160326
SCRIPT_VERSION=20160327

############################################################
## Funciones comunes. Su nombre empieza por f_ ##
Expand Down Expand Up @@ -180,14 +180,9 @@ IgogICAgICAgeT0iMjg1LjM2MjE4IgogICAgICAgcng9IjguOTQ5NjkzNyIKICAgICAgIHJ5PSIw
IiAvPgogIDwvZz4KPC9zdmc+Cg==" | base64 -d > $PKG/usr/share/pixmaps/$PRGNAM.svg

# Generamos desktop
if [ -f $PKG/usr/bin/wireshark-gtk ]; then
EJECUTABLE=wireshark-gtk
else
EJECUTABLE=wireshark
fi
echo "[Desktop Entry]
Categories=Redes;
Exec=$EJECUTABLE
Exec=wireshark-gtk
Name=Wireshark Network Analyzer
Icon=wireshark
StartupNotify=true
Expand All @@ -199,127 +194,14 @@ rm -rf $PKG/usr/share/applications/*.desktop
# Creamos una config basica
CONFIG=$PKG/$HOME/.$PRGNAM
mkdir -p $CONFIG
echo "# Recent settings file for Wireshark $VERSION
#
# This file is regenerated each time Wireshark is quit.
# So be careful, if you want to make manual changes here.

######## Recent capture files (latest last), cannot be altered through command line ########
######## Recent capture filters (latest last), cannot be altered through command line ########
######## Recent display filters (latest last), cannot be altered through command line ########
# Main window geometry.
# Decimal numbers.
gui.geometry_main_x: -3
gui.geometry_main_y: -3
gui.geometry_main_width: 1366
gui.geometry_main_height: 713
# Main window maximized.
echo "# Main window maximized.
# TRUE or FALSE (case-insensitive).
gui.geometry_main_maximized: TRUE
# Statusbar left pane size.
# Decimal number.
gui.geometry_status_pane: 250
# Statusbar middle pane size.
# Decimal number.
gui.geometry_status_pane_right: 866
# Last used Configuration Profile.
gui.last_used_profile: Default
# WLAN statistics upper pane size.
# Decimal number.
gui.geometry_status_wlan_stats_pane: 200
# Warn if running with elevated permissions (e.g. as root).
# TRUE or FALSE (case-insensitive).
privs.warn_if_elevated: FALSE
# Warn if npf.sys isn't loaded on Windows >= 6.0.
# TRUE or FALSE (case-insensitive).
privs.warn_if_no_npf: TRUE
" > $CONFIG/recent_common

echo "# Recent settings file for Wireshark $VERSION
#
# This file is regenerated each time Wireshark is quit
# and when changing configuration profile.
# So be careful, if you want to make manual changes here.
# Main Toolbar show (hide).
# TRUE or FALSE (case-insensitive).
gui.toolbar_main_show: TRUE
# Filter Toolbar show (hide).
# TRUE or FALSE (case-insensitive).
gui.filter_toolbar_show: TRUE
# Wireless Settings Toolbar show (hide).
# TRUE or FALSE (case-insensitive).
gui.wireless_toolbar_show: FALSE
# Packet list show (hide).
# TRUE or FALSE (case-insensitive).
gui.packet_list_show: TRUE
# Tree view show (hide).
# TRUE or FALSE (case-insensitive).
gui.tree_view_show: TRUE
# Byte view show (hide).
# TRUE or FALSE (case-insensitive).
gui.byte_view_show: TRUE
# Statusbar show (hide).
# TRUE or FALSE (case-insensitive).
gui.statusbar_show: TRUE
# Packet list colorize (hide).
# TRUE or FALSE (case-insensitive).
gui.packet_list_colorize: TRUE
# Timestamp display format.
# One of: RELATIVE, ABSOLUTE, ABSOLUTE_WITH_DATE, DELTA, DELTA_DIS, EPOCH, UTC, UTC_WITH_DATE
gui.time_format: RELATIVE
# Timestamp display precision.
# One of: AUTO, SEC, DSEC, CSEC, MSEC, USEC, NSEC
gui.time_precision: AUTO
# Seconds display format.
# One of: SECONDS, HOUR_MIN_SEC
gui.seconds_format: SECONDS
# Zoom level.
# A decimal number.
gui.zoom_level: 0
# Bytes view.
# A decimal number.
gui.bytes_view: 0
# Main window upper (or leftmost) pane size.
# Decimal number.
# Main window middle pane size.
# Decimal number.
# Packet list column pixel widths.
# Each pair of strings consists of a column format and its pixel width.
column.width: %m, -1, %t, -1, %s, -1, %d, -1, %p, -1, %L, -1, %i, -1
# Last directory navigated to in File Open dialog.
gui.fileopen_remembered_dir: /
" > $CONFIG/recent
privs.warn_if_elevated: FALSE" > $CONFIG/recent
}

###################################
Expand Down
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 modified Funciones/funciones_updater
100644 → 100755
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
85 changes: 85 additions & 0 deletions Librerias-Graficos/goocanvas_updater
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.
10 changes: 1 addition & 9 deletions Librerias/x264_updater → Librerias-Multimedia/x264_updater
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Script by www.seguridadwireless.net

SCRIPT_VERSION=20160227
SCRIPT_VERSION=20160324

############################################################
## Funciones comunes. Su nombre empieza por f_ ##
Expand All @@ -26,12 +26,6 @@ F_variables() {
DOWNLOAD=$WEB/$SOURCES
}

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

# Descomprimimos el fichero descargado y compilamos
F_compilar(){
echo
Expand Down Expand Up @@ -77,8 +71,6 @@ 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 Down
File renamed without changes.
File renamed without changes.
Empty file modified Librerias/crda_updater
100755 → 100644
Empty file.
Loading

0 comments on commit 28c3011

Please sign in to comment.