|  | @@ -35,7 +35,7 @@ TOX_PORT=33445
 | 
	
		
			
			| 35 | 35 |  
 | 
	
		
			
			| 36 | 36 |  # upstream is https://github.com/TokTok/c-toxcore
 | 
	
		
			
			| 37 | 37 |  TOXCORE_REPO="https://github.com/bashrc/toxcore"
 | 
	
		
			
			| 38 |  | -TOXCORE_COMMIT='987ad5eac173442d6ad2d5cd80c2da763a815a9a'
 | 
	
		
			
			|  | 38 | +TOXCORE_COMMIT='7d399cedcfd20f0d91a8caf386ae3c63f4dcf285'
 | 
	
		
			
			| 39 | 39 |  
 | 
	
		
			
			| 40 | 40 |  TOXID_REPO="https://github.com/bashrc/toxid"
 | 
	
		
			
			| 41 | 41 |  TOX_BOOTSTRAP_ID_FILE=/var/lib/tox-bootstrapd/pubkey.txt
 | 
	
	
		
			
			|  | @@ -47,7 +47,7 @@ TOX_NODES=
 | 
	
		
			
			| 47 | 47 |  #  '144.76.60.215,2a01:4f8:191:64d6::1,33445,04119E835DF3E78BACF0F84235B300546AF8B936F035185E2A8E9E0A67C8924F,sonOfRa,DE'
 | 
	
		
			
			| 48 | 48 |  #)
 | 
	
		
			
			| 49 | 49 |  TOXIC_REPO="https://github.com/Tox/toxic"
 | 
	
		
			
			| 50 |  | -TOXIC_COMMIT='5cc83a7cb584886d90d7da15e8398215fed0d315'
 | 
	
		
			
			|  | 50 | +TOXIC_COMMIT='68ce17a57fd05599968a299e5dc516e183ebcf75'
 | 
	
		
			
			| 51 | 51 |  TOXIC_FILE=/usr/local/bin/toxic
 | 
	
		
			
			| 52 | 52 |  
 | 
	
		
			
			| 53 | 53 |  QTOX_REPO="https://github.com/bashrc/qTox"
 | 
	
	
		
			
			|  | @@ -184,8 +184,12 @@ function upgrade_tox {
 | 
	
		
			
			| 184 | 184 |      if [[ $(commit_has_changed "$INSTALL_DIR/toxcore" "toxcore commit" "$TOXCORE_COMMIT") == "1" ]]; then
 | 
	
		
			
			| 185 | 185 |          cd "$INSTALL_DIR/toxcore" || exit 53683563
 | 
	
		
			
			| 186 | 186 |          sed -i 's|ExecStart=.*|ExecStart=/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf|g' "$rootdir/etc/systemd/system/tox-bootstrapd.service"
 | 
	
		
			
			| 187 |  | -        autoreconf -i
 | 
	
		
			
			| 188 |  | -        ./configure --enable-daemon
 | 
	
		
			
			|  | 187 | +        ./autogen.sh
 | 
	
		
			
			|  | 188 | +        if [ ! -d "$INSTALL_DIR/toxcore/_build" ]; then
 | 
	
		
			
			|  | 189 | +            mkdir "$INSTALL_DIR/toxcore/_build"
 | 
	
		
			
			|  | 190 | +        fi
 | 
	
		
			
			|  | 191 | +        cd "$INSTALL_DIR/toxcore/_build" || return
 | 
	
		
			
			|  | 192 | +        cmake ..
 | 
	
		
			
			| 189 | 193 |          make
 | 
	
		
			
			| 190 | 194 |          make install
 | 
	
		
			
			| 191 | 195 |          systemctl daemon-reload
 | 
	
	
		
			
			|  | @@ -426,6 +430,7 @@ function install_tox_client {
 | 
	
		
			
			| 426 | 430 |  }
 | 
	
		
			
			| 427 | 431 |  
 | 
	
		
			
			| 428 | 432 |  function mesh_tox_node {
 | 
	
		
			
			|  | 433 | +    SECONDS=0
 | 
	
		
			
			| 429 | 434 |      # obtain commits from the main file
 | 
	
		
			
			| 430 | 435 |      TOXCORE_COMMIT_MAIN=$(grep "TOXCORE_COMMIT=" "/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox" | head -n 1 | awk -F "'" '{print $2}')
 | 
	
		
			
			| 431 | 436 |      if [ ${#TOXCORE_COMMIT_MAIN} -gt 10 ]; then
 | 
	
	
		
			
			|  | @@ -478,13 +483,13 @@ function mesh_tox_node {
 | 
	
		
			
			| 478 | 483 |          chroot "${rootdir}" apt-get -yq install automake checkinstall check git yasm
 | 
	
		
			
			| 479 | 484 |          chroot "${rootdir}" apt-get -yq install libsodium18 libsodium-dev libcap2-bin
 | 
	
		
			
			| 480 | 485 |          chroot "${rootdir}" apt-get -yq install libconfig9 libconfig-dev autoconf
 | 
	
		
			
			| 481 |  | -        chroot "${rootdir}" apt-get -yq install libopus-dev libvpx-dev
 | 
	
		
			
			|  | 486 | +        chroot "${rootdir}" apt-get -yq install libopus-dev libvpx-dev cmake
 | 
	
		
			
			| 482 | 487 |      else
 | 
	
		
			
			| 483 | 488 |          apt-get -yq install build-essential libtool autotools-dev
 | 
	
		
			
			| 484 | 489 |          apt-get -yq install automake checkinstall check git yasm
 | 
	
		
			
			| 485 | 490 |          apt-get -yq install libsodium18 libsodium-dev libcap2-bin
 | 
	
		
			
			| 486 | 491 |          apt-get -yq install libconfig9 libconfig-dev autoconf
 | 
	
		
			
			| 487 |  | -        apt-get -yq install libopus-dev libvpx-dev
 | 
	
		
			
			|  | 492 | +        apt-get -yq install libopus-dev libvpx-dev cmake
 | 
	
		
			
			| 488 | 493 |      fi
 | 
	
		
			
			| 489 | 494 |  
 | 
	
		
			
			| 490 | 495 |      if [ ! -d "${rootdir}${INSTALL_DIR}" ]; then
 | 
	
	
		
			
			|  | @@ -508,23 +513,27 @@ function mesh_tox_node {
 | 
	
		
			
			| 508 | 513 |      if [ "${rootdir}" ]; then
 | 
	
		
			
			| 509 | 514 |          chroot "${rootdir}" /bin/bash -x <<EOF
 | 
	
		
			
			| 510 | 515 |  cd ${INSTALL_DIR}/toxcore
 | 
	
		
			
			| 511 |  | -autoreconf -i
 | 
	
		
			
			| 512 |  | -./configure --enable-daemon
 | 
	
		
			
			|  | 516 | +./autogen.sh
 | 
	
		
			
			|  | 517 | +mkdir _build
 | 
	
		
			
			|  | 518 | +cd _build || exit 1
 | 
	
		
			
			|  | 519 | +cmake ..
 | 
	
		
			
			| 513 | 520 |  make
 | 
	
		
			
			| 514 | 521 |  make install
 | 
	
		
			
			| 515 | 522 |  EOF
 | 
	
		
			
			| 516 | 523 |      else
 | 
	
		
			
			| 517 | 524 |          /bin/bash -x <<EOF
 | 
	
		
			
			| 518 | 525 |  cd ${INSTALL_DIR}/toxcore
 | 
	
		
			
			| 519 |  | -autoreconf -i
 | 
	
		
			
			| 520 |  | -./configure --enable-daemon
 | 
	
		
			
			|  | 526 | +./autogen.sh
 | 
	
		
			
			|  | 527 | +mkdir _build
 | 
	
		
			
			|  | 528 | +cd _build || exit 1
 | 
	
		
			
			|  | 529 | +cmake ..
 | 
	
		
			
			| 521 | 530 |  make
 | 
	
		
			
			| 522 | 531 |  make install
 | 
	
		
			
			| 523 | 532 |  EOF
 | 
	
		
			
			| 524 | 533 |      fi
 | 
	
		
			
			| 525 | 534 |  
 | 
	
		
			
			| 526 | 535 |      # shellcheck disable=SC2086
 | 
	
		
			
			| 527 |  | -    cp $rootdir/usr/local/lib/libtoxcore* "$rootdir/usr/lib/"
 | 
	
		
			
			|  | 536 | +    cp -l $rootdir/usr/local/lib/libtoxcore* "$rootdir/usr/lib/"
 | 
	
		
			
			| 528 | 537 |      cp "${rootdir}${INSTALL_DIR}/toxcore/other/bootstrap_daemon/tox-bootstrapd.service" "$rootdir/etc/systemd/system/"
 | 
	
		
			
			| 529 | 538 |      sed -i 's|ExecStart=.*|ExecStart=/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf|g' "$rootdir/etc/systemd/system/tox-bootstrapd.service"
 | 
	
		
			
			| 530 | 539 |      if [ "${rootdir}" ]; then
 | 
	
	
		
			
			|  | @@ -533,7 +542,6 @@ EOF
 | 
	
		
			
			| 533 | 542 |          systemctl enable tox-bootstrapd.service
 | 
	
		
			
			| 534 | 543 |      fi
 | 
	
		
			
			| 535 | 544 |  
 | 
	
		
			
			| 536 |  | -    SECONDS=0
 | 
	
		
			
			| 537 | 545 |      if [ ! -f "$rootdir/usr/local/bin/tox-bootstrapd" ]; then
 | 
	
		
			
			| 538 | 546 |          duration=$SECONDS
 | 
	
		
			
			| 539 | 547 |          echo $"Toxcore compile failed at $((duration / 60)) minutes and $((duration % 60)) seconds elapsed."
 | 
	
	
		
			
			|  | @@ -690,11 +698,14 @@ function mesh_tox_client {
 | 
	
		
			
			| 690 | 698 |      if [ "${rootdir}" ]; then
 | 
	
		
			
			| 691 | 699 |          chroot "${rootdir}" apt-get -yq install libncursesw5-dev libconfig-dev libqrencode-dev
 | 
	
		
			
			| 692 | 700 |          chroot "${rootdir}" apt-get -yq install libcurl4-openssl-dev libvpx-dev libopenal-dev
 | 
	
		
			
			| 693 |  | -        chroot "${rootdir}" apt-get -yq install libqrencode-dev
 | 
	
		
			
			|  | 701 | +        chroot "${rootdir}" apt-get -yq install libqrencode-dev libpng-dev libncurses5-dev libalut-dev
 | 
	
		
			
			|  | 702 | +        chroot "${rootdir}" apt-get -yq install libnotify-dev python3-dev
 | 
	
		
			
			|  | 703 | +        toxic_disable_notify=0
 | 
	
		
			
			| 694 | 704 |      else
 | 
	
		
			
			| 695 | 705 |          apt-get -yq install libncursesw5-dev libconfig-dev libqrencode-dev
 | 
	
		
			
			| 696 | 706 |          apt-get -yq install libcurl4-openssl-dev libvpx-dev libopenal-dev
 | 
	
		
			
			| 697 |  | -        apt-get -yq install libqrencode-dev
 | 
	
		
			
			|  | 707 | +        apt-get -yq install libqrencode-dev libpng-dev libncurses5-dev libalut-dev python3-dev
 | 
	
		
			
			|  | 708 | +        toxic_disable_notify=1
 | 
	
		
			
			| 698 | 709 |      fi
 | 
	
		
			
			| 699 | 710 |  
 | 
	
		
			
			| 700 | 711 |      TEMP_SCRIPT_NAME=fbtmp728353.sh
 | 
	
	
		
			
			|  | @@ -711,8 +722,11 @@ function mesh_tox_client {
 | 
	
		
			
			| 711 | 722 |        echo 'fi';
 | 
	
		
			
			| 712 | 723 |        echo "cd $INSTALL_DIR/toxic";
 | 
	
		
			
			| 713 | 724 |        echo "git checkout $TOXIC_COMMIT -b $TOXIC_COMMIT";
 | 
	
		
			
			| 714 |  | -      echo 'make';
 | 
	
		
			
			| 715 |  | -      echo 'if [ ! "$?" = "0" ]; then';
 | 
	
		
			
			|  | 725 | +      echo "export DISABLE_DESKTOP_NOTIFY=$toxic_disable_notify";
 | 
	
		
			
			|  | 726 | +      echo "export DISABLE_AV=$toxic_disable_notify";
 | 
	
		
			
			|  | 727 | +      echo "export DISABLE_X11=$toxic_disable_notify";
 | 
	
		
			
			|  | 728 | +      echo "export DISABLE_SOUND_NOTIFY=$toxic_disable_notify";
 | 
	
		
			
			|  | 729 | +      echo 'if ! make; then';
 | 
	
		
			
			| 716 | 730 |        echo '    exit 1';
 | 
	
		
			
			| 717 | 731 |        echo 'fi';
 | 
	
		
			
			| 718 | 732 |        echo 'make install';
 |