|
@@ -314,17 +314,7 @@ function install_tox_client {
|
314
|
314
|
return
|
315
|
315
|
fi
|
316
|
316
|
|
317
|
|
- ${PROJECT_NAME}-mesh-install -f tox_client
|
318
|
|
- if [ ! "$?" = "0" ]; then
|
319
|
|
- echo $'Could not install Tox client'
|
320
|
|
- exit 67248
|
321
|
|
- fi
|
322
|
|
-
|
323
|
|
- # initial setup of username
|
324
|
|
- #su -c "echo 'n
|
325
|
|
- #/nick $MY_USERNAME
|
326
|
|
- #/exit
|
327
|
|
- #' | $TOXIC_FILE -d" - $MY_USERNAME
|
|
317
|
+ mesh_tox_client
|
328
|
318
|
|
329
|
319
|
echo 'install_tox_client' >> $COMPLETION_FILE
|
330
|
320
|
}
|
|
@@ -471,6 +461,11 @@ EOF
|
471
|
461
|
}
|
472
|
462
|
|
473
|
463
|
function mesh_tox_avahi {
|
|
464
|
+ mesh_tox_avahi_prefix=''
|
|
465
|
+ if [ $rootdir ]; then
|
|
466
|
+ mesh_tox_avahi_prefix="chroot \"$rootdir\""
|
|
467
|
+ fi
|
|
468
|
+
|
474
|
469
|
if [ ! -d $rootdir/etc/avahi ]; then
|
475
|
470
|
echo $'tox_avahi: avahi is not installed'
|
476
|
471
|
exit 87359
|
|
@@ -491,7 +486,7 @@ function mesh_tox_avahi {
|
491
|
486
|
exit 768352
|
492
|
487
|
fi
|
493
|
488
|
|
494
|
|
- chroot "$rootdir" /bin/bash -x <<EOF
|
|
489
|
+ $mesh_tox_avahi_prefix /bin/bash -x <<EOF
|
495
|
490
|
cd ${INSTALL_DIR}/toxid
|
496
|
491
|
make
|
497
|
492
|
make install
|
|
@@ -508,6 +503,11 @@ EOF
|
508
|
503
|
}
|
509
|
504
|
|
510
|
505
|
function mesh_tox_client {
|
|
506
|
+ mesh_tox_client_prefix=''
|
|
507
|
+ if [ $rootdir ]; then
|
|
508
|
+ mesh_tox_client_prefix="chroot \"$rootdir\""
|
|
509
|
+ fi
|
|
510
|
+
|
511
|
511
|
TOXIC_FILE=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
512
|
512
|
|
513
|
513
|
# obtain commits from the main file
|
|
@@ -521,8 +521,8 @@ function mesh_tox_client {
|
521
|
521
|
TOXIC_REPO=$TOXIC_REPO_MAIN
|
522
|
522
|
fi
|
523
|
523
|
|
524
|
|
- chroot "$rootdir" apt-get -y install libncursesw5-dev libconfig-dev libqrencode-dev
|
525
|
|
- chroot "$rootdir" apt-get -y install libcurl4-openssl-dev libvpx-dev libopenal-dev
|
|
524
|
+ $mesh_tox_client_prefix apt-get -y install libncursesw5-dev libconfig-dev libqrencode-dev
|
|
525
|
+ $mesh_tox_client_prefix apt-get -y install libcurl4-openssl-dev libvpx-dev libopenal-dev
|
526
|
526
|
|
527
|
527
|
TEMP_SCRIPT_NAME=fbtmp728353.sh
|
528
|
528
|
TEMP_SCRIPT=/tmp/$TEMP_SCRIPT_NAME
|
|
@@ -543,7 +543,7 @@ function mesh_tox_client {
|
543
|
543
|
TOXIC_FILE=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
544
|
544
|
|
545
|
545
|
SECONDS=0
|
546
|
|
- chroot "$rootdir" /root/$TEMP_SCRIPT_NAME
|
|
546
|
+ $mesh_tox_client_prefix /root/$TEMP_SCRIPT_NAME
|
547
|
547
|
if [ ! "$?" = "0" ]; then
|
548
|
548
|
duration=$SECONDS
|
549
|
549
|
echo $"Toxic client compile failed at $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
|