toxcore: update to 0.2.18, add tox-bootstrapd service, adopt

This commit is contained in:
Piraty 2022-09-28 00:17:45 +02:00
parent 2e94d08da7
commit f42ca4f764
2 changed files with 22 additions and 6 deletions

View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
exec chpst -u _tox_bootstrapd tox-bootstrapd --foreground ${OPTS:-"--config=/etc/tox-bootstrapd.conf"}

View file

@ -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 <spencernh77@gmail.com>"
maintainer="Piraty <piraty1@inbox.ru>"
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() {