fi
echo "### RUNNING BUILD"
- $0 build --devel
+ $0 build #--devel
evaluate 1 mail_me ERROR
echo "### UPLOADING ISO"
evaluate 1 mail_me ISO
echo -ne "### UPLOADING PAKS"
- $0 packages sign
$0 upload paks
evaluate 1 mail_me PAKS
esac
tar cfz $ATTACHMENT log/_build*
cat /tmp/ipfire_mail_body | tools/sendEmail -q \
- -f $MAIL_USER \
- -t $MAIL_TO \
- -u $SUBJECT \
+ -f "$MAIL_FROM" \
+ -t "$MAIL_TO" \
+ -u "$SUBJECT" \
-s $MAIL_SERVER:25 \
- -xu $MAIL_USER \
- -xp $MAIL_PASS \
+ -xu "$MAIL_USER" \
+ -xp "$MAIL_PASS" \
-l log/_build.mail.log \
-a $ATTACHMENT # -v
if [ "$?" -eq "0" ]; then
echo -ne "You should enter a mail server to login...\n"
echo -ne "Please type the url: "
read MAIL_SERVER
+ echo -ne "Please type where the email is from: "
+ read MAIL_FROM
echo -ne "Please type the username: "
read MAIL_USER
echo -ne "Please type the password (hidden): "
FTP_CACHE_PASS=$FTP_CACHE_PASS
### mail reports
MAIL_TO="$MAIL_TO"
+MAIL_FROM=$MAIL_FROM
MAIL_SERVER=$MAIL_SERVER
MAIL_USER=$MAIL_USER
MAIL_PASS=$MAIL_PASS
$BASEDIR/tools/check_langs.sh > $BASEDIR/doc/language_missings
beautify message DONE
}
-
-sign_packages() {
- if gpg --list-key 64D96617 ; then
- if [ -d "$BASEDIR/packages" ]; then
- cd $BASEDIR/packages
- for i in `ls $BASEDIR/packages/*.ipfire`; do
- echo -n "Signing $i"
- echo $GPG_PASSPHRASE | gpg --compress-algo 3 --sign --armor -u 64D96617 --passphrase-fd 0 $i
- if [ "$?" -eq "0" ]; then
- beautify message DONE
- mv -f $i.asc $i
- else
- beautify message FAIL
- fi
- done
- for i in `ls $BASEDIR/packages/meta-*`; do
- echo -n "Signing $i"
- echo $GPG_PASSPHRASE | gpg --clearsign --armor -u 64D96617 --passphrase-fd 0 $i
- if [ "$?" -eq "0" ]; then
- beautify message DONE
- mv -f $i.asc $i
- else
- beautify message FAIL
- fi
- done
- cd -
- fi
- else
- echo -n "You don't have the secret key to sign ipfire's packages!"
- beautify message FAIL
- fi
-}