mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02:00
Update makeshorewall to accomodate change in name to shorewall-perl
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5792 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
57a7bbff8e
commit
930c3384ab
@ -30,7 +30,7 @@
|
|||||||
# -h Build HTML documentation
|
# -h Build HTML documentation
|
||||||
# -x Build XML documentation
|
# -x Build XML documentation
|
||||||
# -s Sign with GPG
|
# -s Sign with GPG
|
||||||
# -p Build Shorewall-pl
|
# -p Build shorewall-perl
|
||||||
#
|
#
|
||||||
# If no options are given, all options are assumed.
|
# If no options are given, all options are assumed.
|
||||||
#
|
#
|
||||||
@ -294,9 +294,9 @@ case $VERSION in
|
|||||||
LITETARBALL=shorewall-lite-${VERSION%-*}.tgz
|
LITETARBALL=shorewall-lite-${VERSION%-*}.tgz
|
||||||
RPMNAME=shorewall-${VERSION%-*}-0${VERSION#*-}.noarch.rpm
|
RPMNAME=shorewall-${VERSION%-*}-0${VERSION#*-}.noarch.rpm
|
||||||
LITERPMNAME=shorewall-lite-${VERSION%-*}-0${VERSION#*-}.noarch.rpm
|
LITERPMNAME=shorewall-lite-${VERSION%-*}-0${VERSION#*-}.noarch.rpm
|
||||||
PERLRPMNAME=shorewall-pl-${VERSION%-*}-0${VERSION#*-}.noarch.rpm
|
PERLRPMNAME=shorewall-perl-${VERSION%-*}-0${VERSION#*-}.noarch.rpm
|
||||||
PERLTARBALL=shorewall-pl-${VERSION%-*}.tgz
|
PERLTARBALL=shorewall-perl-${VERSION%-*}.tgz
|
||||||
PERLDIR=shorewall-pl-${VERSION%-*}
|
PERLDIR=shorewall-perl-${VERSION%-*}
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
#
|
#
|
||||||
@ -308,9 +308,9 @@ case $VERSION in
|
|||||||
LITETARBALL=shorewall-lite-$VERSION.tgz
|
LITETARBALL=shorewall-lite-$VERSION.tgz
|
||||||
RPMNAME=shorewall-${VERSION}-1.noarch.rpm
|
RPMNAME=shorewall-${VERSION}-1.noarch.rpm
|
||||||
LITERPMNAME=shorewall-lite-${VERSION}-1.noarch.rpm
|
LITERPMNAME=shorewall-lite-${VERSION}-1.noarch.rpm
|
||||||
PERLRPMNAME=shorewall-pl-${VERSION}-1.noarch.rpm
|
PERLRPMNAME=shorewall-perl-${VERSION}-1.noarch.rpm
|
||||||
PERLDIR=shorewall-pl-$VERSION
|
PERLDIR=shorewall-perl-$VERSION
|
||||||
PERLTARBALL=shorewall-pl-$VERSION.tgz
|
PERLTARBALL=shorewall-perl-$VERSION.tgz
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -328,7 +328,7 @@ fi
|
|||||||
[ -n "$BUILDHTML" ] && report "HTML Directory is $HTMLDIR"
|
[ -n "$BUILDHTML" ] && report "HTML Directory is $HTMLDIR"
|
||||||
|
|
||||||
if [ -n "$BUILDPERL" ]; then
|
if [ -n "$BUILDPERL" ]; then
|
||||||
report "Shorewall-pl directory is $DIR/$PERLDIR"
|
report "shorewall-perl directory is $DIR/$PERLDIR"
|
||||||
report "Perl SVN tag is $PERLBRANCH"
|
report "Perl SVN tag is $PERLBRANCH"
|
||||||
report "Perl RPM is $PERLRPMNAME"
|
report "Perl RPM is $PERLRPMNAME"
|
||||||
|
|
||||||
@ -339,23 +339,24 @@ if [ -n "$BUILDPERL" ]; then
|
|||||||
|
|
||||||
progress_message "Creating $DIR/$PERLTARBALL..."
|
progress_message "Creating $DIR/$PERLTARBALL..."
|
||||||
do_or_die "tar -zcvf $PERLTARBALL $PERLDIR >> $LOGFILE 2>&1"
|
do_or_die "tar -zcvf $PERLTARBALL $PERLDIR >> $LOGFILE 2>&1"
|
||||||
do_or_die "tar -jcvf shorewall-pl-${VERSION%-*}.tar.bz2 $PERLDIR >> $LOGFILE 2>&1"
|
do_or_die "tar -jcvf shorewall-perl-${VERSION%-*}.tar.bz2 $PERLDIR >> $LOGFILE 2>&1"
|
||||||
|
|
||||||
if [ -n "$SIGN" ]; then
|
if [ -n "$SIGN" ]; then
|
||||||
for shoresuffix in tgz tar.bz2; do
|
for shoresuffix in tgz tar.bz2; do
|
||||||
shoreball=shorewall-pl-${VERSION%-*}.${shoresuffix}
|
shoreball=shorewall-perl-${VERSION%-*}.${shoresuffix}
|
||||||
report "GPG signing $DIR/$shoreball"
|
report "GPG signing $DIR/$shoreball"
|
||||||
rm -f ${shoreball}.asc
|
rm -f ${shoreball}.asc
|
||||||
do_or_die "$GPG $shoreball"
|
do_or_die "$GPG $shoreball"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
progress_message "Building $LITERPMNAME..."
|
progress_message "Building $PERLRPMNAME..."
|
||||||
|
|
||||||
rm -rf $RPMDIR/BUILD/shorewall-pl-${VERSION%-*}*
|
test -n "$SIGN" && SIGN="--sign"
|
||||||
do_or_die "cp shorewall-pl-${VERSION%-*}.tgz $RPMDIR/SOURCES/"
|
rm -rf $RPMDIR/BUILD/shorewall-perl-${VERSION%-*}*
|
||||||
do_or_die "cp $PERLDIR/shorewall-pl.spec $RPMDIR/SPECS/"
|
do_or_die "cp shorewall-perl-${VERSION%-*}.tgz $RPMDIR/SOURCES/"
|
||||||
do_or_die "rpmbuild -ba $SIGN $RPMDIR/SPECS/shorewall-pl.spec >> $LOGFILE 2>&1"
|
do_or_die "cp $PERLDIR/shorewall-perl.spec $RPMDIR/SPECS/"
|
||||||
|
do_or_die "rpmbuild -ba $SIGN $RPMDIR/SPECS/shorewall-perl.spec >> $LOGFILE 2>&1"
|
||||||
do_or_die cp -a $RPMDIR/RPMS/noarch/$PERLRPMNAME .
|
do_or_die cp -a $RPMDIR/RPMS/noarch/$PERLRPMNAME .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user