Hi Leonid --

On 2/6/19 4:55 AM, Leonid Bobrov wrote:
Hi!

While I was contributing to Ravenports, John Marino from DragonFly BSD
explained me why I should be maintainer. So I am willing to take back
maintainership of ports I submitted to this mailing list.

I disabled bootstrap daemon because it doesn't work, it immediately
starts and exits with 0, no error messages displayed (yes, I did proper
configuration). Without this daemon libconfig is not needed.

How are you setting up your bootstrap daemon? It works for me here.
I'm using this very simple config, named tox-bootstrap.conf:
---
port = 33445
keys_file_path = "/home/brian/keys"
pid_file_path = "/home/brian/tox-bootstrapd.pid"
enable_ipv6 = false
enable_lan_discovery = true
enable_tcp_relay = true
tcp_relay_ports = [443, 3389, 33445]
enable_motd = true
motd = "tox-bootstrapd OpenBSD"

bootstrap_nodes = (
  {
    address = "node.tox.biribiri.org"
    port = 33445
    public_key = "F404ABAA1C99A9D37D61AB54898F56793E1DEF8BD46B1038B9D822E8460FAB67"
  }
)
---
Then when I run
$ tox-bootstrapd --config=/home/brian/tox-bootstrap.conf --foreground --log-backend=stdout

I get this output:
Running "tox-bootstrapd" version 1000002009.
No 'enable_ipv4_fallback' setting in configuration file.
Using default 'enable_ipv4_fallback': true
Successfully read:
'pid_file_path': /home/brian/tox-bootstrapd.pid
'keys_file_path': /home/brian/keys
'port': 33445
'enable_ipv6': false
'enable_ipv4_fallback': true
'enable_lan_discovery': true
'enable_tcp_relay': true
Read 3 TCP ports:
Port #0: 443
Port #1: 3389
Port #2: 33445
'enable_motd': true
'motd': tox-bootstrapd OpenBSD
General config read successfully
Set MOTD successfully.
Keys are managed successfully.
Initialized Tox TCP server successfully.
Current limit on the number of files this process can open (1024) is rather low for the proper functioning of the TCP server. Consider raising the limit to at least 4096 or the recommended 32768. Continuing using the current limit (1024). Successfully added bootstrap node #0: node.tox.biribiri.org:33445 F404ABAA1C99A9D37D61AB54898F56793E1DEF8BD46B1038B9D822E8460FAB67
List of bootstrap nodes read successfully.
Public Key: D286EE94197170165FF3C6E922FB8B03D521E2BA61C4C40E4EAF5DEDCB081249
Initialized LAN discovery successfully.
Connected to another bootstrap node successfully.

And it sits and waits for connections (haven't tried your tox client update yet). This tells me that maybe we need to ship some sort of default configuration file? And possibly directions on how to use the bootstrap server because it was not at all obvious to me and took a bit of poking around.

I'd much rather ship the bootstrap server than not.

~Brian

Full changelog can be found here:
https://github.com/TokTok/c-toxcore/blob/master/CHANGELOG.md

Also this port has net/msgpack, audio/portaudio-svn, devel/gtest,
audio/libsndfile and graphics/opencv as test dependencies (I had to
figure that out myself because upstream doesn't mention that), but
trying to actually run those tests makes me stuck in infinite loop, so
I won't touch NO_TEST=Yes line.

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/toxcore/Makefile,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 Makefile
--- Makefile    9 Aug 2018 23:25:58 -0000       1.3
+++ Makefile    6 Feb 2019 08:45:34 -0000
@@ -2,29 +2,30 @@
COMMENT = Tox client library -V = 0.2.3
-REVISION =             0
+V =                    0.2.9
  DISTNAME =            toxcore-$V
GH_ACCOUNT = TokTok
  GH_PROJECT =          c-toxcore
  GH_TAGNAME =          v$V
-SHARED_LIBS += toxcore 0.1 # 0.1
+SHARED_LIBS +=         toxcore 0.2 # 2.9
  CATEGORIES =          net telephony
HOMEPAGE = https://tox.chat/ +MAINTAINER = Leonid Bobrov <mazoc...@disroot.org>
+
  # GPLv3+
  PERMIT_PACKAGE_CDROM =        Yes
-
-WANTLIB = c config m opus pthread sodium vpx
+WANTLIB = c m opus pthread sodium vpx
MODULES = devel/cmake +CONFIGURE_ARGS = -DBOOTSTRAP_DAEMON=Off
+
  LIB_DEPENDS =         audio/opus \
-                       devel/libconfig \
                        multimedia/libvpx \
                        security/libsodium
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/toxcore/distinfo,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 distinfo
--- distinfo    26 Jun 2018 20:34:04 -0000      1.2
+++ distinfo    6 Feb 2019 08:45:34 -0000
@@ -1,2 +1,2 @@
-SHA256 (toxcore-0.2.3.tar.gz) = IsUvKGxG0/gC7baXi88qU/gwE2Pit0V4RhNCejO6OjQ=
-SIZE (toxcore-0.2.3.tar.gz) = 471336
+SHA256 (toxcore-0.2.9.tar.gz) = qMlicJRH+5sMuxqQ7BlFobLScrTTIjVsSKTjiCsSZ+c=
+SIZE (toxcore-0.2.9.tar.gz) = 510806
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/toxcore/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   29 Apr 2018 11:14:09 -0000      1.1.1.1
+++ pkg/PLIST   6 Feb 2019 08:45:34 -0000
@@ -1,5 +1,5 @@
  @comment $OpenBSD: PLIST,v 1.1.1.1 2018/04/29 11:14:09 landry Exp $
-@bin bin/tox-bootstrapd
+@bin bin/DHT_bootstrap
  include/tox/
  include/tox/tox.h
  include/tox/toxav.h


Reply via email to