FileZilla 3.3.5 (x86 and x86_64)

This section is designed for your 'porteus build scripts' which create Porteus modules for your favorite applications. Scripts should work like the well-known 'SlackBuilds' with minimum user interaction.
Post Reply
User avatar
Hamza
Warlord
Warlord
Posts: 1846
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

FileZilla 3.3.5 (x86 and x86_64)

Post#1 by Hamza » 02 Feb 2011, 17:09

Script for FileZilla 3.3.5! Works on x86 and x86_64 CPUs

Code: Select all

#!/bin/bash

# SRC = Source Link
# TMP = /tmp/$NAME folder
# TMP_SRC = /tmp/$NAME-src


SRC_32=http://repository.slaky.eu/slackware-13.1/network/filezilla/3.3.5/filezilla-3.3.5-i486-1sl.txz
DEP_1_32=http://repository.slacky.eu/slackware-13.1/libraries/libmspack/0.2alpha/libmspack-0.2alpha-i486-1sl.txz
DEP_2_32=http://repository.slacky.eu/slackware-13.1/development/wxwidgets/2.8.11/wxwidgets-2.8.11-i486-1sl.txz
DEP_3_32=http://slackware.cs.utah.edu/pub/slackware/slackware-13.1/slackware/n/gnutls-2.8.6-i486-1.txz
DEP_4_32=http://connie.slackware.com/~alien/slackbuilds/wxGTK/pkg/13.1/wxGTK-2.8.11-i486-1alien.tgz
#######################################################################
SRC_64=http://repository.slacky.eu/slackware64-13.1/network/filezilla/3.3.4.1/filezilla-3.3.4.1-x86_64-2sl.txz
DEP_1_64=http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware-13.1/development/wxpython/2.8.11.0/wxpython-2.8.11.0-i486-1sl.txz
DEP_2_64=http://slackware.cs.utah.edu/pub/slackware/slackware64-13.1/slackware64/n/gnutls-2.8.6-x86_64-1.txz
DEP_3_64=http://connie.slackware.com/~alien/slackbuilds/wxGTK/pkg/13.1/wxGTK-2.8.11-i486-1alien.tgz
DEP_4_64=http://repository.slacky.eu/slackware64-13.1/development/wxwidgets/2.8.11.unicode/wxwidgets-2.8.11.unicode-x86_64-1sl.txz
DEP_5_64=http://repository.slacky.eu/slackware64-13.1/libraries/libmspack/0.0.20060920alpha/libmspack-0.0.20060920alpha-x86_64-2sl.txz
DEP_6_64=http://slackware.cs.utah.edu/pub/slackware/slackware64-13.1/slackware64/a/glibc-solibs-2.11.1-x86_64-3.txz
######################################################################
NAME='FileZilla FTP Client'
F_NAME=filezilla
TMP=/tmp/$F_NAME
TMP_SRC=/tmp/$F_NAME-src
######################################################################
F_32=$TMP_SRC/filezilla-3.3.5-i486-1sl.txz
F_64=$TMP_SRC/filezilla-3.3.4.1-x86_64-2sl.txz
#######################################################################
DP_1_32=$TMP_SRC/libmspack-0.2alpha-i486-1sl.txz
DP_2_32=$TMP_SRC/wxwidgets-2.8.11-i486-1sl.txz
DP_3_32=$TMP_SRC/wxpython-2.8.11.0-i486-1sl.txz
DP_4_32=$TMP_SRC/gnutls-2.8.6-i486-1.txz
DP_5_32=$TMP_SRC/wxGTK-2.8.11-i486-1alien.tgz
#######################################################################
DP_1_64=$TMP_SRC/gnutls-2.8.6-x86_64-1.txz
DP_2_64=$TMP_SRC/wxwidgets-2.8.11.unicode-x86_64-1sl.txz
DP_3_64=$TMP_SRC/wxpython-2.8.11.0-i486-1sl.txz
DP_4_64=$TMP_SRC/libmspack-0.0.20060920alpha-x86_64-2sl.txz
DP_5_64=$TMP_SRC/glibc-solibs-2.11.1-x86_64-3.txz
DP_5_64=$TMP_SRC/wxGTK-2.8.11-i486-1alien.tgz
#######################################################################
D_32=$TMP_SRC/filezilla_32
D_64=$TMP_SRC/filezilla_64
#######################################################################
D_2=$TMP_SRC/wxwidget
D_3=$TMP_SRC/libmspack
D_4=$TMP_SRC/gnutls
D_5=$TMP_SRC/wxGTK
Z_32=$TMP_SRC/filezilla-i486.lzm
Z_64=$TMP_SRC/filezilla-x86_64.lzm
Z_DEP_1=$TMP_SRC/libmspack.lzm
Z_DEP_2=$TMP_SRC/wxwidget.lzm
Z_DEP_3=$TMP_SRC/wxpython.lzm
Z_DEP_4=$TMP_SRC/gnutls.lzm
Z_DEP_5=$TMP_SRC/wxgtk.lzm
Z_DEP_6=$TMP_SRC/glibc.lzm
CPU=`uname -m`
CWD=`pwd`
F_LAST=$CWD/$F_NAME-$CPU.lzm

clear
echo "===============> PORTEUS <==============="
echo
echo "Welcome to $NAME Installer for Porteus"
echo "Press any key to begin the installation"
read junk

clear

echo "Downloading...."
if [ -d $TMP ]; then rm -Rf $TMP
else
   mkdir $TMP
fi
if [ -d $TMP_SRC ]; then rm -Rf $TMP_SRC
else
   mkdir $TMP_SRC
fi

cd $TMP_SRC

if  [ $CPU = "x86_64" ]; then
wget $SRC_64
wget $DEP_1_64
wget $DEP_2_64
wget $DEP_3_64
wget $DEP_4_64
wget $DEP_5_64
wget $DEP_6_64
else
wget $SRC_32
wget $DEP_1_32
wget $DEP_2_32
wget $DEP_3_32
wget $DEP_4_32
fi

echo "Preparing the modules..."
if [ $CPU = "x86_64" ]; then
txz2lzm $F_64 $Z_64
txz2lzm $DP_1_64 $Z_DEP_1
txz2lzm $DP_2_64 $Z_DEP_2
txz2lzm $DP_3_64 $Z_DEP_3
txz2lzm $DP_4_64 $Z_DEP_4
txz2lzm $DP_5_64 $Z_DEP_5
txz2lzm $DP_5_64 $Z_DEP_6
else
txz2lzm $F_32 $Z_32
txz2lzm $DP_1_32 $Z_DEP_1
txz2lzm $DP_2_32 $Z_DEP_2
txz2lzm $DP_3_32 $Z_DEP_3
txz2lzm $DP_4_32 $Z_DEP_4
txz2lzm $DP_5_32 $Z_DEP_5
fi

echo "Extracting module sources..."
if [ $CPU = "x86_64" ]; then
lzm2dir $Z_64 $TMP
lzm2dir $Z_DEP_1 $TMP
lzm2dir $Z_DEP_2 $TMP
lzm2dir $Z_DEP_3 $TMP
lzm2dir $Z_DEP_4 $TMP
lzm2dir $Z_DEP_5 $TMP
lzm2dir $Z_DEP_6 $TMP
else
lzm2dir $Z_32 $TMP
lzm2dir $Z_DEP_1 $TMP
lzm2dir $Z_DEP_2 $TMP
lzm2dir $Z_DEP_3 $TMP
lzm2dir $Z_DEP_4 $TMP
lzm2dir $Z_DEP_5 $TMP
fi


clear
if [ -d $TMP ]; then
echo "Building the module..."
echo "Type your block size for compression of the module OR press ENTER"
echo "Block Sizes available :"
echo "64K"
echo "128K"
echo "256K"
echo "512K"
echo "1024K"
echo "Type your block size : "
read B_SIZE
if [ "$B_SIZE" != "" ]; then
mksquashfs $TMP $F_LAST -b $B_SIZE
else
mksquashfs $TMP $F_LAST -b 256K
fi
else
echo "Build failed!"
fi

clear
if [ -e $F_LAST ]; then
echo "===============> PORTEUS <==============="
echo "Your module $NAME is ready!"
echo "Thanks to the Porteus Community!"
echo "-----------------------------------------"
echo "Your module is saved in the folder $CWD"
echo "-----------------------------------------"
echo "Cleaning the system..."
else
   clear
   echo "Build failed!"
   echo "Please report this bug to the Porteus Forum!"
   echo "Cleaning the system"
   rm -Rf $TMP
   rm -Rf $TMP_SRC
fi
if [ -d $TMP ]; then rm -Rf $TMP
fi
if [ -d $TMP_SRC ]; then rm -Rf $TMP_SRC
fi
Enjoy !
NjVFQzY2Rg==

Post Reply