mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 15:43:30 +01:00
Experiment with RPM versions
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7906 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
76bbd985cd
commit
0dd64cab77
@ -28,7 +28,7 @@
|
||||
# shown below. Simply run this script to revert to your prior version of
|
||||
# Shoreline Firewall.
|
||||
|
||||
VERSION=4.1.3
|
||||
VERSION=4.2.0-RC1
|
||||
|
||||
usage() # $1 = exit status
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
VERSION=4.1.3
|
||||
VERSION=4.2.0-RC1
|
||||
|
||||
usage() # $1 = exit status
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
%define name shorewall-common
|
||||
%define version 4.1.3
|
||||
%define release 1
|
||||
%define version 4.2.0
|
||||
%define release RC1
|
||||
|
||||
Summary: Shoreline Firewall is an iptables-based firewall for Linux systems.
|
||||
Name: %{name}
|
||||
@ -243,6 +243,8 @@ fi
|
||||
%doc COPYING INSTALL changelog.txt releasenotes.txt tunnel ipsecvpn Samples
|
||||
|
||||
%changelog
|
||||
* Wed Dec 12 2007 Tom Eastep tom@shorewall.net
|
||||
- Updated to 4.2.0-RC1
|
||||
* Fri Dec 07 2007 Tom Eastep tom@shorewall.net
|
||||
- Updated to 4.1.3-1
|
||||
* Tue Nov 27 2007 Tom Eastep tom@shorewall.net
|
||||
|
@ -26,7 +26,7 @@
|
||||
# You may only use this script to uninstall the version
|
||||
# shown below. Simply run this script to remove Shorewall Firewall
|
||||
|
||||
VERSION=4.1.3
|
||||
VERSION=4.2.0-RC1
|
||||
|
||||
usage() # $1 = exit status
|
||||
{
|
||||
|
@ -28,7 +28,7 @@
|
||||
# shown below. Simply run this script to revert to your prior version of
|
||||
# Shoreline Firewall.
|
||||
|
||||
VERSION=4.1.3
|
||||
VERSION=4.2.0-RC1
|
||||
|
||||
usage() # $1 = exit status
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
VERSION=4.1.3
|
||||
VERSION=4.2.0-RC1
|
||||
|
||||
usage() # $1 = exit status
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
%define name shorewall-lite
|
||||
%define version 4.1.3
|
||||
%define release 1
|
||||
%define version 4.2.0
|
||||
%define release RC1
|
||||
|
||||
Summary: Shoreline Firewall Lite is an iptables-based firewall for Linux systems.
|
||||
Name: %{name}
|
||||
@ -98,6 +98,8 @@ fi
|
||||
%doc COPYING changelog.txt releasenotes.txt
|
||||
|
||||
%changelog
|
||||
* Wed Dec 12 2007 Tom Eastep tom@shorewall.net
|
||||
- Updated to 4.2.0-RC1
|
||||
* Fri Dec 07 2007 Tom Eastep tom@shorewall.net
|
||||
- Updated to 4.1.3-1
|
||||
* Tue Nov 27 2007 Tom Eastep tom@shorewall.net
|
||||
|
@ -26,7 +26,7 @@
|
||||
# You may only use this script to uninstall the version
|
||||
# shown below. Simply run this script to remove Shorewall Firewall
|
||||
|
||||
VERSION=4.1.3
|
||||
VERSION=4.2.0-RC1
|
||||
|
||||
usage() # $1 = exit status
|
||||
{
|
||||
|
@ -253,7 +253,7 @@ sub initialize() {
|
||||
ORIGINAL_POLICY_MATCH => '',
|
||||
LOGPARMS => '',
|
||||
TC_SCRIPT => '',
|
||||
VERSION => "4.1.3",
|
||||
VERSION => "4.2.0-RC1",
|
||||
CAPVERSION => 40100 ,
|
||||
);
|
||||
#
|
||||
|
@ -22,7 +22,7 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
VERSION=4.1.3
|
||||
VERSION=4.2.0-RC1
|
||||
|
||||
usage() # $1 = exit status
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
%define name shorewall-perl
|
||||
%define version 4.1.3
|
||||
%define release 1
|
||||
%define version 4.2.0
|
||||
%define release RC1
|
||||
|
||||
Summary: Shoreline Firewall Perl-based compiler.
|
||||
Name: %{name}
|
||||
@ -64,6 +64,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%doc COPYING releasenotes.txt
|
||||
|
||||
%changelog
|
||||
* Wed Dec 12 2007 Tom Eastep tom@shorewall.net
|
||||
- Updated to 4.2.0-RC1
|
||||
* Fri Dec 07 2007 Tom Eastep tom@shorewall.net
|
||||
- Updated to 4.1.3-1
|
||||
* Tue Nov 27 2007 Tom Eastep tom@shorewall.net
|
||||
|
@ -22,7 +22,7 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
VERSION=4.1.3
|
||||
VERSION=4.2.0-RC1
|
||||
|
||||
usage() # $1 = exit status
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
%define name shorewall-shell
|
||||
%define version 4.1.3
|
||||
%define release 1
|
||||
%define version 4.2.0
|
||||
%define release RC1
|
||||
|
||||
Summary: Shoreline Firewall is an iptables-based firewall for Linux systems.
|
||||
Name: %{name}
|
||||
@ -81,6 +81,8 @@ fi
|
||||
%doc COPYING INSTALL
|
||||
|
||||
%changelog
|
||||
* Wed Dec 12 2007 Tom Eastep tom@shorewall.net
|
||||
- Updated to 4.2.0-RC1
|
||||
* Fri Dec 07 2007 Tom Eastep tom@shorewall.net
|
||||
- Updated to 4.1.3-1
|
||||
* Tue Nov 27 2007 Tom Eastep tom@shorewall.net
|
||||
|
@ -304,7 +304,7 @@ case $VERSION in
|
||||
MANPAGETAG=="tags/${BASEVERSION}/manpages"
|
||||
LITEMANPAGETAG="tags/${BASEVERSION}/manpages-lite"
|
||||
;;
|
||||
4.1.*)
|
||||
4.[12].*)
|
||||
SVNBRANCH="trunk/Shorewall-common"
|
||||
LITESVNBRANCH="trunk/Shorewall-lite"
|
||||
PERLBRANCH="trunk/Shorewall-perl"
|
||||
@ -395,12 +395,12 @@ case $VERSION in
|
||||
SHOREWALLLITEDIR=shorewall-lite-$VERSION
|
||||
TARBALL=shorewall-common-$VERSION.tgz
|
||||
LITETARBALL=shorewall-lite-$VERSION.tgz
|
||||
RPMNAME=shorewall-common-${VERSION}-1.noarch.rpm
|
||||
LITERPMNAME=shorewall-lite-${VERSION}-1.noarch.rpm
|
||||
PERLRPMNAME=shorewall-perl-${VERSION}-1.noarch.rpm
|
||||
RPMNAME=shorewall-common-${VERSION}-0base.noarch.rpm
|
||||
LITERPMNAME=shorewall-lite-${VERSION}-0base.noarch.rpm
|
||||
PERLRPMNAME=shorewall-perl-${VERSION}-0base.noarch.rpm
|
||||
PERLDIR=shorewall-perl-$VERSION
|
||||
PERLTARBALL=shorewall-perl-$VERSION.tgz
|
||||
SHELLRPMNAME=shorewall-shell-${VERSION}-1.noarch.rpm
|
||||
SHELLRPMNAME=shorewall-shell-${VERSION}-0base.noarch.rpm
|
||||
SHELLDIR=shorewall-shell-$VERSION
|
||||
SHELLTARBALL=shorewall-shell-$VERSION.tgz
|
||||
;;
|
||||
|
@ -27,17 +27,21 @@
|
||||
[ $# -eq 1 ] || { echo "usage: setversion <version>" >&2; exit 1; }
|
||||
|
||||
VERSION=$1
|
||||
SUFFIX=
|
||||
|
||||
case $VERSION in
|
||||
*.*.*.*)
|
||||
RELEASE=${VERSION##*.}
|
||||
RPMVERSION=${VERSION%.*}
|
||||
RELEASE=${VERSION##*.}
|
||||
SUFFIX="-$RELEASE"
|
||||
;;
|
||||
*-*)
|
||||
RPMVERSION=${VERSION%-*}
|
||||
RELEASE=${VERSION##*-}
|
||||
;;
|
||||
*)
|
||||
RPMVERSION=${VERSION}
|
||||
RELEASE=1
|
||||
SUFFIX=
|
||||
RELEASE=0base
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -60,5 +64,3 @@ done
|
||||
|
||||
file=Shorewall-perl${SUFFIX}/Shorewall/Config.pm
|
||||
[ -f $file ] && eval perl -p -i -e "'s/^(\s+)VERSION => .*/\$1VERSION => \"${VERSION}\",/'" $file
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user