Bug 203987 - net/syncthing-discosrv invalid arguments in rc-script
Summary: net/syncthing-discosrv invalid arguments in rc-script
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-23 16:35 UTC by wraul
Modified: 2015-11-20 15:25 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (swills)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wraul 2015-10-23 16:35:55 UTC
Two things have happened to Syncthing and discosrv.

1. discosrv have changed to use an in memory database by default.
This have deprecated the --db-dir command line argument and it should be removed from the rc-script.
It should also be possible to continue using a file backed database by specifying a argument like -db-dsn="file://path/to/db"

2. The protocol with which Syncthing and discosrv communicates have changed to use HTTPS.
This makes it necessary to specify a private key and a certificate using the --key and --cert arguments when launching discosrv.

These two changes results in discosrv not starting using the current rc-script.

The change in protocol also makes the version of Syncthing available in the ports tree incompatible with the version of discosrv.
Syncthing uses the new protocol from version 0.12 and forward.
Comment 1 Nucshuco 2015-11-03 08:22:10 UTC
Cant get syncthing-discosrv-0.0.0.2015092201 to start
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-11-20 15:24:12 UTC
A commit references this bug:

Author: swills
Date: Fri Nov 20 15:23:24 UTC 2015
New revision: 402089
URL: https://svnweb.freebsd.org/changeset/ports/402089

Log:
  net/syncthing-discosrv: update to latest, fix rc script

  PR:		203987
  Reported by:	wraul@dbox.se

Changes:
  head/net/syncthing-discosrv/Makefile
  head/net/syncthing-discosrv/distinfo
  head/net/syncthing-discosrv/files/syncthing-discosrv.in
  head/net/syncthing-discosrv/pkg-message
Comment 3 Steve Wills freebsd_committer freebsd_triage 2015-11-20 15:25:27 UTC
Fix committed, let me know if that doesn't fix it for you. Thanks!