Bug 275190 - www/owncast: Update to 0.1.2
Summary: www/owncast: Update to 0.1.2
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: freebsd-ports-bugs (Nobody)
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2023-11-19 02:58 UTC by kunda
Modified: 2024-03-24 15:30 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (de-freebsd)


Attachments
naive patch that seems to work (59.24 KB, patch)
2024-03-04 19:51 UTC, Dave Cottlehuber
dch: maintainer-approval? (de-freebsd)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 kunda 2023-12-13 15:51:51 UTC
Anyone willing to update ?
Comment 2 Özgür Konstantin Kazancci 2024-02-27 15:07:31 UTC
+1 for this.

owncast v0.1.2 has lots of stability and bug fixes.
Comment 3 Dave Cottlehuber freebsd_committer freebsd_triage 2024-03-04 19:51:04 UTC
Created attachment 248932 [details]
naive patch that seems to work

As I don't use owncast at all, I can't really comment if the patch is appropriate and
complete, but:

- it builds on amd64 14.0-RELEASE in poudriere
- with `chown -R owncast:owncast /var/db/owncast` and rc.conf
  owncast_enable=YES
  owncast_path=/var/db/owncast
- it seems to start up and the admin panel works on localhost:8080/admin

I expect the pkg-plist could be trimmed, and the r/w directories currently
under /usr/local/www/owncast should be cleaned up such that it's readonly
by default, and the writable directories should live in a more usual
place, IMO.

Perhaps impacted users can comment on the usefulness of the patch, and
if all of the files under /usrlocal/www/owncast are needed anymore?
I would expect go to embed many of these files in the binary.
Comment 4 Özgür Konstantin Kazancci 2024-03-13 07:47:33 UTC
Many thanks Dave, it works fine.
Comment 5 Özgür Konstantin Kazancci 2024-03-13 07:50:41 UTC
And by the way, /usr/local/www/owncast/ still needed as there are hls, static and webroot files for owncast itself.

However, /usr/local/www/owncast/data and /usr/local/www/owncast/backup might not be needed anymore (they're already empty), as they're now located in;

/var/db/owncast/ per your "owncast_path" in rc.conf

Regards.
Comment 6 Özgür Konstantin Kazancci 2024-03-13 08:06:46 UTC
For your information, on my test server (after your patch), in /usr/local/www/owncast, I removed; backup/ data/ hls/ webroot/ directories.

remaining only;
/usr/local/www/owncast/static

Then I rebooted the server; it seems owncast is happily running without those directories; ran a test stream, played remotely, logged into the admin dashboard, no issue at all so far.
Comment 7 Dave Cottlehuber freebsd_committer freebsd_triage 2024-03-13 09:03:27 UTC
great, so unless maintainer responds I will commit this after 2024-03-18 after
maintainer timeout.
Comment 8 Özgür Konstantin Kazancci 2024-03-19 12:19:16 UTC
Many thanks, Dave. So, any update on this so far?
Comment 9 Dave Cottlehuber freebsd_committer freebsd_triage 2024-03-24 15:29:24 UTC
maintainer timeout
Comment 10 commit-hook freebsd_committer freebsd_triage 2024-03-24 15:30:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bae25860a1e5a66881b150a688cb5aa43a7d1fb1

commit bae25860a1e5a66881b150a688cb5aa43a7d1fb1
Author:     Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2024-03-24 15:29:31 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2024-03-24 15:29:31 +0000

    www/owncast: update to 0.1.2

    PR:             275190
    Approved by:    maintainer timeout

 www/owncast/Makefile  |    5 +-
 www/owncast/distinfo  |   10 +-
 www/owncast/pkg-plist | 1000 +++++++++++++++++++++++++++++--------------------
 3 files changed, 607 insertions(+), 408 deletions(-)