mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1130] [Question] - FreeBSD Port #796
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#796
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rmszc81 on GitHub (Jun 7, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1130
Hello,
Straight to the point: are there any plans to port ntfy.sh to FreeBSD?
It would be great to have this tool available there. I will try to build and run it from the sources to see what happens.
Best regards,
Ross
@rmszc81 commented on GitHub (Jun 12, 2024):
So,
here's what I did:
I started by reading this:
https://docs.ntfy.sh/develop/Then I cloned the sources into the following repository:
https://github.com/rmszc81/ntfy/tree/freebsd14I made changes in the following files:
Makefile,.goreleaser.ymlTo be able to build in FreeBSD 14.
I installed the following packages in the OS:
pkg install git go goreleaser node20 npm-node20 py311-mkdocs py311-pip py311-pylint-venvThen I ran:
make cli-freebsd-amd64, apparently it builds the application correctly, and the binary is generated atntfy_freebsd_amd64_freebsd_amd64_v1When I run
./dist/ntfy_freebsd_amd64_freebsd_amd64_v1/ntfy, I get the following output:So it seems that the binary is working as intended.
make install-freebsd-amd64shows the following error:I know the error above is related to the target path being different. I just don't know why in FreeBSD
_v1is being concatenated to the end of the path when the binary is generated.make webexecutes correctly and the UI works fine.make docsstops at this point:make docs-depsruns without any errors.make docs-buildreturns the following:I didn't have enough time to go deeper into this but still, I'd like to have some insights from you guys on how I could solve it.
Best!
@rmszc81
@positiveEV commented on GitHub (Jun 14, 2024):
Hi,
Thank you for doing most of the work
No need to install
py311-mkdocsas it will be installed by pip in the venvLook at
install-linux-amd64_v1is also append to the directory name so I guess that it is an expected behavior when building for amd64.You set
pip-3.11as the pip command but it is only available at/usr/local/bin/pip-3.11and not in the venv. So when runningdocs-depit installed the requirements on the system, not in the venv.pipcommands available in the venv arepip,pip3andpip3.11@rmszc81 commented on GitHub (Jun 26, 2024):
ok, I'll try to come back to this in this week. is there any other tips for me to continue from here beyond the ones that you already shaerd?
best!
@rmszc81
@positiveEV commented on GitHub (Jul 1, 2024):
No, nothing else. I did not test the binary yet
@rmszc81 commented on GitHub (Jul 2, 2024):
Looking forward for having ntfy.sh available for FreeBSD @positiveEV!
Thank you for the great work!
@lindely commented on GitHub (Aug 28, 2024):
I was just looking into FreeBSD support when I found this. I did the same as rmszc81 and now have ntfy running on my server. I tested the android app against it and it all seems to work just fine. My diffs:
Then I create a
server.ymland started the daemon with/dist/ntfy_freebsd_amd64_freebsd_amd64_v1/ntfy serve --config /path/to/ntfy.yml. So if anyone else seeks out to try this, it seems (I only tested briefly) to work fine with these minor changes.This is on FreeBSD 14.1, by the way.
@escix commented on GitHub (Jan 1, 2025):
ntfy works flawlessly in FreeBSD with gihub clone.
Once compiled you can start the server with the standard command and config file without any issues.
Messages coming through in android all good.
I use Caddy and the only thing I couldn't get it work is the web app. Only a blank page.
Will try again as time permits.
@hastyeagle commented on GitHub (Jan 2, 2025):
Hey @escix. Did you just run
make build? I'm not seeing anything related to FreeBSD in the Makefile to run a make against, so curious the steps you took to get it built, as well as what packages might have been needed as well.@escix commented on GitHub (Jan 2, 2025):
^ this is what I got in the command history. I will do a detailed installation guide time permits.
I recently also did a make web-build and it compiled without any issues.
@hastyeagle commented on GitHub (Jan 2, 2025):
Thanks @escix -- got it working!
@escix commented on GitHub (Jan 3, 2025):
Updated to include the web-app too.
@msviba commented on GitHub (Aug 13, 2025):
Hi, I'm preparing a port.
Until it will be approved you can use this file https://github.com/msviba/freebsd-ports/blob/main/ports-www-ntfy-server.diff
@binwiederhier commented on GitHub (Aug 13, 2025):
If I can build it in GitHub CI I'd be happy to make it an official thing. Though you'd have to do all the PRs
@msviba commented on GitHub (Aug 17, 2025):
I've submit a new port and it was rejected, because it already exists
https://www.freshports.org/sysutils/go-ntfy/
IMHO is possible to close this issue.
solution is:
@binwiederhier commented on GitHub (Jan 20, 2026):
I added the port to the install page (https://docs.ntfy.sh/install/) and emailed the maintainer if there is anything I can help him with. Closing this now