Created attachment 258627 [details] diff file of ports for hostd_2.0.4-renterd_2.0.1-walletd_2.0.0 new ports of Sia network client software hostd: a daemon providing decentralized storage developed by the Sia foundation renterd: a daemon allowing to store data on the Sia network walletd: a wallet to hold Sia coins https://sia.tech/software/hostd
*** Bug 278487 has been marked as a duplicate of this bug. ***
bugzilla thinks the attachment is an mbox file. It's not. It's the output from git format-patch. It's a diff file.
Created attachment 258761 [details] update to previous patch according to feedback
There's a plist failure in net-p2p/walletd: ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist Error: Orphaned: @dir /var/lib ===> Checking for items in pkg-plist which are not in STAGEDIR ===> Error: Plist issues found. What is the purpose of the /var/lib directory? We usually only have /var/lib for Linux software, it's not commonly used by FreeBSD applications. Read hier(7) and find an appropriate directory.
(In reply to Robert Clausecker from comment #4) the program puts some data in /var/lib/walletd (actually hostd and renterd too, in their respective directory) It's consensus data (i,e, blockchain), some databases that it downloads and uses during operation, also the sia wallet data. I put it there as that is what they do in linux and to me seemed appropriate, but I guess it can be placed elsewhere on freeBSD and configured accordingly. What would be more appropriate ?
(In reply to bruno from comment #5) For databases that need to be preserved, use a subdirectory of /var/db. For databases that can be removed without harm, use /var/cache.
(In reply to Robert Clausecker from comment #6) ok will switch to /var/db
(In reply to Robert Clausecker from comment #4) also not sure what it means, that it is orphaned. The dir created is /var/lib/${PORTNAME} I followed advice from porter handbook 8.2.1 Cleaning up empty directories and 8.2.2 Creating empty directories anything else needs to be done ?
Created attachment 258777 [details] update to previous patch according to feedback, var/db locations updated the db files locations to /var/db/${PORTNAME} checked no orphan dir given by make check-plist
(In reply to bruno from comment #8) Orphaned means that you created a file or directory that is not in the pack list. Missing means that there is a file or directory in the pack list that does not exist. I've added your changes and the ports are fine now. For one port, I moved pkg-message to files/pkg-message.in so %%PREFIX%% is substituted. Will commit with my next batch. Note that the ports do not build on 32 bit platforms (armv7 and i386). Shall I mark them as not available for these architectures?
(In reply to Robert Clausecker from comment #10) cool thanks ! Effectively I do not think 32bit platforms are supported at all, the linux builds are made for amd64 and aarch64 only, so better mark 32bit as unavailable
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=138e932c241c2a0ac6bba0a3e5dc9e210bd962ca commit 138e932c241c2a0ac6bba0a3e5dc9e210bd962ca Author: bruno <bruno@tinkerbox.org> AuthorDate: 2025-03-18 14:00:57 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2025-03-26 01:34:45 +0000 net-p2p/{renterd,hostd,walletd}: new ports renterd is an advanced Sia renter engineered by the Sia Foundation. Designed to cater to both casual users seeking straightforward data storage and developers requiring a robust API for building apps on Sia. hostd is an advanced Sia host solution created by the Sia Foundation, designed to enhance the experience for storage providers within the Sia network. Tailored for both individual and large-scale storage providers, hostd boasts a user-friendly interface and a robust API, empowering providers to efficiently manage their storage resources and revenue. hostd incorporates an embedded web-UI, simplifying deployment and enabling remote management capabilities, ensuring a smooth user experience across a diverse range of devices. walletd is the flagship Sia wallet, suitable for miners, exchanges, and everyday hodlers. Its client-server architecture gives you the flexibility to access your funds from anywhere, on any device, without compromising the security of your private keys. The server is agnostic, so you can derive those keys from a 12-word seed phrase, a legacy (siad) 28-word phrase, a Ledger hardware wallet, or another preferred method. Like other Foundation node software, walletd ships with a slick embedded UI, but developers can easily build headless integrations leveraging its powerful JSON API. Whether you're using a single address or millions, walletd scales to your needs. WWW: https://sia.tech/software/hostd WWW: https://sia.tech/software/renterd WWW: https://sia.tech/software/walletd PR: 285367 GIDs | 6 +- UIDs | 6 +- net-p2p/Makefile | 3 + net-p2p/hostd/Makefile (new) | 89 ++++++ net-p2p/hostd/distinfo (new) | 87 +++++ net-p2p/hostd/files/hostd.conf.in (new) | 2 + net-p2p/hostd/files/hostd.in (new) | 35 ++ net-p2p/hostd/files/hostd.yml.in (new) | 30 ++ net-p2p/hostd/files/patch-build_meta.go (new) | 15 + net-p2p/hostd/files/patch-vendor_modules.txt (new) | 290 +++++++++++++++++ net-p2p/hostd/pkg-descr (new) | 8 + net-p2p/hostd/pkg-message (new) | 9 + net-p2p/renterd/Makefile (new) | 96 ++++++ net-p2p/renterd/distinfo (new) | 101 ++++++ net-p2p/renterd/files/patch-build_meta.go (new) | 22 ++ .../renterd/files/patch-vendor_modules.txt (new) | 351 +++++++++++++++++++++ net-p2p/renterd/files/renterd.conf.in (new) | 2 + net-p2p/renterd/files/renterd.in (new) | 35 ++ net-p2p/renterd/files/renterd.yml.in (new) | 54 ++++ net-p2p/renterd/pkg-descr (new) | 4 + net-p2p/renterd/pkg-message (new) | 9 + net-p2p/walletd/Makefile (new) | 79 +++++ net-p2p/walletd/distinfo (new) | 65 ++++ net-p2p/walletd/files/patch-build_meta.go (new) | 15 + .../walletd/files/patch-vendor_modules.txt (new) | 204 ++++++++++++ net-p2p/walletd/files/pkg-message.in (new) | 10 + net-p2p/walletd/files/walletd-syslog.conf.in (new) | 2 + net-p2p/walletd/files/walletd.conf.in (new) | 1 + net-p2p/walletd/files/walletd.in (new) | 36 +++ net-p2p/walletd/files/walletd.yml.in (new) | 30 ++ net-p2p/walletd/pkg-descr (new) | 10 + 31 files changed, 1700 insertions(+), 6 deletions(-)
Thank you for your submission.