2005-11-17 20:05:16 +01:00
|
|
|
#/bin/sh
|
|
|
|
|
2006-03-11 17:21:15 +01:00
|
|
|
rpm=
|
2006-06-03 19:16:27 +02:00
|
|
|
literpm=
|
2007-04-07 21:20:14 +02:00
|
|
|
perlrpm=
|
|
|
|
shellrpm=
|
2006-03-11 17:21:15 +01:00
|
|
|
|
2006-02-24 20:53:09 +01:00
|
|
|
case $1 in
|
2007-05-16 01:01:25 +02:00
|
|
|
4.*Beta*|4.*RC*)
|
|
|
|
DEST="webadmin@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
2007-06-29 18:01:10 +02:00
|
|
|
rpm=shorewall-common-${1%-*}-0${1#*-}.noarch.rpm
|
2007-05-16 01:01:25 +02:00
|
|
|
literpm=shorewall-lite-${1%-*}-0${1#*-}.noarch.rpm
|
|
|
|
perlrpm=shorewall-perl-${1%-*}-0${1#*-}.noarch.rpm
|
|
|
|
shellrpm=shorewall-shell-${1%-*}-0${1#*-}.noarch.rpm
|
|
|
|
;;
|
2007-04-07 21:20:14 +02:00
|
|
|
3.9.*)
|
2007-05-15 04:54:58 +02:00
|
|
|
DEST="webadmin@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
2006-10-19 23:14:48 +02:00
|
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
|
|
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
2007-04-07 21:20:14 +02:00
|
|
|
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
|
|
|
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
2006-10-19 23:14:48 +02:00
|
|
|
;;
|
2007-04-07 21:20:14 +02:00
|
|
|
3.*[13579].*)
|
2007-05-15 04:54:58 +02:00
|
|
|
DEST="webadmin@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
2006-06-22 05:34:29 +02:00
|
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
2007-04-07 21:20:14 +02:00
|
|
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
2006-02-24 20:53:09 +01:00
|
|
|
;;
|
2007-04-07 21:20:14 +02:00
|
|
|
*.*[13579].*)
|
2007-05-15 04:54:58 +02:00
|
|
|
DEST="webadmin@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
2007-04-07 21:20:14 +02:00
|
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
|
|
|
;;
|
|
|
|
3.*Beta*|*RC*)
|
2007-05-15 04:54:58 +02:00
|
|
|
DEST="webadmin@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
2007-04-07 21:20:14 +02:00
|
|
|
rpm=shorewall-${1%-*}-0${1#*-}.noarch.rpm
|
|
|
|
literpm=shorewall-lite-${1%-*}-0${1#*-}.noarch.rpm
|
2007-04-17 16:53:32 +02:00
|
|
|
;;
|
2007-04-07 21:20:14 +02:00
|
|
|
*.*Beta*|*RC*)
|
2007-05-15 04:54:58 +02:00
|
|
|
DEST="webadmin@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
2006-03-11 17:30:11 +01:00
|
|
|
rpm=shorewall-${1%-*}-0${1#*-}.noarch.rpm
|
2006-06-03 19:16:27 +02:00
|
|
|
literpm=shorewall-lite-${1%-*}-0${1#*-}.noarch.rpm
|
2007-04-07 21:20:14 +02:00
|
|
|
perlrpm=shorewall-perl-${1%-*}-0${1#*-}.noarch.rpm
|
|
|
|
shellrpm=shorewall-shell-${1%-*}-0${1#*-}.noarch.rpm
|
2006-03-11 04:50:41 +01:00
|
|
|
;;
|
2006-07-11 18:00:34 +02:00
|
|
|
3.[2468].*)
|
2007-05-15 04:54:58 +02:00
|
|
|
DEST="webadmin@mail.shorewall.net:/srv/ftp/pub/shorewall/${1%.*}/shorewall-$1"
|
2006-07-11 17:52:08 +02:00
|
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
|
|
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
2007-04-17 16:53:32 +02:00
|
|
|
;;
|
2007-04-07 21:20:14 +02:00
|
|
|
*.[2468].*)
|
2007-05-15 04:54:58 +02:00
|
|
|
DEST="webadmin@mail.shorewall.net:/srv/ftp/pub/shorewall/${1%.*}/shorewall-$1"
|
2007-04-07 21:20:14 +02:00
|
|
|
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
|
2006-07-11 17:52:08 +02:00
|
|
|
;;
|
2006-02-24 20:53:09 +01:00
|
|
|
*)
|
2007-05-15 04:54:58 +02:00
|
|
|
DEST="webadmin@mail.shorewall.net:/srv/ftp/pub/shorewall/${1%.*}/shorewall-$1"
|
2006-06-22 05:34:29 +02:00
|
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
2006-02-24 20:53:09 +01:00
|
|
|
;;
|
|
|
|
esac
|
2005-11-17 20:05:16 +01:00
|
|
|
|
2006-03-11 17:30:11 +01:00
|
|
|
[ $# -eq 1 ] || { echo "Usage: $(basename $0) <version>"; exit 2; }
|
2005-11-17 20:05:16 +01:00
|
|
|
|
|
|
|
[ -d errata ] || mkdir errata
|
2006-03-11 17:30:11 +01:00
|
|
|
|
2005-11-17 20:05:16 +01:00
|
|
|
echo "There are no known problems in Shorewall version $1" > known_problems.txt
|
|
|
|
|
2006-06-19 17:00:29 +02:00
|
|
|
if [ -f shorewall-lite-${1}/releasenotes.txt ]; then
|
2007-06-29 23:24:09 +02:00
|
|
|
cat shorewall-common-${1}/releasenotes.txt shorewall-lite-${1}/releasenotes.txt > releasenotes.txt
|
2006-06-19 17:00:29 +02:00
|
|
|
else
|
2007-06-29 23:24:09 +02:00
|
|
|
cat shorewall-common-${1}/releasenotes.txt > releasenotes.txt
|
2006-06-19 17:00:29 +02:00
|
|
|
fi
|
|
|
|
|
2007-02-17 00:18:30 +01:00
|
|
|
ssh ${DEST%%:*} mkdir -p ${DEST#*:}
|
|
|
|
|
2007-04-07 21:20:14 +02:00
|
|
|
scp -r errata known_problems.txt patch-$1 ${1}.* releasenotes.txt shorewall*${1}*.tgz* shorewall*${1}*.bz2* $rpm $literpm $perlrpm $shellrpm $DEST
|