Files
core/paths/freebsd.go
T

17 lines
680 B
Go
Raw Normal View History

package paths
// freebsdFlavor follows FreeBSD/ports conventions rather than blindly
// reusing Linux's FHS layout (spec section 33/56): system configuration
// and locally-installed data live under /usr/local, not /etc or
// /usr/share, and system-writable application data conventionally lives
// under /var/db rather than /var/lib.
var freebsdFlavor = unixFlavor{
systemConfigDirs: []string{"/usr/local/etc"},
systemDataDirs: []string{"/usr/local/share", "/usr/share"},
systemDataBase: "/var/db",
systemStateBase: "/var/db",
systemCacheBase: "/var/cache",
systemRuntimeBase: "/var/run",
systemLogBase: "/var/log",
systemBinDir: "/usr/local/bin",
}