mastodonGNU Social-compatible microblogging server
4.6.4net-imΣ=2 4.6.4Version of this port present on the latest quarterly branch.upstream: v4.7.6A newer version was found upstream by portscout, first on 2026-11-20.
Mastodon is an alternative implementation of GNU social, a free,
open-source social network. It is a decentralized alternative to
commercial platforms based on ActivityStreams, Webfinger, PubsubHubbub
and Salmon. The project focuses on creating a clean REST API and a good
user interface. Ruby on Rails is used for the back-end, while React.js
and Redux are used for the dynamic front-end.
############################################################
Visit this URL to get started with Mastodon.
https://wiki.freebsd.org/Ports/net-im/mastodon
############################################################
If upgrading from < 4.1.0:
############################################################
Visit this URL to upgrade Mastodon.
Post installation tasks need to be done according to the
section Upgrade Procedure - 4.0.2=>4.1.0
https://wiki.freebsd.org/Ports/net-im/mastodon
############################################################
net-im/mastodon: update to 4.6.4 security release
Changelog:
https://github.com/mastodon/mastodon/releases/tag/v4.6.4
Notably, security fixes to address the following issues:
- Denial of Service through insufficient authentication of
statistics endpoints.
- Personally-identifying information disclosure due to incorrect
access control validation.
- SSRF Protection Bypass via IPv4-compatible IPv6 Addresses.
PR: 297125
Approved by: Scott Kenney <sak@codered.rmta.org> (maintainer)
Security: GHSA-hx34-2pfw-2qfj
Security: GHSA-7jvv-fhmg-wpfw
Security: GHSA-vwhj-3g83-v276
*/*: Introduction USES=sudo
A new uses 'sudo' has been added to transperently depends of the
proper flavor of sudo 'default' or 'sssd' depending on the default
version set by the user.
If you prefere to use 'sssd' flavor of sudo, add the following
to your make.conf:
DEFAULT_VERSIONS+=sudo=sssd
All sudo consummer ports has benn updated to USES=sudo
Reviewed by: 0mp
Approved by: mat
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D52160
Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk
Notable changes are.
- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.
This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863
I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D37925
net-im/mastodon: Resurrect
Mastodon is an alternative implementation of GNU social, a free,
open-source social network. It is a decentralized alternative to
commercial platforms based on ActivityStreams, Webfinger, PubsubHubbub
and Salmon. The project focuses on creating a clean REST API and a good
user interface. Ruby on Rails is used for the back-end, while React.js
and Redux are used for the dynamic front-end.
For easier maintenance of the port some part of the installation
procedure remains to be completed by the end user. The main howto is
available at https://wiki.freebsd.org/Ports/net-im/mastodon.
A great thanks to Stefano Marinelli for the fabulous post on running
Mastodon on a FreeBSD instance which helped a lot in porting this. The
link to the original post is also available on the above mentioned wiki
page.
Sponsored by: Nepustil
net-im/mastodon: Mark broken and deprecated and set expiration date
File bankruptcy with net-im/mastodon. After the www/node upgrade to 10, it
broke again. In general, the return to effort ratio trying to contort
these node modules and ruby gems in to a port is too low (for me). I will
leave the port here for about a month in case anyone else would like to
give it a go.
For those who want to run a FreeBSD-based instance on the "fediverse", it
is probably easier to simply follow Mastodon's installation guide.
Alternatively, I have heard good things about Pleroma [1], so you may want
to give it a try.
[1] https://git.pleroma.social/pleroma/pleroma
net-im/mastodon: fix issue with assets pre-compile
The assets are generated with a random hex string, so patch files to make
this part of the build reproducible.
Reported by: Gerald Niel
net-im/mastodon: depend on devel/rubygem-fog-core1
Without this change, two conflicting versions of the fog-core gem will be
pulled in, version 1 (devel/rubygem-fog-core1) and version
2 (devel/rubygem-fog-core).
net-im/mastodon: Fix run-time issues by updating dependencies
- Depend on textproc/rubygem-twitter-text1 to fix a run-time error after
textproc/rubygem-twitter-text was upgraded to a version unsupported by
Mastodon.
- After r457876, 457885, and r457886, net-im/mastodon failed to start,
because of an issue with both versions 3 and 4 of the redis gem being
pulled in.
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.1/lib/bundler/runtime.rb:313:in
`check_for_activated_spec!': You have already activated redis 4.0.1, but
your Gemfile requires redis 3.3.5.
Patch, so that only version 4 is pulled in.
net-im/mastodon: Update the minimum required versions for the dependencies
textproc/rubygem-charlock_holmes and devel/rubygem-webpacker-rails5.
Upstream requires the newer versions.
Reported by: Marcin Cieslak <saper@saper.info>
net-im/mastodon: Remove Gemfile.lock in the rc scripts before starting web
and worker services.
There does not seem to be a simple way to prevent a removed Gemfile.lock
from being re-generated when the web or worker services are started. This
can cause startup errors when users upgrade dependencies and they no longer
match what is in Gemfile.lock.
net-im/mastodon: Work around www/node (node version 8) bug [1] on FreeBSD
11.1 that prevents building node modules with gyp [2].
[1] https://github.com/nodejs/node/issues/14076
[2] Users still have to install www/yarn and devel/rubygem-execjs with
non-default NODE6 option.
net-im/mastodon: Add run-time dependencies necessary for installing node
modules. Also, re-add www/npm as a run-time dependency to prevent an error
installing node modules.
net-im/mastodon: Fix plist and patch issues; bump PORTREVISION
- Remove another incorrectly generated %%RUBY_SUFFIX%% from pkg-plist [1]
- Fix a patch that was no longer applying properly after an upstream change
PR: 220625 [1]
Submitted by: pkubaj@anongoth.pl [1]
net-im/mastodon: Update to version 1.4rc5
- Add missing net-im/Makefile entry
- Upgrade pkg-message to include a link to upgrade directions
Approved by: swills (mentor, implicit)