From 0aa4a25b2555d93f247f0fa874a4347fefa33327 Mon Sep 17 00:00:00 2001 From: Piraty Date: Wed, 28 Sep 2022 00:17:45 +0200 Subject: [PATCH] toxcore: update to 0.2.18., add bootstrap service, adopt --- srcpkgs/toxcore/files/tox-bootstrapd/run | 4 ++++ srcpkgs/toxcore/template | 24 ++++++++++++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100755 srcpkgs/toxcore/files/tox-bootstrapd/run diff --git a/srcpkgs/toxcore/files/tox-bootstrapd/run b/srcpkgs/toxcore/files/tox-bootstrapd/run new file mode 100755 index 000000000000..e9acbdd6ee95 --- /dev/null +++ b/srcpkgs/toxcore/files/tox-bootstrapd/run @@ -0,0 +1,4 @@ +#!/bin/sh + +[ -r ./conf ] && . ./conf +exec chpst -u _tox_bootstrapd tox-bootstrapd --foreground ${OPTS:-"--config=/etc/tox-bootstrapd.conf"} diff --git a/srcpkgs/toxcore/template b/srcpkgs/toxcore/template index 863ef10268af..d43928dfa5ac 100644 --- a/srcpkgs/toxcore/template +++ b/srcpkgs/toxcore/template @@ -1,22 +1,34 @@ # Template file for 'toxcore' pkgname=toxcore -version=0.2.13 +version=0.2.18 revision=1 wrksrc="c-toxcore-${version}" build_style=cmake -configure_args="-DMUST_BUILD_TOXAV=ON -DBUILD_TOXAV=ON" +configure_args="-DMUST_BUILD_TOXAV=ON -DBUILD_TOXAV=ON -DDHT_BOOTSTRAP=OFF + -DBOOTSTRAP_DAEMON=ON" hostmakedepends="pkg-config" makedepends="libconfig-devel libsodium-devel libvpx-devel opus-devel" short_desc="Encrypted peer-to-peer instant messenger protocol library" -maintainer="Spencer Hill " +maintainer="Piraty " license="GPL-3.0-or-later" homepage="https://tox.chat" changelog="https://raw.githubusercontent.com/TokTok/c-toxcore/master/CHANGELOG.md" -distfiles="https://github.com/TokTok/c-toxcore/archive/v${version}.tar.gz" -checksum=67114fa57504c58b695f5dce8ef85124d555f2c3c353d0d2615e6d4845114ab8 +distfiles="https://github.com/TokTok/c-toxcore/releases/download/v${version}/c-toxcore-${version}.tar.gz" +checksum=f2940537998863593e28bc6a6b5f56f09675f6cd8a28326b7bc31b4836c08942 + +conf_files="/etc/tox-bootstrapd.conf" +system_accounts="_tox_bootstrapd" +make_dirs="/var/lib/tox-bootstrapd 0700 _tox_bootstrapd _tox_bootstrapd" +_tox_bootstrapd_homedir="/var/lib/tox-bootstrapd" +_tox_bootstrapd_desc="Account to run Tox's DHT bootstrap daemon" + +if [ "${XBPS_CHECK_PKGS}" ]; then + configure_args+=" -DAUTOTEST=ON" +fi post_install() { - vsconf other/bootstrap_daemon/tox-bootstrapd.conf + vconf other/bootstrap_daemon/tox-bootstrapd.conf + vsv tox-bootstrapd } toxcore-devel_package() {