mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-23 13:11:36 +01:00
Don't create backups during RPM build
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5157 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
0d4c4bc787
commit
af594c2520
@ -36,7 +36,7 @@ administrators to centralize the configuration of Shorewall-based firewalls.
|
|||||||
export PREFIX=$RPM_BUILD_ROOT ; \
|
export PREFIX=$RPM_BUILD_ROOT ; \
|
||||||
export OWNER=`id -n -u` ; \
|
export OWNER=`id -n -u` ; \
|
||||||
export GROUP=`id -n -g` ;\
|
export GROUP=`id -n -g` ;\
|
||||||
./install.sh
|
./install.sh -n
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
@ -33,7 +33,7 @@ a multi-function gateway/ router/server or on a standalone GNU/Linux system.
|
|||||||
export PREFIX=$RPM_BUILD_ROOT ; \
|
export PREFIX=$RPM_BUILD_ROOT ; \
|
||||||
export OWNER=`id -n -u` ; \
|
export OWNER=`id -n -u` ; \
|
||||||
export GROUP=`id -n -g` ;\
|
export GROUP=`id -n -g` ;\
|
||||||
./install.sh
|
./install.sh -n
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
@ -404,13 +404,19 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
|||||||
progress_message "Building $RPMNAME..."
|
progress_message "Building $RPMNAME..."
|
||||||
|
|
||||||
test -n "$SIGN" && SIGN="--sign"
|
test -n "$SIGN" && SIGN="--sign"
|
||||||
do_or_die "rpmbuild -tb $SIGN $TARBALL >> $LOGFILE 2>&1"
|
rm -rf $RPMDIR/BUILD/shorewall-${VERSION%-*}
|
||||||
|
do_or_die "cp shorewall-${VERSION%-*}.tgz $RPMDIR/SOURCES/"
|
||||||
|
do_or_die "cp $SHOREWALLDIR/shorewall.spec $RPMDIR/SPECS/"
|
||||||
|
do_or_die "rpmbuild -ba $SIGN $RPMDIR/SPECS/shorewall.spec >> $LOGFILE 2>&1"
|
||||||
do_or_die cp -a $RPMDIR/RPMS/noarch/$RPMNAME .
|
do_or_die cp -a $RPMDIR/RPMS/noarch/$RPMNAME .
|
||||||
|
|
||||||
if [ -n "$HASLITE" ]; then
|
if [ -n "$HASLITE" ]; then
|
||||||
progress_message "Building $LITERPMNAME..."
|
progress_message "Building $LITERPMNAME..."
|
||||||
|
|
||||||
do_or_die "rpmbuild -tb $SIGN $LITETARBALL >> $LOGFILE 2>&1"
|
rm -rf $RPMDIR/BUILD/shorewall-${VERSION%-*}
|
||||||
|
do_or_die "cp shorewall-lite-${VERSION%-*}.tgz $RPMDIR/SOURCES/"
|
||||||
|
do_or_die "cp $SHOREWALLLITEDIR/shorewall-lite.spec $RPMDIR/SPECS/"
|
||||||
|
do_or_die "rpmbuild -ba $SIGN $RPMDIR/SPECS/shorewall-lite.spec >> $LOGFILE 2>&1"
|
||||||
do_or_die cp -a $RPMDIR/RPMS/noarch/$LITERPMNAME .
|
do_or_die cp -a $RPMDIR/RPMS/noarch/$LITERPMNAME .
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user