mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-26 08:08:59 +01:00
Do all signing at upload time
This commit is contained in:
parent
8d8920e7ad
commit
50420f0841
@ -33,7 +33,6 @@
|
||||
# -6 Build 6
|
||||
# -h Build HTML documentation
|
||||
# -x Build XML documentation
|
||||
# -S Sign with GPG
|
||||
#
|
||||
# If no options are given, all options are assumed.
|
||||
#
|
||||
@ -97,7 +96,6 @@ BUILDRPM=
|
||||
BUILDXML=
|
||||
BUILDHTML=
|
||||
SAMPLESTAG=
|
||||
SIGN=
|
||||
MANPAGETAG=
|
||||
MANPAGE6TAG=
|
||||
LITEMANPAGETAG=
|
||||
@ -192,7 +190,7 @@ do_buildanrpm() {
|
||||
do_or_die "tar -zcf $RPMDIR/SOURCES/${2}-${BASEVERSION}.tgz ${2}-${BASEVERSION}"
|
||||
cd $DIR
|
||||
do_or_die "cp ${3}/${2}.spec $RPMDIR/SPECS/"
|
||||
do_or_die "do_rpmbuild -ba $SIGN $RPMDIR/SPECS/${2}.spec"
|
||||
do_or_die "do_rpmbuild -ba $RPMDIR/SPECS/${2}.spec"
|
||||
do_or_die cp -a $RPMDIR/RPMS/noarch/${1} .
|
||||
}
|
||||
|
||||
@ -208,16 +206,6 @@ do_export()
|
||||
[ $1 = $2 ] || do_or_die "mv -f $1 $2 >> $LOGFILE 2>&1"
|
||||
}
|
||||
|
||||
do_signit()
|
||||
{
|
||||
for shoresuffix in tgz tar.bz2; do
|
||||
shoreball=${1}-${VERSION}.${shoresuffix}
|
||||
report "GPG signing $DIR/$shoreball"
|
||||
rm -f ${shoreball}.asc
|
||||
do_or_die "$GPG $shoreball"
|
||||
done
|
||||
}
|
||||
|
||||
do_manpages()
|
||||
{
|
||||
do_export ${1} manpages
|
||||
@ -277,7 +265,6 @@ case $1 in
|
||||
BUILD6LITE=Yes
|
||||
|
||||
done=Yes
|
||||
SIGN=
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -327,10 +314,6 @@ while [ -z "$done" ]; do
|
||||
BUILD6LITE=Yes
|
||||
option=${option#L}
|
||||
;;
|
||||
S*)
|
||||
SIGN=Yes
|
||||
option=${option#S}
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
@ -555,7 +538,6 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
||||
rm -f $SHOREWALLDIR/*.diff
|
||||
do_or_die "tar -zcvf $TARBALL $SHOREWALLDIR >> $LOGFILE 2>&1"
|
||||
do_or_die "tar -jcvf shorewall-${VERSION}.tar.bz2 $SHOREWALLDIR >> $LOGFILE 2>&1"
|
||||
[ -n "$SIGN" ] && do_signit shorewall
|
||||
fi
|
||||
|
||||
if [ -n "$BUILD6" ]; then
|
||||
@ -563,7 +545,6 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
||||
rm -f $SHOREWALL6DIR/*.diff
|
||||
do_or_die "tar -zcvf $TARBALL6 $SHOREWALL6DIR >> $LOGFILE 2>&1"
|
||||
do_or_die "tar -jcvf shorewall6-${VERSION}.tar.bz2 $SHOREWALL6DIR >> $LOGFILE 2>&1"
|
||||
[ -n "$SIGN" ] && do_signit shorewall6
|
||||
fi
|
||||
|
||||
if [ -n "$BUILDLITE" ]; then
|
||||
@ -571,7 +552,6 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
||||
rm -f $SHOREWALLLITEDIR/*.diff
|
||||
do_or_die "tar -zcvf $LITETARBALL $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
||||
do_or_die "tar -jcvf shorewall-lite-${VERSION}.tar.bz2 $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
||||
[ -n "$SIGN" ] && do_signit shorewall-lite
|
||||
fi
|
||||
|
||||
if [ -n "$BUILD6LITE" ]; then
|
||||
@ -579,13 +559,10 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
||||
rm -f $LITE6DIR/*.diff
|
||||
do_or_die "tar -zcvf $LITE6TARBALL $LITE6DIR >> $LOGFILE 2>&1"
|
||||
do_or_die "tar -jcvf shorewall6-lite-${VERSION}.tar.bz2 $LITE6DIR >> $LOGFILE 2>&1"
|
||||
[ -n "$SIGN" ] && do_signit shorewall6-lite
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$BUILDRPM" ]; then
|
||||
test -n "$SIGN" && SIGN="--sign"
|
||||
|
||||
[ -n "$BUILDCOMMON" ] && do_buildanrpm $RPMNAME shorewall $SHOREWALLDIR
|
||||
[ -n "$BUILD6" ] && do_buildanrpm $RPM6NAME shorewall6 $SHOREWALL6DIR
|
||||
[ -n "$BUILDLITE" ] && do_buildanrpm $LITERPMNAME shorewall-lite $SHOREWALLLITEDIR
|
||||
@ -632,7 +609,6 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
|
||||
progress_message "Creating $DIR/shorewall-docs-xml-$VERSION tarballs"
|
||||
tar -zcvf shorewall-docs-xml-$VERSION.tgz shorewall-docs-xml-$VERSION >> $LOGFILE 2>&1
|
||||
tar -jcvf shorewall-docs-xml-$VERSION.tar.bz2 shorewall-docs-xml-$VERSION >> $LOGFILE 2>&1 || true
|
||||
[ -n "$SIGN" ] && do_signit shorewall-docs-xml
|
||||
fi
|
||||
|
||||
if [ -n "$BUILDHTML" ]; then
|
||||
@ -758,7 +734,6 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
|
||||
|
||||
do_or_die "tar -zcvf shorewall-docs-html-$VERSION.tgz shorewall-docs-html-$VERSION >> $LOGFILE 2>&1"
|
||||
do_or_die "tar -jcvf shorewall-docs-html-$VERSION.tar.bz2 shorewall-docs-html-$VERSION >> $LOGFILE 2>&1"
|
||||
[ -n "$SIGN" ] && do_signit shorewall-docs-html
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -172,6 +172,10 @@ fi
|
||||
files="errata known_problems.txt releasenotes.txt patch-*-$1 ${1}.*"
|
||||
base=
|
||||
|
||||
for f in *-${1}.tar.bz2 *-${1}.tgz; do
|
||||
/usr/bin/gpg -ab --batch --comment 'To verify this, you can download our public key at https://lists.shorewall.net/shorewall.gpg.key' $f
|
||||
done
|
||||
|
||||
[ -n "$UPLOAD6" ] && base="shorewall6-${1}.tar.*" && files="$files shorewall6-${1}.* $rpm6"
|
||||
[ -n "$UPLOADCOMMON" ] && base="$base shorewall-${1}.tar.*" && files="$files shorewall-${1}.* $rpm"
|
||||
[ -n "$UPLOADLITE" ] && base="$base shorewall-lite-${1}.tar.*" && files="$files shorewall-lite-${1}.* $literpm"
|
||||
|
Loading…
Reference in New Issue
Block a user