Bug 294230 - net/teddycloud: update to 0.6.8
Summary: net/teddycloud: update to 0.6.8
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yusuf Yaman
URL: https://github.com/toniebox-reverse-e...
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-03 11:35 UTC by Michael Pape
Modified: 2026-04-11 16:13 UTC (History)
2 users (show)

See Also:


Attachments
patch to update from 0.6.7 to 0.6.8 (6.96 KB, patch)
2026-04-03 11:35 UTC, Michael Pape
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Pape 2026-04-03 11:35:10 UTC
Created attachment 269341 [details]
patch to update from 0.6.7 to 0.6.8

Upstream updated to 0.6.8
Comment 1 Yusuf Yaman freebsd_committer freebsd_triage 2026-04-05 18:37:10 UTC
Hi,

first run of $(teddycloud) with an user gets failed with error of ${ETCDIR} not exist and/or not writeable/readable.

I have tried to workaround this trying to edit the rc.d file but it's enough for today, gotta see it later.

I think we can create some extra rc command like "init", so users would run $(service teddycloudd init) and it would do first run of $(teddycloud) and creates the required config file in the ETCDIR. for this it also needs to own the ETCDIR, so we may need to create USERS/GROUPS for this port. maybe www/www or specific user/group for this port = teddycloud.

An example for reference:
$ less /usr/ports/mail/hydroxide/files/hydroxide.in
hydroxide_init() {
        read -p "Enter mail account id: " id
        ${su_cmd} -m ${__user} -c "%%PREFIX%%/bin/hydroxide auth $id"
}
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2026-04-07 19:19:12 UTC
(In reply to Yusuf Yaman from comment #1)
Do you say about run teddycloudd daemon with non-root user?

(In reply to Michael Pape from comment #0)
Can you test replace patches:
patch-include_json__helper.h
patch-src_contentJson.c
patch-src_handler__api.c
patch-src_home__assistant.c
patch-src_main.c
patch-src_tonie__audio__playlist.c
patch-src_toniesJson.c
with one line in Makefile:
CFLAGS+=        -I${LOCALBASE}/include/cjson

Build without errors for me.
Comment 3 Yusuf Yaman freebsd_committer freebsd_triage 2026-04-08 18:12:41 UTC
(In reply to Vladimir Druzenko from comment #2)
> Do you say about run teddycloudd daemon with non-root user?
Not actually, currently it runs fine but needs to be run as root. Maybe what i said in comment #1 may be ignored.

> Can you test replace patches:
> ...
> Build without errors for me.
It builds for me too, but I had moved out more patches than you said.

patch-include_json__helper.h
patch-src_contentJson.c
patch-src_handler.c
patch-src_handler__api.c
patch-src_handler__cloud.c
patch-src_home__assistant.c
patch-src_main.c
patch-src_tonie__audio__playlist.c
patch-src_toniesJson.c

Without these moved out of files/, it builds for me with added:

+CFLAGS+=       -I${LOCALBASE}/include/cjson

Thanks.
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2026-04-08 18:20:08 UTC
(In reply to Yusuf Yaman from comment #3)
1. So the idea is to run it as a non-root user?
2. I just didn't add new patches from this PR.
Comment 5 Yusuf Yaman freebsd_committer freebsd_triage 2026-04-11 12:43:30 UTC
(In reply to Vladimir Druzenko from comment #4)
> 1. So the idea is to run it as a non-root user?
I did run teddycloud with non-root user, got the error obviously. If i had ran it as root, no problems would have arise. So I think we can ignore it?

> 2. I just didn't add new patches from this PR.
Oh, I see, sorry.
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2026-04-11 16:13:03 UTC
(In reply to Yusuf Yaman from comment #5)
1. It's ok if you change owner of the ETCDIR to user.

@sample(%%USER%%,%%GROUP%%,) %%EXAMPLESDIR%%/tonieboxes.custom.json %%ETCDIR%%/tonieboxes.custom.json
@sample(%%USER%%,%%GROUP%%,) %%EXAMPLESDIR%%/tonieboxes.json %%ETCDIR%%/tonieboxes.json
@sample(%%USER%%,%%GROUP%%,) %%EXAMPLESDIR%%/tonies.custom.json %%ETCDIR%%/tonies.custom.json
@sample(%%USER%%,%%GROUP%%,) %%EXAMPLESDIR%%/tonies.json %%ETCDIR%%/tonies.json

@dir(%%USER%%,%%GROUP%%,) %%ETCDIR%%