View | Details | Raw Unified | Return to bug 252902
Collapse All | Expand All

(-)www/mattermost-server/Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	mattermost-server
3
PORTNAME=	mattermost-server
4
PORTVERSION=	5.30.1
4
PORTVERSION=	5.30.1
5
PORTREVISION=	1
5
DISTVERSIONPREFIX=	v
6
DISTVERSIONPREFIX=	v
6
CATEGORIES=	www
7
CATEGORIES=	www
7
8
(-)www/mattermost-server/files/patch-model_manifest.go (+28 lines)
Added Link Here
1
--- model/manifest.go.orig	2021-01-22 00:23:04 UTC
2
+++ model/manifest.go
3
@@ -118,6 +118,7 @@ type PluginSettingsSchema struct {
4
 //      "server": {
5
 //        "executables": {
6
 //          "linux-amd64": "server/dist/plugin-linux-amd64",
7
+//          "freebsd-amd64": "server/dist/plugin-freebsd-amd64",
8
 //          "darwin-amd64": "server/dist/plugin-darwin-amd64",
9
 //          "windows-amd64": "server/dist/plugin-windows-amd64.exe"
10
 //        }
11
@@ -213,6 +214,8 @@ type ManifestServer struct {
12
 type ManifestExecutables struct {
13
 	// LinuxAmd64 is the path to your executable binary for the corresponding platform
14
 	LinuxAmd64 string `json:"linux-amd64,omitempty" yaml:"linux-amd64,omitempty"`
15
+	// FreeBSDAmd64 is the path to your executable binary for the corresponding platform
16
+	FreeBSDAmd64 string `json:"freebsd-amd64,omitempty" yaml:"freebsd-amd64,omitempty"`
17
 	// DarwinAmd64 is the path to your executable binary for the corresponding platform
18
 	DarwinAmd64 string `json:"darwin-amd64,omitempty" yaml:"darwin-amd64,omitempty"`
19
 	// WindowsAmd64 is the path to your executable binary for the corresponding platform
20
@@ -290,6 +293,8 @@ func (m *Manifest) GetExecutableForRuntime(goOs, goArc
21
 	if server.Executables != nil {
22
 		if goOs == "linux" && goArch == "amd64" {
23
 			executable = server.Executables.LinuxAmd64
24
+		} else if goOs == "freebsd" && goArch == "amd64" {
25
+			executable = server.Executables.FreeBSDAmd64
26
 		} else if goOs == "darwin" && goArch == "amd64" {
27
 			executable = server.Executables.DarwinAmd64
28
 		} else if goOs == "windows" && goArch == "amd64" {

Return to bug 252902