FreeBSD Bugzilla – Attachment 221800 Details for
Bug 252902
www/mattermost-server: support plugins on FreeBSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to allow plugins
mattermost-server-plugins-rev0.diff (text/plain), 2.13 KB, created by
Steve Wills
on 2021-01-22 01:06:07 UTC
(
hide
)
Description:
patch to allow plugins
Filename:
MIME Type:
Creator:
Steve Wills
Created:
2021-01-22 01:06:07 UTC
Size:
2.13 KB
patch
obsolete
>diff --git www/mattermost-server/Makefile www/mattermost-server/Makefile >index f08a445d6610..45306e35f579 100644 >--- www/mattermost-server/Makefile >+++ www/mattermost-server/Makefile >@@ -2,6 +2,7 @@ > > PORTNAME= mattermost-server > PORTVERSION= 5.30.1 >+PORTREVISION= 1 > DISTVERSIONPREFIX= v > CATEGORIES= www > >diff --git www/mattermost-server/files/patch-model_manifest.go www/mattermost-server/files/patch-model_manifest.go >new file mode 100644 >index 000000000000..07c9b900a59a >--- /dev/null >+++ www/mattermost-server/files/patch-model_manifest.go >@@ -0,0 +1,28 @@ >+--- model/manifest.go.orig 2021-01-22 00:23:04 UTC >++++ model/manifest.go >+@@ -118,6 +118,7 @@ type PluginSettingsSchema struct { >+ // "server": { >+ // "executables": { >+ // "linux-amd64": "server/dist/plugin-linux-amd64", >++// "freebsd-amd64": "server/dist/plugin-freebsd-amd64", >+ // "darwin-amd64": "server/dist/plugin-darwin-amd64", >+ // "windows-amd64": "server/dist/plugin-windows-amd64.exe" >+ // } >+@@ -213,6 +214,8 @@ type ManifestServer struct { >+ type ManifestExecutables struct { >+ // LinuxAmd64 is the path to your executable binary for the corresponding platform >+ LinuxAmd64 string `json:"linux-amd64,omitempty" yaml:"linux-amd64,omitempty"` >++ // FreeBSDAmd64 is the path to your executable binary for the corresponding platform >++ FreeBSDAmd64 string `json:"freebsd-amd64,omitempty" yaml:"freebsd-amd64,omitempty"` >+ // DarwinAmd64 is the path to your executable binary for the corresponding platform >+ DarwinAmd64 string `json:"darwin-amd64,omitempty" yaml:"darwin-amd64,omitempty"` >+ // WindowsAmd64 is the path to your executable binary for the corresponding platform >+@@ -290,6 +293,8 @@ func (m *Manifest) GetExecutableForRuntime(goOs, goArc >+ if server.Executables != nil { >+ if goOs == "linux" && goArch == "amd64" { >+ executable = server.Executables.LinuxAmd64 >++ } else if goOs == "freebsd" && goArch == "amd64" { >++ executable = server.Executables.FreeBSDAmd64 >+ } else if goOs == "darwin" && goArch == "amd64" { >+ executable = server.Executables.DarwinAmd64 >+ } else if goOs == "windows" && goArch == "amd64" {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252902
: 221800