NAME="IPFire" # Software name
SNAME="ipfire" # Short name
VERSION="1.4" # Version number
-# PREVIOUSTAG=IPCOP_v1_4_10_FINAL
SLOGAN="We secure your network" # Software slogan
CONFIG_ROOT=/var/ipfire # Configuration rootdir
NICE=10
- MAX_RETRIES=3 # prefetch/check loop
+ MAX_RETRIES=3 # prefetch/check loop
KVER=`grep --max-count=1 VER lfs/linux | awk '{ print $3 }'`
MACHINE=`uname -m`
}
buildipcop() {
- # Run IPCop make scripts one by one
- LOGFILE="$BASEDIR/log/_build.ipcop.log"
+ # Run IPFire make scripts one by one
+ LOGFILE="$BASEDIR/log/_build.ipfire.log"
export LOGFILE
echo -ne "`date -u '+%b %e %T'`: Stage3 $NAME build \n" | tee -a $LOGFILE
echo -ne "`date -u '+%b %e %T'`: Building ### VoIP-Server ### \n" | tee -a $LOGFILE
ipcopmake stund
ipcopmake asterisk
- ipcopmake openvpn
- ipcopmake edonkeyclc
- ipcopmake sane
echo -ne "`date -u '+%b %e %T'`: Building ### MP3-Server ### \n" | tee -a $LOGFILE
ipcopmake lame
ipcopmake gnump3d
+ ipcopmake openvpn
+ ipcopmake edonkeyclc
+ ipcopmake sane
ipcopmake rsync
ipcopmake tcpwrapper
ipcopmake portmap
+ ipcopmake nmap
ipcopmake nfs
# wget http://www.guzu.net/linux/hddtemp.db && mv hddtemp.db $BASEDIR/build/etc/hddtemp.db
# ipcopmake hddtemp
-# ipcopmake stunnel # Ausgeschaltet, weil wir es doch nicht nutzen
+# ipcopmake stunnel # Ausgeschaltet, weil wir es doch nicht nutzen
}
buildinstaller() {
echo "Finished!"
echo "Diff was successfully saved to ipfire-diff-`date +'%Y-%m-%d-%H:%M'`-r`svn info | grep Revision | cut -c 11-`.diff"
;;
+sync)
+ echo -e "Syncing Cache to FTP:"
+ echo -ne "Password for mirror.ipfire.org: "; read PASS
+ ncftpls -u web3 -p $PASS ftp://mirror.ipfire.org/html/source-packages/source/ > ftplist
+ for i in `ls -w1 cache/`; do
+ grep $i ftplist
+ if [ "$?" -ne "0" ]; then
+ ncftpput -u web3 -p $PASS mirror.ipfire.org /html/source-packages/source cache/$i
+ if [ "$?" -eq "0" ]; then
+ echo -e "$i was successfully uploaded to the ftp server."
+ else
+ echo -e "There was an error while uploading $i to the ftp server."
+ fi
+ fi
+ done
+ rm -f ftplist
+ ;;
*)
- echo "Usage: $0 {build|changelog|check|checkclean|clean|commit|diff|dist|gettoolchain|make|newpak|prefetch|shell|toolchain|update}"
+ echo "Usage: $0 {build|changelog|check|checkclean|clean|commit|diff|dist|gettoolchain|make|newpak|prefetch|shell|sync|toolchain|update}"
cat doc/make.sh-usage
exit 1
;;