ln -s /usr/lib/jvm/bin/javac /usr/lib/java/bin/javac
#!/bin/sh
# Script by www.seguridadwireless.net
SCRIPT_VERSION=20150802
############################################################
## 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=graphviz
echo -ne "\033]2;${PRGNAM}_updater\007"
WEB=http://graphviz.org/pub/graphviz/stable/SOURCES/
VERSION=`curl -s $WEB | grep graphviz-[0-9] | tail -1 | cut -d- -f3 | cut -d t -f1 | sed "s/.$//g"`
DOWNLOAD=${WEB}${PRGNAM}-${VERSION}.tar.gz
}
# Si el paquete no existe se descargara de internet
F_download(){
if [ ! -f $PRGNAM-$VERSION.tar.gz ]; then
echo
echo "$CYAN"Descargando sources de $PRGNAM-$VERSION"$CIERRE"
sleep 1
aria2c -x 3 $DOWNLOAD
fi
}
# Descomprimimos el fichero descargado y compilamos
F_compilar(){
echo
echo "$VERDE"Descomprimiendo ..."$CIERRE"
sleep 1
rm -rf $PRGNAM-$VERSION
tar xvf $PRGNAM-$VERSION.tar.gz
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 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
sed -i 's|/php/modules|/php/extensions|' configure
# Parcheamos
if [ $VERSION = 2.38.0 ]; then
echo
echo "$VERDE""Version detectada 2.38.0 aplicando parche...""$CIERRE"
sleep 1
cat > graphviz.patch << "EOF"
diff -Naur graphviz-2.28.0.orig/tclpkg/gv/gv_php_init.c graphviz-2.28.0/tclpkg/gv/gv_php_init.c
--- graphviz-2.28.0.orig/tclpkg/gv/gv_php_init.c 2011-01-25 17:30:51.000000000 +0100
+++ graphviz-2.28.0/tclpkg/gv/gv_php_init.c 2012-05-30 04:10:40.657221055 +0200
@@ -19,11 +19,13 @@
static size_t gv_string_writer (GVJ_t *job, const char *s, size_t len)
{
+ TSRMLS_FETCH();
return PHPWRITE(s, len);
}
static size_t gv_channel_writer (GVJ_t *job, const char *s, size_t len)
{
+ TSRMLS_FETCH();
return PHPWRITE(s, len);
}
EOF
patch -p1 -i $TMP/$PRGNAM-$VERSION/graphviz.patch
fi
echo
echo "$VERDE"Configurando ..."$CIERRE"
sleep 1
# Arreglo javac
if [ ! -f /usr/lib/java/bin/javac ]; then
ln -s /usr/lib/jvm/bin/javac /usr/lib/java/bin/javac
fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--disable-static \
--enable-ocaml=no \
--build=$ARCH-slackware-linux
echo
echo "$VERDE"Compilando ..."$CIERRE"
sleep 1
make -j$NUCLEOS || exit 1
make install-strip DESTDIR=$PKG
# Config
mkdir -p $PKG/etc/php
echo "; Enable graphviz extension module
; extension=gv.so
; Graphviz' own documentation mentions a "gv.php" file that should
; be included. This file is however not necessary, it is just a
; wrapper class around functions that are already available after
; loading the extension, just leave out the "gv::" prefix.
; In case you still prefer to use the wrapper class you have to
; include it using its absolute path:
; <?php; include ('/usr/lib@LIBDIRSUFFIX@/graphviz/php/gv.php');; ?>
" > $PKG/etc/php/graphviz.ini
echo '# Dummy content.' > $PKG/usr/lib${LIBDIRSUFFIX}/graphviz/config6
rm -rf $PKG/usr/share/$PRGNAM/doc
}
###################################
## 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
#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
#Asignamos o detectamos arquitectura
f_arquitectura
#Comprobamos version instalada del paquete
f_versionInstalada
#Si no existe el fichero se descargara
F_download
#Descomprimir fichero descargado y compilamos
F_compilar
#Hacemos strip sobre el paquete
f_strip
#Creamos xzm , instalamos y salimos
f_tareasFinales
#!/bin/sh
# Script by www.seguridadwireless.net
SCRIPT_VERSION=20150802
############################################################
## 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=liblrdf
echo -ne "\033]2;${PRGNAM}_updater\007"
WEB=https://github.com/swh/LRDF/tarball
VERSION=0.5.0
DOWNLOAD=$WEB/$VERSION/swh-LRDF-$VERSION-0-g7ebc032.tar.gz
}
# Si el paquete no existe se descargara de internet
F_download(){
if [ ! -f $PRGNAM-$VERSION.tar.gz ]; then
echo
echo "$CYAN"Descargando sources de $PRGNAM-$VERSION"$CIERRE"
sleep 1
aria2c -x 3 $DOWNLOAD
fi
}
# Descomprimimos el fichero descargado y compilamos
F_compilar(){
echo
echo "$VERDE"Descomprimiendo ..."$CIERRE"
sleep 1
rm -rf swh-LRDF-7ebc032
tar xvf swh-LRDF-$VERSION-0-g7ebc032.tar.gz
cd swh-LRDF-7ebc032
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 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
./autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--build=$ARCH-slackware-linux
make -j$NUCLEOS || exit 1
make install-strip DESTDIR=$PKG
}
###################################
## 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
#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
#Asignamos o detectamos arquitectura
f_arquitectura
#Comprobamos version instalada del paquete
f_versionInstalada
#Si no existe el fichero se descargara
F_download
#Descomprimir fichero descargado y compilamos
F_compilar
#Hacemos strip sobre el paquete
f_strip
#Creamos xzm , instalamos y salimos
f_tareasFinales
#!/bin/sh
# Script by www.seguridadwireless.net
SCRIPT_VERSION=20150802
############################################################
## 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=aubio
echo -ne "\033]2;${PRGNAM}_updater\007"
WEB=http://aubio.org/pub/
VERSION=`curl -s $WEB | grep tar.bz2 | tail -1 | cut -d- -f3 | cut -d t -f1 | sed "s/.$//g"`
DOWNLOAD=${WEB}${PRGNAM}-${VERSION}.tar.bz2
}
# Si el paquete no existe se descargara de internet
F_download(){
if [ ! -f $PRGNAM-$VERSION ]; then
echo
echo "$CYAN"Descargando sources de $PRGNAM-$VERSION"$CIERRE"
sleep 1
aria2c -x 3 $DOWNLOAD
fi
}
# Descomprimimos el fichero descargado y compilamos
F_compilar(){
echo
echo "$VERDE"Descomprimiendo ..."$CIERRE"
sleep 1
rm -rf $PRGNAM-$VERSION
tar xvf $PRGNAM-$VERSION.tar.bz2
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 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
echo
echo "$VERDE"Configurando ..."$CIERRE"
sleep 1
python waf configure --prefix=/usr --enable-fftw3f
echo
echo "$VERDE"Compilando ..."$CIERRE"
sleep 1
python waf build $MAKEFLAGS
cd python && python setup.py build
cd ..
python waf --destdir=$PKG install
cd python || return 1
python setup.py install --root=$PKG --optimize=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
#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
#Asignamos o detectamos arquitectura
f_arquitectura
#Comprobamos version instalada del paquete
f_versionInstalada
#Si no existe el fichero se descargara
F_download
#Descomprimir fichero descargado y compilamos
F_compilar
#Hacemos strip sobre el paquete
f_strip
#Creamos xzm , instalamos y salimos
f_tareasFinales
ok,si que tiene miga si,pero tranquilo ehh,sin prisas,yo lo probaré en la 4.11.
#!/bin/sh
# Script by www.seguridadwireless.net
SCRIPT_VERSION=20150802
CATEGORIA="Editores de audio"
############################################################
## 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=ardour
SRCNAM=Ardour
echo -ne "\033]2;${PRGNAM}_updater\007"
WEB=http://www.liwjatan.at/files/src/ardour/
VERSION=`curl -s $WEB | grep .tar.bz2 | head -1 | cut -d- -f3 | cut -d t -f1 | sed "s/.$//g"`
RAMA=`echo $VERSION | cut -d . -f1`
DOWNLOAD=${WEB}${SRCNAM}-${VERSION}.tar.bz2
}
# Comprobar dependencias
F_dependencias(){
#1
if [ -f /usr/bin/dot ] ;then
GRAPHVIZ_EXIST=`echo "$VERDE"Instalada"$CIERRE"`
GRAPHVIZ_EXIST2=SI
else
GRAPHVIZ_EXIST=`echo "$ROJO"No Instalada"$CIERRE"`
GRAPHVIZ_EXIST2=NO
fi
echo "$ROSA"Comprobando dependencias ..."$CIERRE"
echo
sleep 3
echo "$CYAN"Dependencias de este paquete:""
echo ""
echo "$AMARILLO"graphviz"$CIERRE: $GRAPHVIZ_EXIST"
if [ $GRAPHVIZ_EXIST2 = NO ]; then
echo "$AMARILLO"
echo "Resolviendo dependencia graphviz ..."
sleep 3
if [ ! -f /opt/wifislax-updaters/Librerias/graphviz_updater ]; then
echo $ROJO
echo "No tienes el updater graphviz..."
sleep 1
echo "No se puede continuar..."
sleep 1
echo "El script se cierra aqui."
sleep 1
echo $CIERRE
exit 0
fi
cd /opt/wifislax-updaters/Librerias/ && xterm /opt/wifislax-updaters/Librerias/graphviz_updater && cd $TMP
fi
# Verificamos que salio bien graphviz_updater
if [ ! -f /usr/bin/dot ] ;then
echo $ROJO
echo "Algo salio mal al instalar graphviz..."
sleep 1
echo "No se puede continuar..."
sleep 1
echo "El script se cierra aqui."
sleep 1
echo $CIERRE
exit 0
fi
#2
if [ -f /usr/lib/pkgconfig/lrdf.pc ];then
LIBLRDF_EXIST=`echo "$VERDE"Instalada"$CIERRE"`
LIBLRDF_EXIST2=SI
else
LIBLRDF_EXIST=`echo "$ROJO"No Instalada"$CIERRE"`
LIBLRDF_EXIST2=NO
fi
echo "$AMARILLO"liblrdf"$CIERRE: $LIBLRDF_EXIST"
if [ $LIBLRDF_EXIST2 = NO ]; then
echo "$AMARILLO"
echo "Resolviendo dependencia liblrdf ..."
sleep 3
if [ ! -f /opt/wifislax-updaters/Librerias/liblrdf_updater ]; then
echo $ROJO
echo "No tienes el updater liblrdf..."
sleep 1
echo "No se puede continuar..."
sleep 1
echo "El script se cierra aqui."
sleep 1
echo $CIERRE
exit 0
fi
cd /opt/wifislax-updaters/Librerias/ && xterm /opt/wifislax-updaters/Librerias/liblrdf_updater && cd $TMP
fi
# Verificamos que salio bien liblrdf_updater
if [ ! -f /usr/lib/pkgconfig/lrdf.pc ];then
echo $ROJO
echo "Algo salio mal al instalar liblrdf..."
sleep 1
echo "No se puede continuar..."
sleep 1
echo "El script se cierra aqui."
sleep 1
echo $CIERRE
exit 0
fi
#3
if [ -f /usr/bin/aubiocut ];then
AUBIO_EXIST=`echo "$VERDE"Instalada"$CIERRE"`
AUBIO_EXIST2=SI
else
AUBIO_EXIST=`echo "$ROJO"No Instalada"$CIERRE"`
AUBIO_EXIST2=NO
fi
echo "$AMARILLO"aubio"$CIERRE: $AUBIO_EXIST"
if [ $AUBIO_EXIST2 = NO ]; then
echo "$AMARILLO"
echo "Resolviendo dependencia aubio ..."
sleep 3
if [ ! -f /opt/wifislax-updaters/Librerias/aubio_updater ]; then
echo $ROJO
echo "No tienes el updater aubio..."
sleep 1
echo "No se puede continuar..."
sleep 1
echo "El script se cierra aqui."
sleep 1
echo $CIERRE
exit 0
fi
cd /opt/wifislax-updaters/Librerias/ && xterm /opt/wifislax-updaters/Librerias/aubio_updater && cd $TMP
fi
# Verificamos que salio bien aubio_updater
if [ ! -f /usr/bin/aubiocut ];then
echo $ROJO
echo "Algo salio mal al instalar aubio..."
sleep 1
echo "No se puede continuar..."
sleep 1
echo "El script se cierra aqui."
sleep 1
echo $CIERRE
exit 0
fi
}
# Si el paquete no existe se descargara de internet
F_download(){
if [ ! -f $SRCNAM-$VERSION.tar.bz2 ]; then
echo
echo "$CYAN"Descargando sources de $PRGNAM-$VERSION"$CIERRE"
sleep 1
aria2c -x 3 $DOWNLOAD
fi
}
# Descomprimimos el fichero descargado y compilamos
F_compilar(){
echo
echo "$VERDE"Descomprimiendo ..."$CIERRE"
sleep 1
rm -rf $PRGNAM-$VERSION
tar xvf $SRCNAM-$VERSION.tar.bz2
cd $SRCNAM-$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 {} \;
python waf configure --prefix=/usr \
--configdir=/etc \
--with-backends="jack,alsa" \
--libjack=weak \
--optimize \
--docs
python waf build $MAKEFLAGS
python2 waf install --destdir=$PKG
# Entrada a menu
mkdir -p $PKG/usr/share/applications
echo "[Desktop Entry]
Name=Ardour $RAMA
Comment=Multitrack hard disk recorder
Exec=ardour$RAMA
Icon=/usr/share/ardour$RAMA/icons/ardour_icon_256px.png
Terminal=false
Type=Application
X-MultipleArgs=false
Categories=Audio;AudioVideoEditing;AudioVideo;Video;" > $PKG/usr/share/applications/$PRGNAM.desktop
}
###################################
## 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
#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
#Compronar dependencias
F_dependencias
#Asignamos o detectamos arquitectura
f_arquitectura
#Comprobamos version instalada del paquete
f_versionInstalada
#Si no existe el fichero se descargara
F_download
#Descomprimir fichero descargado y compilamos
F_compilar
#Hacemos strip sobre el paquete
f_strip
#Creamos xzm , instalamos y salimos
f_tareasFinales
gracias,esta noche me pondré a ello y si no va en la 4.11 instalare la 4.11.1 ;) doy por sentado que lo as probado y va bien,has probao y has capturado algo