forked from extern/shorewall_code
16ef2bbcb3
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5848 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
68 lines
2.2 KiB
Plaintext
Executable File
68 lines
2.2 KiB
Plaintext
Executable File
#/bin/sh
|
|
|
|
rpm=
|
|
literpm=
|
|
perlrpm=
|
|
shellrpm=
|
|
|
|
case $1 in
|
|
3.9.*)
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
|
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
|
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
|
;;
|
|
3.*[13579].*)
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
|
;;
|
|
*.*[13579].*)
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
|
;;
|
|
3.*Beta*|*RC*)
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
|
rpm=shorewall-${1%-*}-0${1#*-}.noarch.rpm
|
|
literpm=shorewall-lite-${1%-*}-0${1#*-}.noarch.rpm
|
|
*.*Beta*|*RC*)
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
|
rpm=shorewall-${1%-*}-0${1#*-}.noarch.rpm
|
|
literpm=shorewall-lite-${1%-*}-0${1#*-}.noarch.rpm
|
|
perlrpm=shorewall-perl-${1%-*}-0${1#*-}.noarch.rpm
|
|
shellrpm=shorewall-shell-${1%-*}-0${1#*-}.noarch.rpm
|
|
;;
|
|
3.[2468].*)
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/${1%.*}/shorewall-$1"
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
|
*.[2468].*)
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/${1%.*}/shorewall-$1"
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
|
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
|
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
|
;;
|
|
*)
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/${1%.*}/shorewall-$1"
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
|
;;
|
|
esac
|
|
|
|
[ $# -eq 1 ] || { echo "Usage: $(basename $0) <version>"; exit 2; }
|
|
|
|
[ -d errata ] || mkdir errata
|
|
|
|
echo "There are no known problems in Shorewall version $1" > known_problems.txt
|
|
|
|
if [ -f shorewall-lite-${1}/releasenotes.txt ]; then
|
|
cat shorewall-${1}/releasenotes.txt shorewall-lite-${1}/releasenotes.txt > releasenotes.txt
|
|
else
|
|
cat shorewall-${1}/releasenotes.txt > releasenotes.txt
|
|
fi
|
|
|
|
ssh ${DEST%%:*} mkdir -p ${DEST#*:}
|
|
|
|
scp -r errata known_problems.txt patch-$1 ${1}.* releasenotes.txt shorewall*${1}*.tgz* shorewall*${1}*.bz2* $rpm $literpm $perlrpm $shellrpm $DEST
|