On Feb 3, 2021, at 18:25, Peter West wrote:
> Where is the function add_users defined? I see it in the Portfile for
> postgresql13-server.
It is documented in "man portfile"
The option is created here:
https://github.com/macports/macports-base/blob/master/src/port1.0/portmain.tcl#L63
Its default value (empty) is set here:
https://github.com/macports/macports-base/blob/master/src/port1.0/portmain.tcl#L124
The code that creates the macOS users and groups based on the value the
portfile sets this option to is here:
https://github.com/macports/macports-base/blob/master/src/port1.0/portutil.tcl#L2318-L2339
The adduser and addgroup procedures that add_users calls are below that.