gFTP 2.0.19 (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

gFTP 2.0.19 (x86 and x86_64)

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

Script for gFTP 2.0.19 !

gFTP is a ftp client for X

Code: Select all

#!/bin/bash

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


SRC_32=http://slackware.cs.utah.edu/pub/slackware/slackware-13.37/slackware/xap/gftp-2.0.19-i486-1.txz
SRC_64=http://slackware.cs.utah.edu/pub/slackware/slackware64-13.37/slackware64/xap/gftp-2.0.19-x86_64-2.txz
NAME='gFTP'
F_NAME=gftp
TMP=/tmp/$F_NAME
TMP_SRC=/tmp/$F_NAME-src
F_32=$TMP_SRC/gftp-2.0.19-i486-1.txz
F_64=$TMP_SRC/gftp-2.0.19-x86_64-2.txz
CPU=`uname -m`
CWD=`pwd`
F_LAST=$CWD/$F_NAME-$CPU.xzm

clear
echo "===============> PORTEUS <==============="
echo 
echo "Welcome to $NAME Installer for Porteus"
echo "Press any key to start 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
else
wget $SRC_32
fi

clear
if [ $CPU = "x86_64" ]; then
echo "Building the module..."
txz2lzm $F_64 $F_LAST
else
echo "Building the module..."
txz2xzm $F_32 $F_LAST
fi

if [ -e $F_LAST ]; then
echo "Build complete!"
else
echo "Check your internet connection!"
echo "Build failed!"
fi

# Check if the file is compiled by mksquashfs
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 $CWD folder"
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==

User avatar
Hamza
Warlord
Warlord
Posts: 1846
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: gFTP 2.0.19

Post#2 by Hamza » 21 Jul 2011, 13:16

Updated for Porteus V1.0.
NjVFQzY2Rg==

Post Reply