diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index f35d4cac..1f7adfa1 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -35,7 +35,7 @@ TOX_PORT=33445 # upstream is https://github.com/TokTok/c-toxcore TOXCORE_REPO="https://github.com/bashrc/toxcore" -TOXCORE_COMMIT='987ad5eac173442d6ad2d5cd80c2da763a815a9a' +TOXCORE_COMMIT='7d399cedcfd20f0d91a8caf386ae3c63f4dcf285' TOXID_REPO="https://github.com/bashrc/toxid" TOX_BOOTSTRAP_ID_FILE=/var/lib/tox-bootstrapd/pubkey.txt @@ -47,7 +47,7 @@ TOX_NODES= # '144.76.60.215,2a01:4f8:191:64d6::1,33445,04119E835DF3E78BACF0F84235B300546AF8B936F035185E2A8E9E0A67C8924F,sonOfRa,DE' #) TOXIC_REPO="https://github.com/Tox/toxic" -TOXIC_COMMIT='5cc83a7cb584886d90d7da15e8398215fed0d315' +TOXIC_COMMIT='68ce17a57fd05599968a299e5dc516e183ebcf75' TOXIC_FILE=/usr/local/bin/toxic QTOX_REPO="https://github.com/bashrc/qTox" @@ -184,8 +184,12 @@ function upgrade_tox { if [[ $(commit_has_changed "$INSTALL_DIR/toxcore" "toxcore commit" "$TOXCORE_COMMIT") == "1" ]]; then cd "$INSTALL_DIR/toxcore" || exit 53683563 sed -i 's|ExecStart=.*|ExecStart=/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf|g' "$rootdir/etc/systemd/system/tox-bootstrapd.service" - autoreconf -i - ./configure --enable-daemon + ./autogen.sh + if [ ! -d "$INSTALL_DIR/toxcore/_build" ]; then + mkdir "$INSTALL_DIR/toxcore/_build" + fi + cd "$INSTALL_DIR/toxcore/_build" || return + cmake .. make make install systemctl daemon-reload @@ -426,6 +430,7 @@ function install_tox_client { } function mesh_tox_node { + SECONDS=0 # obtain commits from the main file TOXCORE_COMMIT_MAIN=$(grep "TOXCORE_COMMIT=" "/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox" | head -n 1 | awk -F "'" '{print $2}') if [ ${#TOXCORE_COMMIT_MAIN} -gt 10 ]; then @@ -478,13 +483,13 @@ function mesh_tox_node { chroot "${rootdir}" apt-get -yq install automake checkinstall check git yasm chroot "${rootdir}" apt-get -yq install libsodium18 libsodium-dev libcap2-bin chroot "${rootdir}" apt-get -yq install libconfig9 libconfig-dev autoconf - chroot "${rootdir}" apt-get -yq install libopus-dev libvpx-dev + chroot "${rootdir}" apt-get -yq install libopus-dev libvpx-dev cmake else apt-get -yq install build-essential libtool autotools-dev apt-get -yq install automake checkinstall check git yasm apt-get -yq install libsodium18 libsodium-dev libcap2-bin apt-get -yq install libconfig9 libconfig-dev autoconf - apt-get -yq install libopus-dev libvpx-dev + apt-get -yq install libopus-dev libvpx-dev cmake fi if [ ! -d "${rootdir}${INSTALL_DIR}" ]; then @@ -508,23 +513,27 @@ function mesh_tox_node { if [ "${rootdir}" ]; then chroot "${rootdir}" /bin/bash -x <