]>
git.ipfire.org Git - people/ms/ipfire-2.x.git/blob - tools/make-functions
2 ############################################################################
4 # Beautifying variables & presentation & input output interface
6 ############################################################################
9 # Find current screen size
10 if [ -z "${COLUMNS}" ]; then
12 COLUMNS
=${COLUMNS##* }
15 # When using remote connections, such as a serial port, stty size returns 0
16 if [ "${COLUMNS}" = "0" ]; then
20 ## Measurements for positioning result messages
25 RESULT_COL
=$
((${COLUMNS} - $RESULT_WIDTH - 4))
26 TIME_COL
=$
((${RESULT_COL} - $TIME_WIDTH - 5))
27 OPT_COL
=$
((${TIME_COL} - $OPT_WIDTH - 5))
28 VER_COL
=$
((${OPT_COL} - $VER_WIDTH - 5))
30 ## Set Cursur Position Commands, used via echo -e
31 SET_RESULT_COL
="\\033[${RESULT_COL}G"
32 SET_TIME_COL
="\\033[${TIME_COL}G"
33 SET_OPT_COL
="\\033[${OPT_COL}G"
34 SET_VER_COL
="\\033[${VER_COL}G"
36 # Define color for messages
45 if [ "$?" -eq "0" ]; then
52 if [ $EXITCODE -ne "0" ]; then
60 # ARG1=starting position on screen
61 # ARG2=string to be printed
62 # ARG3=offset, negative for left movement, positive for right movement, relative to ARG1
63 # For example if your starting position is column 50 and you want to print Hello three columns to the right
64 # of your starting position, your call will look like this:
65 # position_cursor 50 "Hello" 3 (you'll get the string Hello at position 53 (= 50 + 3)
66 # If on the other hand you want your string "Hello" to end three columns to the left of position 50,
67 # your call will look like this:
68 # position_cursor 50 "Hello" -3 (you'll get the string Hello at position 42 (= 50 - 5 -3)
69 # If you want to start printing at the exact starting location, use offset 0
75 STRING_LENGTH
=${#STRING}
77 if [ ${OFFSET} -lt 0 ]; then
78 COL
=$
((${START} + ${OFFSET} - ${STRING_LENGTH}))
80 COL
=$
((${START} + ${OFFSET}))
83 SET_COL
="\\033[${COL}G"
86 } # End of position_cursor()
91 # Commands: build_stage, make_pkg, message, result
96 echo -ne "${SET_RESULT_COL}[${DONE} DONE ${NORMAL}]\n"
99 echo -ne "${WARN}${3}${NORMAL}${SET_RESULT_COL}[${WARN} WARN ${NORMAL}]\n"
102 echo -ne "${SET_RESULT_COL}[${FAIL} FAIL ${NORMAL}]\n"
105 echo -ne "${SET_RESULT_COL}[${SKIP} SKIP ${NORMAL}]\n"
111 echo -ne "${BOLD}*** ${MESSAGE}${SET_VER_COL} version${SET_OPT_COL} options"
112 echo -ne "${SET_TIME_COL} time (sec)${SET_RESULT_COL} status${NORMAL}\n"
115 echo "$2" |
while read PKG_VER PROGRAM OPTIONS
117 SET_VER_COL_REAL
=`position_cursor $OPT_COL $PKG_VER -3`
119 if [ "$OPTIONS" == "" ]; then
120 echo -ne "${PROGRAM}${SET_VER_COL}[ ${BOLD}${SET_VER_COL_REAL}${PKG_VER}"
121 echo -ne "${NORMAL} ]${SET_RESULT_COL}"
123 echo -ne "${PROGRAM}${SET_VER_COL}[ ${BOLD}${SET_VER_COL_REAL}${PKG_VER}"
124 echo -ne "${NORMAL} ]${SET_OPT_COL}[ ${BOLD}${OPTIONS}"
125 echo -ne "${NORMAL} ]${SET_RESULT_COL}"
138 SET_TIME_COL_REAL
=`position_cursor $RESULT_COL $PKG_TIME -3`
141 echo -ne "${SET_TIME_COL}[ ${BOLD}${SET_TIME_COL_REAL}$PKG_TIME${NORMAL} ]"
142 echo -ne "${SET_RESULT_COL}[${DONE} DONE ${NORMAL}]\n"
145 echo -ne "${SET_TIME_COL}[ ${BOLD}${SET_TIME_COL_REAL}$PKG_TIME${NORMAL} ]"
146 echo -ne "${SET_RESULT_COL}[${FAIL} FAIL ${NORMAL}]\n"
149 echo -ne "${SET_TIME_COL}[ ${BOLD}${SET_TIME_COL_REAL}$PKG_TIME${NORMAL} ]"
150 echo -ne "${SET_RESULT_COL}[${SKIP} SKIP ${NORMAL}]\n"
155 } # End of beautify()
160 PKG_VER
=`grep ^VER $1 | awk '{print $3}'`
162 if [ -z $PKG_VER ]; then
163 PKG_VER
=`grep "Exp " $1 | awk '{print $4}'`
166 if [ ${#PKG_VER} -gt $VER_WIDTH ]; then
167 # If a package version number is greater than $VER_WIDTH, we keep the first 4 characters
168 # and replace enough characters to fit the resulting string on the screen. We'll replace
169 # the extra character with .. (two dots). That's why the "+ 2" in the formula below.
170 # Example: if we have a 21-long version number that we want to fit into a 10-long space,
171 # we have to remove 11 characters. But if we replace 11 characters with 2 characters, we'll
172 # end up with a 12-character long string. That's why we replace 12 characters with ..
173 REMOVE
=`expr substr "$PKG_VER" 4 $[ ${#PKG_VER} - $VER_WIDTH + 2 ]`
174 PKG_VER
=`echo ${PKG_VER/$REMOVE/..}`
178 } # End of get_pkg_ver()
180 if [ 'x86_64' = $MACHINE -o 'i686' = $MACHINE -o 'i586' = $MACHINE ]; then
181 echo "`date -u '+%b %e %T'`: Machine is iX86 (or equivalent)" >> $LOGFILE
183 BUILDTARGET
=i586-pc-linux-gnu
184 CFLAGS
="-O2 -march=i586 -pipe -fomit-frame-pointer"
185 CXXFLAGS
="-O2 -march=i586 -pipe -fomit-frame-pointer"
186 C2FLAGS
="-O2 -march=i586 -mtune=i586 -pipe -fomit-frame-pointer"
187 CXX2FLAGS
="-O2 -march=i586 -mtune=i586 -pipe -fomit-frame-pointer"
189 echo "`date -u '+%b %e %T'`: Can't determine your architecture - $MACHINE" >> $LOGFILE
195 umount
$BASEDIR/build
/sys
2>/dev
/null
;
196 umount
$BASEDIR/build
/dev
/shm
2>/dev
/null
;
197 umount
$BASEDIR/build
/dev
/pts
2>/dev
/null
;
198 umount
$BASEDIR/build
/dev
2>/dev
/null
;
199 umount
$BASEDIR/build
/proc
2>/dev
/null
;
200 umount
$BASEDIR/build
/install
/mnt
2>/dev
/null
;
201 umount
$BASEDIR/build
/usr
/src
/cache
2>/dev
/null
;
202 umount
$BASEDIR/build
/usr
/src
/ccache
2>/dev
/null
;
203 umount
$BASEDIR/build
/usr
/src
/config
2>/dev
/null
;
204 umount
$BASEDIR/build
/usr
/src
/doc
2>/dev
/null
;
205 umount
$BASEDIR/build
/usr
/src
/html
2>/dev
/null
;
206 umount
$BASEDIR/build
/usr
/src
/langs
2>/dev
/null
;
207 umount
$BASEDIR/build
/usr
/src
/lfs
2>/dev
/null
;
208 umount
$BASEDIR/build
/usr
/src
/log
2>/dev
/null
;
209 umount
$BASEDIR/build
/usr
/src
/src
2>/dev
/null
;
214 for i
in `seq 0 7`; do
215 if ( losetup
/dev
/loop
${i} 2>/dev
/null |
grep -q "/install/images" ); then
216 losetup
-d /dev
/loop
${i} 2>/dev
/null
219 echo -e "\nERROR: $*"
220 echo " Check $LOGFILE for errors if applicable"
225 if [ ! -e $BASEDIR/build
/usr
/src
/lfs
/ ]; then
226 exiterror
"No such file or directory: $BASEDIR/build/usr/src/lfs/"
228 echo "Entering to a shell inside LFS chroot, go out with exit"
229 chroot
$LFS /tools
/bin
/env
-i HOME
=/root TERM
=$TERM PS1
='\u:\w\$ ' \
230 PATH
=/usr
/local
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/tools
/bin \
231 VERSION
=$VERSION CONFIG_ROOT
=$CONFIG_ROOT \
232 NAME
="$NAME" SNAME
="$SNAME" SLOGAN
="$SLOGAN" \
233 CFLAGS
="$CF2LAGS" CXXFLAGS
="$CXX2FLAGS" \
234 CCACHE_DIR
=/usr
/src
/ccache \
237 BUILDTARGET
="$BUILDTARGET" MACHINE
="$MACHINE" \
238 KGCC
="ccache /usr/bin/gcc" \
240 if [ $?
-ne 0 ]; then
241 beautify message FAIL
242 exiterror
"chroot error"
248 ############################################################################
250 # Necessary shell functions #
252 ############################################################################
254 # Common checking before entering the chroot and compilling
256 # Return:0 caller can continue
257 # :1 skip (nothing to do)
258 # or fail if no script file found
264 if [ ! -f $BASEDIR/lfs
/$1 ]; then
265 exiterror
"No such file or directory: $BASEDIR/$1"
268 local PKG_VER
=`get_pkg_ver $BASEDIR/lfs/$1`
269 beautify make_pkg
"$PKG_VER $*"
273 for i
in $SKIP_PACKAGE_LIST
275 if [ "$i" == "$1" ]; then
281 echo -ne "`date -u '+%b %e %T'`: Building $* " >> $LOGFILE
283 cd $BASEDIR/lfs
&& make -s -f $
* LFS_BASEDIR
=$BASEDIR MESSAGE
="$1\t " download
>> $LOGFILE 2>&1
284 if [ $?
-ne 0 ]; then
285 exiterror
"Download error in $1"
288 cd $BASEDIR/lfs
&& make -s -f $
* LFS_BASEDIR
=$BASEDIR MESSAGE
="$1\t md5sum" md5
>> $LOGFILE 2>&1
289 if [ $?
-ne 0 ]; then
290 exiterror
"md5sum error in $1, check file in cache or signature"
294 } # End of lfsmakecommoncheck()
297 lfsmakecommoncheck $
*
298 [ $?
== 1 ] && return 0
300 local PKG_TIME_START
=`date +%s`
302 cd $BASEDIR/lfs
&& make -f $
* BUILDTARGET
=$BUILDTARGET \
304 LFS_BASEDIR
=$BASEDIR \
307 MAKETUNING
=$MAKETUNING \
308 install >> $LOGFILE 2>&1
309 local COMPILE_SUCCESS
=$?
310 local PKG_TIME_END
=`date +%s`
312 if [ $COMPILE_SUCCESS -ne 0 ]; then
313 beautify result FAIL $
[ $PKG_TIME_END - $PKG_TIME_START ]
314 exiterror
"Building $*";
316 beautify result DONE $
[ $PKG_TIME_END - $PKG_TIME_START ]
323 lfsmakecommoncheck $
*
324 [ $?
== 1 ] && return 0
326 local PKG_TIME_START
=`date +%s`
327 chroot
$LFS /tools
/bin
/env
-i HOME
=/root \
328 TERM
=$TERM PS1
='\u:\w\$ ' \
329 PATH
=/usr
/local
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/tools
/bin \
331 CONFIG_ROOT
=$CONFIG_ROOT \
332 NAME
="$NAME" SNAME
="$SNAME" SLOGAN
="$SLOGAN" \
333 CFLAGS
="$C2FLAGS" CXXFLAGS
="$CXX2FLAGS" \
334 CCACHE_DIR
=/usr
/src
/ccache CCACHE_HASHDIR
=1 \
335 KVER
=$KVER MAKETUNING
=$MAKETUNING \
336 BUILDTARGET
="$BUILDTARGET" MACHINE
="$MACHINE" \
338 /tools
/bin
/bash
-x -c "cd /usr/src/lfs && \
339 make -f $* LFS_BASEDIR=/usr/src install" >>$LOGFILE 2>&1
340 local COMPILE_SUCCESS
=$?
341 local PKG_TIME_END
=`date +%s`
343 if [ $COMPILE_SUCCESS -ne 0 ]; then
344 beautify result FAIL $
[ $PKG_TIME_END - $PKG_TIME_START ]
345 exiterror
"Building $*";
347 beautify result DONE $
[ $PKG_TIME_END - $PKG_TIME_START ]
354 lfsmakecommoncheck $
*
355 [ $?
== 1 ] && return 0
357 local PKG_TIME_START
=`date +%s`
358 chroot
$LFS /tools
/bin
/env
-i HOME
=/root \
359 TERM
=$TERM PS1
='\u:\w\$ ' \
360 PATH
=/usr
/local
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin \
362 CONFIG_ROOT
=$CONFIG_ROOT \
363 NAME
="$NAME" SNAME
="$SNAME" SLOGAN
="$SLOGAN" \
364 CFLAGS
="$C2FLAGS" CXXFLAGS
="$CXX2FLAGS" \
365 CCACHE_DIR
=/usr
/src
/ccache CCACHE_HASHDIR
=1 \
366 KVER
=$KVER MAKETUNING
=$MAKETUNING \
367 BUILDTARGET
="$BUILDTARGET" MACHINE
="$MACHINE" \
369 /bin
/bash
-x -c "cd /usr/src/lfs && \
370 make -f $* LFS_BASEDIR=/usr/src install" >>$LOGFILE 2>&1
372 local COMPILE_SUCCESS
=$?
373 local PKG_TIME_END
=`date +%s`
375 if [ $COMPILE_SUCCESS -ne 0 ]; then
376 beautify result FAIL $
[ $PKG_TIME_END - $PKG_TIME_START ]
377 exiterror
"Building $*";
379 beautify result DONE $
[ $PKG_TIME_END - $PKG_TIME_START ]
385 if [ -f $BASEDIR/build
/usr
/src
/lfs
/$1 ]; then
386 echo "`date -u '+%b %e %T'`: Packaging $1" |
tee -a $LOGFILE
387 chroot
$LFS /tools
/bin
/env
-i HOME
=/root \
388 TERM
=$TERM PS1
='\u:\w\$ ' \
389 PATH
=/usr
/local
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin \
391 CONFIG_ROOT
=$CONFIG_ROOT \
392 NAME
="$NAME" SNAME
="$SNAME" SLOGAN
="$SLOGAN" \
393 CFLAGS
="$C2FLAGS" CXXFLAGS
="$CXX2FLAGS" \
394 CCACHE_DIR
=/usr
/src
/ccache CCACHE_HASHDIR
=1 \
395 KVER
=$KVER IPFVER
="$IPFVER" \
396 BUILDTARGET
="$BUILDTARGET" MACHINE
="$MACHINE" \
397 /bin
/bash
-x -c "cd /usr/src/lfs && \
398 make -f $1 LFS_BASEDIR=/usr/src dist" >>$LOGFILE 2>&1
399 if [ $?
-ne 0 ]; then
400 exiterror
"Packaging $1"
403 exiterror
"No such file or directory: $BASEDIR/build/usr/src/lfs/$1"
409 if [ -f $BASEDIR/build
/usr
/src
/lfs
/$1 ]; then
410 echo "`date -u '+%b %e %T'`: Building $*" |
tee -a $LOGFILE
411 cd $BASEDIR/lfs
&& make -s -f $
* LFS_BASEDIR
=$BASEDIR MESSAGE
="$1\t " download
>> $LOGFILE 2>&1
412 if [ $?
-ne 0 ]; then
413 exiterror
"Download error in $1"
415 cd $BASEDIR/lfs
&& make -s -f $
* LFS_BASEDIR
=$BASEDIR MESSAGE
="$1\t md5sum" md5
>> $LOGFILE 2>&1
416 if [ $?
-ne 0 ]; then
417 exiterror
"md5sum error in $1, check file in cache or signature"
419 chroot
$LFS /tools
/bin
/env
-i HOME
=/root \
420 TERM
=$TERM PS1
='\u:\w\$ ' \
421 PATH
=/usr
/local
/bin
:/opt
/$MACHINE-uClibc/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin \
423 CONFIG_ROOT
=$CONFIG_ROOT \
425 NAME
="$NAME" SNAME
="$SNAME" SLOGAN
="$SLOGAN" \
426 CFLAGS
="-Os" CXXFLAGS
="-Os" \
427 CCACHE_DIR
=/usr
/src
/ccache CCACHE_HASHDIR
=1 \
428 KVER
=$KVER IPFVER
="$IPFVER" \
429 BUILDTARGET
="$BUILDTARGET" MACHINE
="$MACHINE" \
430 /bin
/bash
-x -c "cd /usr/src/lfs && \
431 make -f $* LFS_BASEDIR=/usr/src install" >>$LOGFILE 2>&1
432 if [ $?
-ne 0 ]; then
433 exiterror
"Building $*"
436 exiterror
"No such file or directory: $BASEDIR/build/usr/src/lfs/$1"
442 tar cfz log
/ipfire-logs-
`date +'%Y-%m-%d-%H:%M'`.tgz log
/_build.
*
447 echo -ne "### UPDATE LOGS"
451 if [ "$IPFIRE_REBUILD" -eq "0" ]; then
452 echo -ne "### SAVING TIME"
453 export IPFIRE_START_TIME
=`date`
456 echo "### RUNNING SVN-UPDATE"
458 evaluate
1 mail SVNUPDATE
460 echo "### EXPORT SOURCES"
462 evaluate
1 mail SVNDIST
464 echo "### RUNNING PREFETCH"
465 $0 prefetch |
grep -q "md5 difference"
466 evaluate
1 mail PREFETCH
469 echo "### RUNNING BUILD"
471 evaluate
1 mail ERROR
473 echo "### UPLOADING ISO"
477 echo -ne "### UPLOADING PAKS"
481 echo -n "${BOLD}***SUCCESS!${NORMAL}"
482 evaluate
0 mail SUCCESS
487 echo -e "${BOLD}Exit with Ctrl+A, Ctrl+D.${NORMAL}"
493 chmod 755 tools
/sendEmail
494 ATTACHMENT
=/tmp
/ipfire-build-logs-R
$SVN_REVISION.
tar.gz
497 SUBJECT
="SUCCESS: IPFIRE-BUILD R$SVN_REVISION on `hostname`"
498 cat <<END > /tmp/ipfire_mail_body
499 Building IPFire on `hostname` in Revision $SVN_REVISION was successfull!
500 You can find the ISO on your ftp server.
504 Started: $IPFIRE_START_TIME
508 Your IPFire-Build-Script
511 echo -ne "${BOLD}***Sending success message${NORMAL}"
514 SUBJECT
="ERROR $1: IPFIRE-BUILD R$SVN_REVISION on `hostname`"
515 cat <<END > /tmp/ipfire_mail_body
516 When I was building IPFire on `hostname`, I have found an ERROR with name $1!
517 Here you can see the logs and detect the reason for this error.
520 Your IPFire-Build-Script
523 Here is a summary... The full logs are in the attachment.
524 ---------------------------------------------------------
528 echo -ne "${BOLD}***Sending error message${NORMAL}"
531 tar cfz
$ATTACHMENT log
/_build
*
532 cat /tmp
/ipfire_mail_body | tools
/sendEmail
-q \
533 -f $IPFIRE_MAIL_FROM \
534 -t $IPFIRE_MAIL_REPORT \
536 -s $IPFIRE_MAIL_SERVER:25 \
537 -xu $IPFIRE_MAIL_USER \
538 -xp $IPFIRE_MAIL_PASS \
539 -l log
/_build.
mail.log \
541 if [ "$?" -eq "0" ]; then
542 beautify message DONE
544 beautify message FAIL
546 rm -f /tmp
/ipfire_mail_body
$ATTACHMENT
550 echo -e "This is for creating your configuration..."
551 echo -e "We will need some input:"
553 echo -n "FTP-DOMAIN FOR THE ISO: "
554 read IPFIRE_FTP_URL_EXT
555 echo -n "PATH FOR $IPFIRE_FTP_URL_EXT: "
556 read IPFIRE_FTP_PATH_EXT
557 echo -n "USERNAME FOR $IPFIRE_FTP_URL_EXT: "
558 read IPFIRE_FTP_USER_EXT
559 echo -n "PASSWORD FOR $IPFIRE_FTP_URL_EXT: "
560 read -s IPFIRE_FTP_PASS_EXT
562 echo "(You can leave this empty if the cache-server is the same as your iso-server.)"
563 echo -n "FTP-DOMAIN FOR THE CACHE: "
564 read IPFIRE_FTP_URL_INT
565 echo -n "PATH FOR $IPFIRE_FTP_URL_INT: "
566 read IPFIRE_FTP_PATH_INT
567 if [ $IPFIRE_FTP_URL_INT ]; then
568 echo -n "USERNAME FOR $IPFIRE_FTP_URL_INT: "
569 read IPFIRE_FTP_USER_INT
570 echo -n "PASSWORD FOR $IPFIRE_FTP_URL_INT: "
571 read -s IPFIRE_FTP_PASS_INT
573 IPFIRE_FTP_URL_INT
=$IPFIRE_FTP_URL_EXT
574 IPFIRE_FTP_USER_INT
=$IPFIRE_FTP_USER_EXT
575 IPFIRE_FTP_PASS_INT
=$IPFIRE_FTP_PASS_EXT
576 echo "USERNAME FOR $IPFIRE_FTP_URL_INT: $IPFIRE_FTP_USER_INT"
577 echo "PASSWORD FOR $IPFIRE_FTP_URL_INT: !HIDDEN!"
580 echo "(You can leave this empty if the pak-server is the same as your iso-server.)"
581 echo -n "FTP-DOMAIN FOR THE PAKS: "
582 read IPFIRE_FTP_URL_PAK
583 echo -n "PATH FOR $IPFIRE_FTP_URL_PAK: "
584 read IPFIRE_FTP_PATH_PAK
585 if [ $IPFIRE_FTP_URL_PAK ]; then
586 echo -n "USERNAME FOR $IPFIRE_FTP_URL_PAK: "
587 read IPFIRE_FTP_USER_PAK
588 echo -n "PASSWORD FOR $IPFIRE_FTP_URL_PAK: "
589 read -s IPFIRE_FTP_PASS_PAK
591 IPFIRE_FTP_URL_PAK
=$IPFIRE_FTP_URL_EXT
592 IPFIRE_FTP_USER_PAK
=$IPFIRE_FTP_USER_EXT
593 IPFIRE_FTP_PASS_PAK
=$IPFIRE_FTP_PASS_EXT
594 echo "USERNAME FOR $IPFIRE_FTP_URL_PAK: $IPFIRE_FTP_USER_PAK"
595 echo "PASSWORD FOR $IPFIRE_FTP_URL_PAK: !HIDDEN!"
598 echo -e "ONE OR MORE EMAIL ADDRESS(ES) TO WHICH THE REPORTS WILL BE SENT"
599 echo -e "(seperated by comma)"
600 read IPFIRE_MAIL_REPORT
601 echo -n "EMAIL FROM: "
602 read IPFIRE_MAIL_FROM
603 echo -n "EMAIL SERVER: "
604 read IPFIRE_MAIL_SERVER
605 echo -n "LOGIN TO MAIL SERVER: "
606 read IPFIRE_MAIL_USER
607 echo -n "MAIL PASSWORD: "
608 read -s IPFIRE_MAIL_PASS
612 IPFIRE_FTP_URL_EXT=$IPFIRE_FTP_URL_EXT
613 IPFIRE_FTP_PATH_EXT=$IPFIRE_FTP_PATH_EXT
614 IPFIRE_FTP_USER_EXT=$IPFIRE_FTP_USER_EXT
615 IPFIRE_FTP_PASS_EXT=$IPFIRE_FTP_PASS_EXT
617 IPFIRE_FTP_URL_INT=$IPFIRE_FTP_URL_INT
618 IPFIRE_FTP_PATH_INT=$IPFIRE_FTP_PATH_INT
619 IPFIRE_FTP_USER_INT=$IPFIRE_FTP_USER_INT
620 IPFIRE_FTP_PASS_INT=$IPFIRE_FTP_PASS_INT
622 IPFIRE_FTP_URL_PAK=$IPFIRE_FTP_URL_PAK
623 IPFIRE_FTP_PATH_PAK=$IPFIRE_FTP_PATH_PAK
624 IPFIRE_FTP_USER_PAK=$IPFIRE_FTP_USER_PAK
625 IPFIRE_FTP_PASS_PAK=$IPFIRE_FTP_PASS_PAK
627 IPFIRE_MAIL_REPORT=$IPFIRE_MAIL_REPORT
628 IPFIRE_MAIL_FROM=$IPFIRE_MAIL_FROM
629 IPFIRE_MAIL_SERVER=$IPFIRE_MAIL_SERVER
630 IPFIRE_MAIL_USER=$IPFIRE_MAIL_USER
631 IPFIRE_MAIL_PASS=$IPFIRE_MAIL_PASS
633 beautify message DONE