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
|
|
|
|
2007-07-14 16:52:31 +02:00
|
|
|
DEST=
|
2007-07-14 16:56:49 +02:00
|
|
|
USER="webmin@mail.shorewall.net"
|
2007-07-14 16:52:31 +02:00
|
|
|
SHOREWALL=shorewall
|
|
|
|
COMMAND=scp
|
|
|
|
|
2006-02-24 20:53:09 +01:00
|
|
|
case $1 in
|
2007-05-16 01:01:25 +02:00
|
|
|
4.*Beta*|4.*RC*)
|
2007-07-14 16:52:31 +02:00
|
|
|
DEST="/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
|
|
|
SHOREWALL=shorewall-common
|
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-07-11 20:01:36 +02:00
|
|
|
4.0.*)
|
2007-07-14 16:52:31 +02:00
|
|
|
DEST="/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
|
|
|
SHOREWALL=shorewall-common
|
2007-07-11 20:01:36 +02:00
|
|
|
rpm=shorewall-common-${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
|
|
|
|
;;
|
2007-04-07 21:20:14 +02:00
|
|
|
3.9.*)
|
2007-07-14 16:52:31 +02:00
|
|
|
DEST="/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-07-14 16:52:31 +02:00
|
|
|
DEST="/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-07-14 16:52:31 +02:00
|
|
|
DEST="/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-07-14 16:52:31 +02:00
|
|
|
DEST="/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-07-14 16:52:31 +02:00
|
|
|
DEST="/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-07-14 16:52:31 +02:00
|
|
|
DEST="/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-07-14 16:52:31 +02:00
|
|
|
DEST="/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-07-14 16:52:31 +02:00
|
|
|
DEST="/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
|
|
|
|
|
2007-07-14 16:52:31 +02:00
|
|
|
if [ "$HOSTNAME" = lists ]; then
|
|
|
|
mkdir -p $DEST
|
|
|
|
COMMAND=cp
|
2006-06-19 17:00:29 +02:00
|
|
|
else
|
2007-07-14 16:52:31 +02:00
|
|
|
ssh $USER mkdir -p $DEST
|
2007-07-14 16:56:49 +02:00
|
|
|
$DEST=${USER}:${DEST}
|
2006-06-19 17:00:29 +02:00
|
|
|
fi
|
|
|
|
|
2007-07-14 16:52:31 +02:00
|
|
|
$COMMAND -r errata known_problems.txt patch-$1 ${1}.* releasenotes.txt shorewall*${1}*.tgz* shorewall*${1}*.bz2* $rpm $literpm $perlrpm $shellrpm $DEST
|