notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details on branch 2025Q4
shfmt Shell script formatter
3.12.0_4 devel on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 3.12.0_4Version of this port present on the latest quarterly branch.
Maintainer: adamw@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2025-11-01 15:53:31
Last Update: 2025-11-01 15:48:35
Commit Hash: ae07b4c
License: BSD3CLAUSE
WWW:
https://github.com/mvdan/sh
Description:
shfmt formats shell programs. It can use tabs or any number of spaces to indent. You can feed it standard input, any number of files or any number of directories to recurse into. When recursing, it will operate on .sh and .bash files and ignore files starting with a period. It will also operate on files with no extension and a shell shebang. If any EditorConfig files are found, they will be used to apply formatting options.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (5 items)
Collapse this list.
  1. bin/shfmt
  2. share/man/man1/shfmt.1.gz
  3. /usr/local/share/licenses/shfmt-3.12.0_4/catalog.mk
  4. /usr/local/share/licenses/shfmt-3.12.0_4/LICENSE
  5. /usr/local/share/licenses/shfmt-3.12.0_4/BSD3CLAUSE
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • shfmt>0:devel/shfmt
To install the port:
cd /usr/ports/devel/shfmt/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/shfmt
  • pkg install shfmt
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: shfmt
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1751905025 SHA256 (go/devel_shfmt/shfmt-v3.12.0/v3.12.0.mod) = bd6c4b7f07c501319545135d2b53f0743b43562ddc002925bf38b209d0dfde39 SIZE (go/devel_shfmt/shfmt-v3.12.0/v3.12.0.mod) = 442

Expand this list (2 items)

Collapse this list.

SHA256 (go/devel_shfmt/shfmt-v3.12.0/v3.12.0.zip) = e5c1949ada636589ba1d0621274bd6d2e7b46f9def4181cc4fb0e97b7a8779ef SIZE (go/devel_shfmt/shfmt-v3.12.0/v3.12.0.zip) = 270942

Collapse this list.


No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. scdoc : textproc/scdoc
  2. go124 : lang/go124
Fetch dependencies:
  1. go124 : lang/go124
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
devel_shfmt
USES:
go:modules zip
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://proxy.golang.org/mvdan.cc/sh/v3/@v/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
3.12.0_4
01 Nov 2025 15:48:35
commit hash: ae07b4cd9e5d2da82d1b03dfbd103c951d7a9114commit hash: ae07b4cd9e5d2da82d1b03dfbd103c951d7a9114commit hash: ae07b4cd9e5d2da82d1b03dfbd103c951d7a9114commit hash: ae07b4cd9e5d2da82d1b03dfbd103c951d7a9114 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump Go ports for 1.24.9

This is a direct commit to 2025Q4. It'll definitely bring things (esp.
PORTREVISION lines) out of sync with main, but trying to MFH the
associated bump commit would bring in a massive quantity of conflicts.

Number of commits found: 1