Created attachment 201425 [details] initial patch to fix rc script The change in r489638 broke the rc script because IPFS_HOME isn't substituted and the wrong default path is used. Here's a patch which fixes that. I may do some more improvements to the script but this at least makes it functional.
Created attachment 201427 [details] updated patch with multiple fixes Ok, here's an updated version of the patch which: * Fixes the rc script when default ipfs_go_path is used * Fixes the logging by switching to uses the syslog logging in daemon * Switches the init to using the --init flag to the ipfs daemon command * Fixes the version string since the tarball provided by upstream doesn't match the tag for this release (has version string wrong) * Allows overriding IPFS_USER/GROUP/HOME at build time * Removes unnecessary BEFORE: LOGIN from rc script
Tested and confirmed working. LGTM.
A commit references this bug: Author: swills Date: Wed Jan 30 19:22:54 UTC 2019 New revision: 491652 URL: https://svnweb.freebsd.org/changeset/ports/491652 Log: sysutils/ipfs-go: fix rc script * Fix the rc script when default ipfs_go_path is used * Fix the logging by switching to uses the syslog logging in daemon * Switch the init to using the --init flag to the ipfs daemon command * Fixes the version string since the tarball provided by upstream doesn't match the tag for this release (has version string wrong) * Allow overriding IPFS_USER/GROUP/HOME at build time * Remove unnecessary BEFORE: LOGIN from rc script PR: 235222 Approved by: jhixson (maintainer) Changes: head/sysutils/ipfs-go/Makefile head/sysutils/ipfs-go/files/ipfs-go.in head/sysutils/ipfs-go/files/patch-version.go head/sysutils/ipfs-go/pkg-plist