EXTERNAL_PATCHES=
EXTRA_VERSION=
STAGEDIR=
+TMPDIR=${TMPDIR:-"/var/tmp"}
# from target file
KERNEL=
DIRNAME="lustre-$TAG-$TIMESTAMP"
if [ "$LUSTRE" ] ; then
untar "$LUSTRE"
- [ -d lustre ] || ln -sf lustre* lustre
+ [ -d lustre ] || ln -sf lustre-[0-9].[0-9]* lustre
else
if [ "$USE_DATESTAMP" ]; then
DATESTAMP="-D '$DATE'"
done
$RPMBUILD $targets -bb lustre-kernel-2.4.spec \
+ --define "_tmppath $TMPDIR" \
--define "_topdir $TOPDIR" || \
fatal 1 "Error building rpms for $BUILD_ARCHS."
if (( $DO_SRC )) ; then
$RPMBUILD -bs lustre-kernel-2.4.spec \
+ --define "_tmppath $TMPDIR" \
--define "_topdir $TOPDIR" || \
fatal 1 "Error building .src.rpm."
fi
./configure "--with-linux=${LINUX}" ${CONFIGURE_FLAGS}
$RPMBUILD $targets -bb build/lustre.spec \
+ --define "_tmppath $TMPDIR" \
--define "_topdir $TOPDIR" || \
fatal 1 "Error building rpms for $BUILD_ARCHS."