20 |
SMAGESUFFIX="smage2" |
SMAGESUFFIX="smage2" |
21 |
MLIBDIR=/usr/lib/mage |
MLIBDIR=/usr/lib/mage |
22 |
SMAGEVERSION="$( < ${MLIBDIR}/version)" |
SMAGEVERSION="$( < ${MLIBDIR}/version)" |
23 |
|
SMAGE_LOG_CMD="tee -a /var/log/smage/${PKGNAME}.log" |
24 |
|
|
25 |
|
|
26 |
## only for tests -> normally in /etc/rc.d/init.d/functions |
## only for tests -> normally in /etc/rc.d/init.d/functions |
27 |
COLRED="\033[1;6m\033[31m" |
COLRED="\033[1;6m\033[31m" |
188 |
--tries 3 \ |
--tries 3 \ |
189 |
--continue \ |
--continue \ |
190 |
--progress bar \ |
--progress bar \ |
191 |
--directory-prefix="${my_SOURCEDIR}" \ |
--output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI_MIRROR})" \ |
192 |
"${my_SRC_URI_MIRROR}" |
"${my_SRC_URI_MIRROR}" |
193 |
if [[ $? = 0 ]] |
if [[ $? = 0 ]] |
194 |
then |
then |
212 |
--tries 3 \ |
--tries 3 \ |
213 |
--continue \ |
--continue \ |
214 |
--progress bar \ |
--progress bar \ |
215 |
--directory-prefix="${my_SOURCEDIR}" \ |
--output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI_MIRROR})" \ |
216 |
"${my_SRC_URI_MIRROR}" |
"${my_SRC_URI_MIRROR}" |
217 |
if [[ $? = 0 ]] |
if [[ $? = 0 ]] |
218 |
then |
then |
236 |
--tries 3 \ |
--tries 3 \ |
237 |
--continue \ |
--continue \ |
238 |
--progress bar \ |
--progress bar \ |
239 |
--directory-prefix="${my_SOURCEDIR}" \ |
--output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI_MIRROR})" \ |
240 |
"${my_SRC_URI_MIRROR}" |
"${my_SRC_URI_MIRROR}" |
241 |
if [[ $? = 0 ]] |
if [[ $? = 0 ]] |
242 |
then |
then |
260 |
--tries 3 \ |
--tries 3 \ |
261 |
--continue \ |
--continue \ |
262 |
--progress bar \ |
--progress bar \ |
263 |
--directory-prefix="${my_SOURCEDIR}" \ |
--output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI_MIRROR})" \ |
264 |
"${my_SRC_URI_MIRROR}" |
"${my_SRC_URI_MIRROR}" |
265 |
if [[ $? = 0 ]] |
if [[ $? = 0 ]] |
266 |
then |
then |
284 |
--tries 3 \ |
--tries 3 \ |
285 |
--continue \ |
--continue \ |
286 |
--progress bar \ |
--progress bar \ |
287 |
--directory-prefix="${my_SOURCEDIR}" \ |
--output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI_MIRROR})" \ |
288 |
"${my_SRC_URI_MIRROR}" |
"${my_SRC_URI_MIRROR}" |
289 |
if [[ $? = 0 ]] |
if [[ $? = 0 ]] |
290 |
then |
then |
303 |
--tries 3 \ |
--tries 3 \ |
304 |
--continue \ |
--continue \ |
305 |
--progress bar \ |
--progress bar \ |
306 |
--directory-prefix="${my_SOURCEDIR}" \ |
--output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI})" \ |
307 |
"${my_SRC_URI}" |
"${my_SRC_URI}" |
308 |
fi |
fi |
309 |
fi |
fi |
1215 |
mage rmstamp |
mage rmstamp |
1216 |
fi |
fi |
1217 |
|
|
1218 |
src_prepare || die "src_prepare failed" |
# setup build loggins |
1219 |
|
[[ ! -d /var/log/smage ]] && install -d /var/log/smage |
1220 |
|
echo -e "### Build started on $(date) ###\n" > /var/log/smage/${PKGNAME}.log |
1221 |
|
|
1222 |
|
src_prepare || die "src_prepare failed" | ${SMAGE_LOG_CMD} |
1223 |
step_by_step $_ |
step_by_step $_ |
1224 |
src_compile || die "src_compile failed" |
src_compile || die "src_compile failed" | ${SMAGE_LOG_CMD} |
1225 |
step_by_step $_ |
step_by_step $_ |
1226 |
src_install || die "src_install failed" |
src_install || die "src_install failed" | ${SMAGE_LOG_CMD} |
1227 |
step_by_step $_ |
step_by_step $_ |
1228 |
|
|
1229 |
|
|
1305 |
;; |
;; |
1306 |
esac |
esac |
1307 |
|
|
1308 |
|
if [[ ${SMAGE_BUILD_LOGGING} != false ]] |
1309 |
|
then |
1310 |
|
bzip2 -9f /var/log/smage/${PKGNAME}.log |
1311 |
|
else |
1312 |
|
[[ -f /var/log/smage/${PKGNAME}.log ]] && rm /var/log/smage/${PKGNAME}.log |
1313 |
|
fi |
1314 |
|
|
1315 |
# for sure |
# for sure |
1316 |
unset NOPKGBUILD |
unset NOPKGBUILD |
1317 |
unset NOSTRIP |
unset NOSTRIP |