Re: UPDATE: net/mattermost-server

2019-10-24 Thread Robert Nagy


Okay.

On 24/10/19 17:55 +0300, Pavel Korovin wrote:
> No response from maintainer, forwarding to ports@
> Note there are some security fixes since 5.13.2
> https://mattermost.com/security-updates/
> 
> - Forwarded message from Pavel Korovin  -
> 
> Date: Thu, 17 Oct 2019 23:30:45 +0300
> From: Pavel Korovin 
> To: Robert Nagy 
> Subject: Re: UPDATE: net/mattermost-server
> 
> Hi Robert,
> 
> Please find the diff for mattermost-server-5.16.0 attached.
> Tested on current/amd64, installation & upgrade work fine.
> Let me know if I can commit this.
> 
> On 10/01, Pavel Korovin wrote:
> > Please find the update for net/mattermost-server attached.
> > Changelog: https://docs.mattermost.com/administration/changelog.html
> > 
> > One more or less significant change is this one, introduced in 5.14:
> > "The config.json file is now generated with build time using defaults in 
> > code and not in default.json"
> > 
> > Wouldn't affect exising installs, but I'd recommend to review the 
> > configuration after each upgrade, just in case.
> > 
> > OK to commit?
> 
> -- 
> With best regards,
> Pavel Korovin
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/net/mattermost-server/Makefile,v
> retrieving revision 1.16
> diff -u -p -r1.16 Makefile
> --- Makefile  15 Sep 2019 02:04:00 -  1.16
> +++ Makefile  17 Oct 2019 19:24:19 -
> @@ -2,11 +2,10 @@
>  
>  COMMENT =open source Slack-alternative
>  
> -V =  5.13.2
> +V =  5.16.0
>  GH_ACCOUNT = mattermost
>  GH_PROJECT = mattermost-server
>  GH_TAGNAME = v${V}
> -REVISION =   0
>  
>  MASTER_SITES0 =  https://releases.mattermost.com/${V}/
>  
> @@ -29,8 +28,11 @@ MODULES =  lang/go
>  MODGO_LDFLAGS =  -X 
> github.com/mattermost/mattermost-server/model.BuildNumber=${V}
>  NO_TEST =Yes
>  
> +post-extract:
> + cp ${WRKDIR}/mattermost/config/config.json ${WRKDIST}/config/
> +
>  pre-configure:
> - ${SUBST_CMD} ${WRKDIST}/config/default.json 
> ${WRKDIST}/utils/fileutils/fileutils.go \
> + ${SUBST_CMD} ${WRKDIST}/config/config.json 
> ${WRKDIST}/utils/fileutils/fileutils.go \
>   ${WRKDIST}/config/file.go 
> ${WRKDIST}/cmd/mattermost/commands/logs.go
>  
>  do-build:
> @@ -41,7 +43,7 @@ do-install:
>   ${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/mattermost ${PREFIX}/bin/
>   ${INSTALL_DATA_DIR} ${PREFIX}/share/mattermost/
>   ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mattermost/
> - cp ${WRKSRC}/config/default.json ${PREFIX}/share/examples/mattermost/
> + cp ${WRKSRC}/config/config.json ${PREFIX}/share/examples/mattermost/
>  .for _d in client fonts i18n templates
>   cp -Rp ${WRKDIR}/mattermost/${_d} ${PREFIX}/share/mattermost/
>  .endfor
> Index: distinfo
> ===
> RCS file: /cvs/ports/net/mattermost-server/distinfo,v
> retrieving revision 1.11
> diff -u -p -r1.11 distinfo
> --- distinfo  6 Aug 2019 09:38:15 -   1.11
> +++ distinfo  17 Oct 2019 19:24:19 -
> @@ -1,4 +1,4 @@
> -SHA256 (mattermost-5.13.2-linux-amd64.tar.gz) = 
> TA3L/TyS9nTho6Chf1GhJhEeDZrncDOTTGyStHlAHic=
> -SHA256 (mattermost-server-5.13.2.tar.gz) = 
> 7LL7Gk9EXFVH2EhGylsW3lWSDZJrs6QaK1U381xn+G8=
> -SIZE (mattermost-5.13.2-linux-amd64.tar.gz) = 127092635
> -SIZE (mattermost-server-5.13.2.tar.gz) = 16001316
> +SHA256 (mattermost-5.16.0-linux-amd64.tar.gz) = 
> WSS0iilLHQa3JF5Umnlk8Vnn7APrzXYhsIJgc+eRlpE=
> +SHA256 (mattermost-server-5.16.0.tar.gz) = 
> u6gq1ndTbNefaeBHYChRQr3VZHn8o03gVZCOCOIp6pA=
> +SIZE (mattermost-5.16.0-linux-amd64.tar.gz) = 154886375
> +SIZE (mattermost-server-5.16.0.tar.gz) = 16449472
> Index: patches/patch-config_config_json
> ===
> RCS file: patches/patch-config_config_json
> diff -N patches/patch-config_config_json
> --- /dev/null 1 Jan 1970 00:00:00 -
> +++ patches/patch-config_config_json  17 Oct 2019 19:24:19 -
> @@ -0,0 +1,86 @@
> +$OpenBSD$
> +
> +Index: config/config.json
> +--- config/config.json.orig
>  config/config.json
> +@@ -12,7 +12,7 @@
> + "TLSStrictTransportMaxAge": 63072000,
> + "TLSOverwriteCiphers": [],
> + "UseLetsEncrypt": false,
> +-"LetsEncryptCertificateCacheFile": "./config/letsencrypt.cache",
> ++"LetsEncryptCertificateCacheFile": 
> "${LOCALSTATEDIR}/mattermost/letsencrypt.cache",
> + "Forward80To443": false,
> + "TrustedProx

UPDATE: net/mattermost-server

2019-10-24 Thread Pavel Korovin
No response from maintainer, forwarding to ports@
Note there are some security fixes since 5.13.2
https://mattermost.com/security-updates/

- Forwarded message from Pavel Korovin  -

Date: Thu, 17 Oct 2019 23:30:45 +0300
From: Pavel Korovin 
To: Robert Nagy 
Subject: Re: UPDATE: net/mattermost-server

Hi Robert,

Please find the diff for mattermost-server-5.16.0 attached.
Tested on current/amd64, installation & upgrade work fine.
Let me know if I can commit this.

On 10/01, Pavel Korovin wrote:
> Please find the update for net/mattermost-server attached.
> Changelog: https://docs.mattermost.com/administration/changelog.html
> 
> One more or less significant change is this one, introduced in 5.14:
> "The config.json file is now generated with build time using defaults in code 
> and not in default.json"
> 
> Wouldn't affect exising installs, but I'd recommend to review the 
> configuration after each upgrade, just in case.
> 
> OK to commit?

-- 
With best regards,
Pavel Korovin

Index: Makefile
===
RCS file: /cvs/ports/net/mattermost-server/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile15 Sep 2019 02:04:00 -  1.16
+++ Makefile17 Oct 2019 19:24:19 -
@@ -2,11 +2,10 @@
 
 COMMENT =  open source Slack-alternative
 
-V =5.13.2
+V =5.16.0
 GH_ACCOUNT =   mattermost
 GH_PROJECT =   mattermost-server
 GH_TAGNAME =   v${V}
-REVISION = 0
 
 MASTER_SITES0 =https://releases.mattermost.com/${V}/
 
@@ -29,8 +28,11 @@ MODULES =lang/go
 MODGO_LDFLAGS =-X 
github.com/mattermost/mattermost-server/model.BuildNumber=${V}
 NO_TEST =  Yes
 
+post-extract:
+   cp ${WRKDIR}/mattermost/config/config.json ${WRKDIST}/config/
+
 pre-configure:
-   ${SUBST_CMD} ${WRKDIST}/config/default.json 
${WRKDIST}/utils/fileutils/fileutils.go \
+   ${SUBST_CMD} ${WRKDIST}/config/config.json 
${WRKDIST}/utils/fileutils/fileutils.go \
${WRKDIST}/config/file.go 
${WRKDIST}/cmd/mattermost/commands/logs.go
 
 do-build:
@@ -41,7 +43,7 @@ do-install:
${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/mattermost ${PREFIX}/bin/
${INSTALL_DATA_DIR} ${PREFIX}/share/mattermost/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mattermost/
-   cp ${WRKSRC}/config/default.json ${PREFIX}/share/examples/mattermost/
+   cp ${WRKSRC}/config/config.json ${PREFIX}/share/examples/mattermost/
 .for _d in client fonts i18n templates
cp -Rp ${WRKDIR}/mattermost/${_d} ${PREFIX}/share/mattermost/
 .endfor
Index: distinfo
===
RCS file: /cvs/ports/net/mattermost-server/distinfo,v
retrieving revision 1.11
diff -u -p -r1.11 distinfo
--- distinfo6 Aug 2019 09:38:15 -   1.11
+++ distinfo17 Oct 2019 19:24:19 -
@@ -1,4 +1,4 @@
-SHA256 (mattermost-5.13.2-linux-amd64.tar.gz) = 
TA3L/TyS9nTho6Chf1GhJhEeDZrncDOTTGyStHlAHic=
-SHA256 (mattermost-server-5.13.2.tar.gz) = 
7LL7Gk9EXFVH2EhGylsW3lWSDZJrs6QaK1U381xn+G8=
-SIZE (mattermost-5.13.2-linux-amd64.tar.gz) = 127092635
-SIZE (mattermost-server-5.13.2.tar.gz) = 16001316
+SHA256 (mattermost-5.16.0-linux-amd64.tar.gz) = 
WSS0iilLHQa3JF5Umnlk8Vnn7APrzXYhsIJgc+eRlpE=
+SHA256 (mattermost-server-5.16.0.tar.gz) = 
u6gq1ndTbNefaeBHYChRQr3VZHn8o03gVZCOCOIp6pA=
+SIZE (mattermost-5.16.0-linux-amd64.tar.gz) = 154886375
+SIZE (mattermost-server-5.16.0.tar.gz) = 16449472
Index: patches/patch-config_config_json
===
RCS file: patches/patch-config_config_json
diff -N patches/patch-config_config_json
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-config_config_json17 Oct 2019 19:24:19 -
@@ -0,0 +1,86 @@
+$OpenBSD$
+
+Index: config/config.json
+--- config/config.json.orig
 config/config.json
+@@ -12,7 +12,7 @@
+ "TLSStrictTransportMaxAge": 63072000,
+ "TLSOverwriteCiphers": [],
+ "UseLetsEncrypt": false,
+-"LetsEncryptCertificateCacheFile": "./config/letsencrypt.cache",
++"LetsEncryptCertificateCacheFile": 
"${LOCALSTATEDIR}/mattermost/letsencrypt.cache",
+ "Forward80To443": false,
+ "TrustedProxyIPHeader": [],
+ "ReadTimeout": 300,
+@@ -139,18 +139,18 @@
+ "QueryTimeout": 30
+   },
+   "LogSettings": {
+-"EnableConsole": true,
++"EnableConsole": false,
+ "ConsoleLevel": "INFO",
+ "ConsoleJson": true,
+ "EnableFile": true,
+ "FileLevel": "INFO",
+ "FileJson": true,
+-"FileLocation": "",
++"FileLocation": "${LOCALSTATEDIR}/log/mattermost",
+ "EnableWebhookDebugging":

UPDATE: net/mattermost-server

2019-10-01 Thread Pavel Korovin
Dear all,

Please find the update for net/mattermost-server attached.
Changelog: https://docs.mattermost.com/administration/changelog.html

One more or less significant change is this one, introduced in 5.14:
"The config.json file is now generated with build time using defaults in code 
and not in default.json"

Wouldn't affect exising installs, but I'd recommend to review the configuration 
after each upgrade, just in case.

OK to commit?

-- 
With best regards,
Pavel Korovin
Index: Makefile
===
RCS file: /cvs/ports/net/mattermost-server/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile15 Sep 2019 02:04:00 -  1.16
+++ Makefile1 Oct 2019 10:56:27 -
@@ -2,11 +2,10 @@
 
 COMMENT =  open source Slack-alternative
 
-V =5.13.2
+V =5.15.0
 GH_ACCOUNT =   mattermost
 GH_PROJECT =   mattermost-server
 GH_TAGNAME =   v${V}
-REVISION = 0
 
 MASTER_SITES0 =https://releases.mattermost.com/${V}/
 
@@ -29,8 +28,11 @@ MODULES =lang/go
 MODGO_LDFLAGS =-X 
github.com/mattermost/mattermost-server/model.BuildNumber=${V}
 NO_TEST =  Yes
 
+post-extract:
+   cp ${WRKDIR}/mattermost/config/config.json ${WRKDIST}/config/
+
 pre-configure:
-   ${SUBST_CMD} ${WRKDIST}/config/default.json 
${WRKDIST}/utils/fileutils/fileutils.go \
+   ${SUBST_CMD} ${WRKDIST}/config/config.json 
${WRKDIST}/utils/fileutils/fileutils.go \
${WRKDIST}/config/file.go 
${WRKDIST}/cmd/mattermost/commands/logs.go
 
 do-build:
@@ -41,7 +43,7 @@ do-install:
${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/mattermost ${PREFIX}/bin/
${INSTALL_DATA_DIR} ${PREFIX}/share/mattermost/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mattermost/
-   cp ${WRKSRC}/config/default.json ${PREFIX}/share/examples/mattermost/
+   cp ${WRKSRC}/config/config.json ${PREFIX}/share/examples/mattermost/
 .for _d in client fonts i18n templates
cp -Rp ${WRKDIR}/mattermost/${_d} ${PREFIX}/share/mattermost/
 .endfor
Index: distinfo
===
RCS file: /cvs/ports/net/mattermost-server/distinfo,v
retrieving revision 1.11
diff -u -p -r1.11 distinfo
--- distinfo6 Aug 2019 09:38:15 -   1.11
+++ distinfo1 Oct 2019 10:56:27 -
@@ -1,4 +1,4 @@
-SHA256 (mattermost-5.13.2-linux-amd64.tar.gz) = 
TA3L/TyS9nTho6Chf1GhJhEeDZrncDOTTGyStHlAHic=
-SHA256 (mattermost-server-5.13.2.tar.gz) = 
7LL7Gk9EXFVH2EhGylsW3lWSDZJrs6QaK1U381xn+G8=
-SIZE (mattermost-5.13.2-linux-amd64.tar.gz) = 127092635
-SIZE (mattermost-server-5.13.2.tar.gz) = 16001316
+SHA256 (mattermost-5.15.0-linux-amd64.tar.gz) = 
heyejCaB0BhvphXv0e3frGfTrT+bOPW3BgvcS7xgtY8=
+SHA256 (mattermost-server-5.15.0.tar.gz) = 
V/iQLprv1j1DCH8KGL54c9CVtehOvjvecuzrlpLvKNc=
+SIZE (mattermost-5.15.0-linux-amd64.tar.gz) = 154556059
+SIZE (mattermost-server-5.15.0.tar.gz) = 16078125
Index: patches/patch-config_config_json
===
RCS file: patches/patch-config_config_json
diff -N patches/patch-config_config_json
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-config_config_json1 Oct 2019 10:56:27 -
@@ -0,0 +1,86 @@
+$OpenBSD$
+
+Index: config/config.json
+--- config/config.json.orig
 config/config.json
+@@ -128,7 +128,7 @@
+   },
+   "SqlSettings": {
+ "DriverName": "mysql",
+-"DataSource": 
"mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s",
++"DataSource": 
"mmuser:mostest@tcp(localhost:3306)/mattermost_test?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s",
+ "DataSourceReplicas": [],
+ "DataSourceSearchReplicas": [],
+ "MaxIdleConns": 20,
+@@ -139,13 +139,13 @@
+ "QueryTimeout": 30
+   },
+   "LogSettings": {
+-"EnableConsole": true,
++"EnableConsole": false,
+ "ConsoleLevel": "INFO",
+ "ConsoleJson": true,
+ "EnableFile": true,
+ "FileLevel": "INFO",
+ "FileJson": true,
+-"FileLocation": "",
++"FileLocation": "${LOCALSTATEDIR}/log/mattermost",
+ "EnableWebhookDebugging": true,
+ "EnableDiagnostics": true
+   },
+@@ -171,7 +171,7 @@
+ "EnableMobileDownload": true,
+ "MaxFileSize": 52428800,
+ "DriverName": "local",
+-"Directory": "./data/",
++"Directory": "${LOCALSTATEDIR}/mattermost/data/",
+ "EnablePublicLink": false,
+ "PublicLinkSalt": "",
+ "InitialFont": "nunito-bold.ttf",
+@@ -199,8 +199,8 @@
+ "EnableSMTPAuth": false,
+ "SMTPUsername": "",
+ "SMTPPassword": "",
+-"SMTPServer": "",
+-"SMTPPort": "",
++"SMTPServer": "localhost",
++"SMTPPort": "25",
+ "ConnectionSecurity": "",
+ "SendPushNotifications": true,
+ "PushNotificationServer": "https://push-test.mattermost.com;,
+@@ -311,7 +311,7 @@
+   },
+   "ComplianceSettings": {
+ "Enable": false,

UPDATE: net/mattermost-server

2019-08-05 Thread Pavel Korovin
Dear all,

Please find the update for net/mattermost-server attached.
Changelog: https://docs.mattermost.com/administration/changelog.html

OK to commit?

-- 
With best regards,
Pavel Korovin
Index: Makefile
===
RCS file: /cvs/ports/net/mattermost-server/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile12 Jul 2019 20:48:31 -  1.13
+++ Makefile5 Aug 2019 21:52:15 -
@@ -2,7 +2,7 @@
 
 COMMENT =  open source Slack-alternative
 
-V =5.9.0
+V =5.13.2
 GH_ACCOUNT =   mattermost
 GH_PROJECT =   mattermost-server
 GH_TAGNAME =   v${V}
@@ -30,7 +30,7 @@ NO_TEST = Yes
 
 pre-configure:
${SUBST_CMD} ${WRKDIST}/config/default.json 
${WRKDIST}/utils/fileutils/fileutils.go \
-   ${WRKDIST}/cmd/mattermost/commands/logs.go
+   ${WRKDIST}/config/file.go 
${WRKDIST}/cmd/mattermost/commands/logs.go
 
 do-build:
cd ${WRKSRC}/cmd/mattermost && \
Index: distinfo
===
RCS file: /cvs/ports/net/mattermost-server/distinfo,v
retrieving revision 1.10
diff -u -p -r1.10 distinfo
--- distinfo21 Mar 2019 11:36:24 -  1.10
+++ distinfo5 Aug 2019 21:52:15 -
@@ -1,4 +1,4 @@
-SHA256 (mattermost-5.9.0-linux-amd64.tar.gz) = 
vI5u4WjWWO0AizAGuXmmCUgsaN4AtEeIXC4lXnkt2qc=
-SHA256 (mattermost-server-5.9.0.tar.gz) = 
GgRQ15yBJz3cZpi2hTfH8OF6orhpJoBMIwstDaQms4k=
-SIZE (mattermost-5.9.0-linux-amd64.tar.gz) = 98803402
-SIZE (mattermost-server-5.9.0.tar.gz) = 16557862
+SHA256 (mattermost-5.13.2-linux-amd64.tar.gz) = 
TA3L/TyS9nTho6Chf1GhJhEeDZrncDOTTGyStHlAHic=
+SHA256 (mattermost-server-5.13.2.tar.gz) = 
7LL7Gk9EXFVH2EhGylsW3lWSDZJrs6QaK1U381xn+G8=
+SIZE (mattermost-5.13.2-linux-amd64.tar.gz) = 127092635
+SIZE (mattermost-server-5.13.2.tar.gz) = 16001316
Index: patches/patch-config_default_json
===
RCS file: /cvs/ports/net/mattermost-server/patches/patch-config_default_json,v
retrieving revision 1.3
diff -u -p -r1.3 patch-config_default_json
--- patches/patch-config_default_json   25 Feb 2019 20:37:11 -  1.3
+++ patches/patch-config_default_json   5 Aug 2019 21:52:15 -
@@ -3,7 +3,7 @@ $OpenBSD: patch-config_default_json,v 1.
 Index: config/default.json
 --- config/default.json.orig
 +++ config/default.json
-@@ -123,7 +123,7 @@
+@@ -129,7 +129,7 @@
  },
  "SqlSettings": {
  "DriverName": "mysql",
@@ -12,7 +12,7 @@ Index: config/default.json
  "DataSourceReplicas": [],
  "DataSourceSearchReplicas": [],
  "MaxIdleConns": 20,
-@@ -134,13 +134,13 @@
+@@ -140,13 +140,13 @@
  "QueryTimeout": 30
  },
  "LogSettings": {
@@ -29,7 +29,7 @@ Index: config/default.json
  "EnableWebhookDebugging": true,
  "EnableDiagnostics": true
  },
-@@ -157,7 +157,7 @@
+@@ -172,7 +172,7 @@
  "EnableMobileDownload": true,
  "MaxFileSize": 52428800,
  "DriverName": "local",
@@ -38,7 +38,7 @@ Index: config/default.json
  "EnablePublicLink": false,
  "PublicLinkSalt": "",
  "InitialFont": "nunito-bold.ttf",
-@@ -184,8 +184,8 @@
+@@ -200,8 +200,8 @@
  "EnableSMTPAuth": false,
  "SMTPUsername": "",
  "SMTPPassword": "",
@@ -47,9 +47,9 @@ Index: config/default.json
 +"SMTPServer": "localhost",
 +"SMTPPort": "25",
  "ConnectionSecurity": "",
- "InviteSalt": "",
  "SendPushNotifications": true,
-@@ -297,7 +297,7 @@
+ "PushNotificationServer": "https://push-test.mattermost.com;,
+@@ -309,7 +309,7 @@
  },
  "ComplianceSettings": {
  "Enable": false,
@@ -58,7 +58,7 @@ Index: config/default.json
  "EnableDaily": false
  },
  "LocalizationSettings": {
-@@ -365,7 +365,7 @@
+@@ -379,7 +379,7 @@
  "MaxUsersForStatistics": 2500
  },
  "ElasticsearchSettings": {
@@ -67,10 +67,10 @@ Index: config/default.json
  "Username": "elastic",
  "Password": "changeme",
  "EnableIndexing": false,
-@@ -407,8 +407,8 @@
- "PluginSettings": {
+@@ -427,8 +427,8 @@
  "Enable": true,
  "EnableUploads": false,
+ "EnableHealthCheck": true,
 -"Directory": "./plugins",
 -"ClientDirectory": "./client/plugins",
 +"Directory": "${LOCALSTATEDIR}/mattermost/plugins",
Index: patches/patch-config_file_go
===
RCS file: patches/patch-config_file_go
diff -N patches/patch-config_file_go
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-config_file_go5 Aug 2019 21:52:15 -
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: config/file.go
+--- config/file.go.orig
 config/file.go
+@@ -71,7 +71,7 @@ func resolveConfigFilePath(path string) (string, error
+ 
+   // Search for the relative path to the file in 

[SECURITY UPDATE] net/mattermost-server

2019-02-25 Thread Pavel Korovin
Dear all,

Please find the latest net/mattermost-server update attached.   


   



   
According to the CHANGELOG, 


   
"Mattermost v5.8.0 contains low to high level security fixes.
Upgrading is highly recommended".
https://docs.mattermost.com/administration/changelog.html   


   



   
Important port changes:

1. I think renaming mattermost bin to mattermost-server and placing it into
/usr/local/sbin should be reverted.
mattermost binary runs the server, but it also runs CLI interface to manage
the server. In the docs it's just "mattermost", not "mattermost-server".
I think getting closer to the source won't be a problem for anyone.

2. Fixed config/log paths, so mattermost cli works without necessity
of descending into /usr/share/mattermost and specifying -c flag.

3. Mattermost config should be /etc/mattermost/config.json. If mattermost
starts and cannot find config.json, it writes default.json and starts with
defaults from it.

4. Enforce security on /etc/mattermost and /var/log/mattermost dirs
(chmod o=), it can have sensitive information.

Finally, I'd propose renaming net/mattermost-server to net/mattermost
to get rid of unnecessary ambiguity in naming. This change can be seen
as questionable, so I don't include it though it's as easy as adding
PKGNAME = mattermost-${V}.

-- 
With best regards,
Pavel Korovin
Index: Makefile
===
RCS file: /cvs/ports/net/mattermost-server/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile14 Feb 2019 06:26:03 -  1.9
+++ Makefile25 Feb 2019 16:48:57 -
@@ -2,7 +2,7 @@
 
 COMMENT =  open source Slack-alternative
 
-V =5.7.1
+V =5.8.0
 GH_ACCOUNT =   mattermost
 GH_PROJECT =   mattermost-server
 GH_TAGNAME =   v${V}
@@ -30,19 +30,20 @@ MODGO_LDFLAGS = -X github.com/mattermost
 NO_TEST =  Yes
 
 pre-configure:
-   ${SUBST_CMD} ${WRKDIST}/config/default.json
+   ${SUBST_CMD} ${WRKDIST}/config/default.json 
${WRKDIST}/utils/fileutils/fileutils.go \
+   ${WRKDIST}/cmd/mattermost/commands/logs.go
 
 do-build:
cd ${WRKSRC}/cmd/mattermost && \
${MODGO_BUILD_CMD}
 
 do-install:
-   ${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/mattermost 
${PREFIX}/sbin/mattermost-server
-   ${INSTALL_DATA_DIR} ${PREFIX}/share/mattermost
-   ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mattermost
-   cp ${WRKSRC}/config/default.json ${PREFIX}/share/examples/mattermost
+   ${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/mattermost ${PREFIX}/bin/
+   ${INSTALL_DATA_DIR} ${PREFIX}/share/mattermost/
+   ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mattermost/
+   cp ${WRKSRC}/config/default.json ${PREFIX}/share/examples/mattermost/
 .for _d in client fonts i18n templates
-   cp -Rp ${WRKDIR}/mattermost/${_d} ${PREFIX}/share/mattermost
+   cp -Rp ${WRKDIR}/mattermost/${_d} ${PREFIX}/share/mattermost/
 .endfor
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/net/mattermost-server/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo14 Feb 2019 06:26:03 -  1.8
+++ distinfo25 Feb 2019 16:48:57 -
@@ -1,4 +1,4 @@
-SHA256 (mattermost-5.7.1-linux-amd64.tar.gz) = 
CfQGjhLkNUMydhcsGiWwy3TjVGh3h+eBy6emxUZ7q2c=
-SHA256 (mattermost-server-5.7.1.tar.gz) = 
y0mtZL11S8xpSPEf91PREkk8TFSGKvZ4+AI+6GEQwZ4=
-SIZE (mattermost-5.7.1-linux-amd64.tar.gz) = 102660133
-SIZE (mattermost-server-5.7.1.tar.gz) = 10293290
+SHA256 (mattermost-5.8.0-linux-amd64.tar.gz) = 
+VxDjIEXH2kpwPJDjDWLfhzL00NUays+daX50UsCQs0=
+SHA256 (mattermost-server-5.8.0.tar.gz) = 
J9489c3WFNclUeTgU7/pA0Xw4AS/ccYDbFRzasG0i10=
+SIZE (mattermost-5.8.0-linux-amd64.tar.gz) = 98792460
+SIZE (mattermost-server-5.8.0.tar.gz) = 16551687
Index: 

Re: [SECURITY UPDATE] net/mattermost-server

2019-02-13 Thread Klemens Nanni
OK kn



[SECURITY UPDATE] net/mattermost-server

2019-02-13 Thread Pavel Korovin
Please find the update for the latest net/mattermost-server attached.

According to the CHANGELOG,
"Mattermost v5.7.1 contains a high level security fix. Upgrading is
highly recommended."
https://docs.mattermost.com/administration/changelog.html

OK to commit?

-- 
With best regards,
Pavel Korovin
Index: Makefile
===
RCS file: /cvs/ports/net/mattermost-server/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile28 Jan 2019 11:45:48 -  1.8
+++ Makefile13 Feb 2019 21:28:01 -
@@ -2,7 +2,7 @@
 
 COMMENT =  open source Slack-alternative
 
-V =5.7.0
+V =5.7.1
 GH_ACCOUNT =   mattermost
 GH_PROJECT =   mattermost-server
 GH_TAGNAME =   v${V}
Index: distinfo
===
RCS file: /cvs/ports/net/mattermost-server/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo28 Jan 2019 11:45:48 -  1.7
+++ distinfo13 Feb 2019 21:28:01 -
@@ -1,4 +1,4 @@
-SHA256 (mattermost-5.7.0-linux-amd64.tar.gz) = 
EiDiX1AeQdub7mrxTdElg8H5VlilWGLaQqEmjRYLEMQ=
-SHA256 (mattermost-server-5.7.0.tar.gz) = 
cPrhU5GrW5Au6gT8QWk6+m3bVNu9ohTaZk+E877mhss=
-SIZE (mattermost-5.7.0-linux-amd64.tar.gz) = 102104566
-SIZE (mattermost-server-5.7.0.tar.gz) = 10292956
+SHA256 (mattermost-5.7.1-linux-amd64.tar.gz) = 
CfQGjhLkNUMydhcsGiWwy3TjVGh3h+eBy6emxUZ7q2c=
+SHA256 (mattermost-server-5.7.1.tar.gz) = 
y0mtZL11S8xpSPEf91PREkk8TFSGKvZ4+AI+6GEQwZ4=
+SIZE (mattermost-5.7.1-linux-amd64.tar.gz) = 102660133
+SIZE (mattermost-server-5.7.1.tar.gz) = 10293290


Re: [UPDATE] net/mattermost-server

2019-01-25 Thread Aaron Bieber


Pavel Korovin writes:

> Dear all,
>
> Please find update for the latest mattermost-server attached.
> Changelog: https://docs.mattermost.com/administration/changelog.html

Makefile and DESCR have trailing white space.

Other than that. OK abieber@

--
PGP: 0x1F81112D62A9ADCE / 3586 3350 BFEA C101 DB1A  4AF0 1F81 112D 62A9 ADCE



Re: [UPDATE] net/mattermost-server

2019-01-25 Thread Pavel Korovin
Dear all,
 
Please find update for the latest mattermost-server attached.
Changelog: https://docs.mattermost.com/administration/changelog.html

-- 
With best regards,
Pavel Korovin
Index: Makefile
===
RCS file: /cvs/ports/net/mattermost-server/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile22 Dec 2018 12:07:23 -  1.7
+++ Makefile25 Jan 2019 13:02:43 -
@@ -2,7 +2,7 @@
 
 COMMENT =  open source Slack-alternative
 
-V =5.6.1
+V =5.7.0
 GH_ACCOUNT =   mattermost
 GH_PROJECT =   mattermost-server
 GH_TAGNAME =   v${V}
Index: distinfo
===
RCS file: /cvs/ports/net/mattermost-server/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo22 Dec 2018 12:07:23 -  1.6
+++ distinfo25 Jan 2019 13:02:43 -
@@ -1,4 +1,4 @@
-SHA256 (mattermost-5.6.1-linux-amd64.tar.gz) = 
afhi0q8AfoDO/Uine5/lB6e1uqDMMoWJDzlw3Lznyfw=
-SHA256 (mattermost-server-5.6.1.tar.gz) = 
wJToQn9rGOovRqWQt4WSgttJl6xc9bPAUeCvhIAzsPk=
-SIZE (mattermost-5.6.1-linux-amd64.tar.gz) = 102143574
-SIZE (mattermost-server-5.6.1.tar.gz) = 10286117
+SHA256 (mattermost-5.7.0-linux-amd64.tar.gz) = 
EiDiX1AeQdub7mrxTdElg8H5VlilWGLaQqEmjRYLEMQ=
+SHA256 (mattermost-server-5.7.0.tar.gz) = 
cPrhU5GrW5Au6gT8QWk6+m3bVNu9ohTaZk+E877mhss=
+SIZE (mattermost-5.7.0-linux-amd64.tar.gz) = 102104566
+SIZE (mattermost-server-5.7.0.tar.gz) = 10292956
Index: pkg/PLIST
===
RCS file: /cvs/ports/net/mattermost-server/pkg/PLIST,v
retrieving revision 1.6
diff -u -p -r1.6 PLIST
--- pkg/PLIST   22 Dec 2018 12:07:23 -  1.6
+++ pkg/PLIST   25 Jan 2019 13:02:43 -
@@ -15,58 +15,58 @@ share/examples/mattermost/default.json
 @group
 share/mattermost/
 share/mattermost/client/
-share/mattermost/client/0.bb0ebad4818be21f2dbb.js
-share/mattermost/client/0.bb0ebad4818be21f2dbb.js.map
-share/mattermost/client/1.9894b544c1dfc36cfec0.js
-share/mattermost/client/1.9894b544c1dfc36cfec0.js.map
-share/mattermost/client/10.160b413b066e339343b3.js
-share/mattermost/client/10.160b413b066e339343b3.js.map
-share/mattermost/client/11.458ce9666c099884f087.js
-share/mattermost/client/11.458ce9666c099884f087.js.map
-share/mattermost/client/12.7833d953fac171531090.js
-share/mattermost/client/12.7833d953fac171531090.js.map
-share/mattermost/client/13.6cccde257053ed981b09.js
-share/mattermost/client/13.6cccde257053ed981b09.js.map
-share/mattermost/client/14.714974fe723736446f76.js
-share/mattermost/client/14.714974fe723736446f76.js.map
-share/mattermost/client/15.1624dc2d57a1da041c83.js
-share/mattermost/client/15.1624dc2d57a1da041c83.js.map
+share/mattermost/client/0.ee1fdcdde3decd60f726.js
+share/mattermost/client/0.ee1fdcdde3decd60f726.js.map
+share/mattermost/client/1.cf0f82146e9c0bc186ea.js
+share/mattermost/client/1.cf0f82146e9c0bc186ea.js.map
+share/mattermost/client/10.f97580915a8b49a1be0c.js
+share/mattermost/client/10.f97580915a8b49a1be0c.js.map
+share/mattermost/client/11.13ef4a6e7adfe317c887.js
+share/mattermost/client/11.13ef4a6e7adfe317c887.js.map
+share/mattermost/client/12.6b21d1309e059fa159ca.js
+share/mattermost/client/12.6b21d1309e059fa159ca.js.map
+share/mattermost/client/13.d8b3bd6599a8f67691ab.js
+share/mattermost/client/13.d8b3bd6599a8f67691ab.js.map
+share/mattermost/client/14.5f08b30bb6c1b0e61a10.js
+share/mattermost/client/14.5f08b30bb6c1b0e61a10.js.map
+share/mattermost/client/15.4ff3c87f42fd67465e60.js
+share/mattermost/client/15.4ff3c87f42fd67465e60.js.map
 share/mattermost/client/16.a8d4c022b5e4391a7614.js
 share/mattermost/client/16.a8d4c022b5e4391a7614.js.map
-share/mattermost/client/17.6d47b70f90fc0e2fab8f.js
-share/mattermost/client/17.6d47b70f90fc0e2fab8f.js.map
-share/mattermost/client/18.45012f13cfb424da2c7f.js
-share/mattermost/client/18.45012f13cfb424da2c7f.js.map
-share/mattermost/client/19.bb2f90d285b7508bf68b.js
-share/mattermost/client/19.bb2f90d285b7508bf68b.js.map
-share/mattermost/client/2.1b1f226f95447e808a44.js
-share/mattermost/client/2.1b1f226f95447e808a44.js.map
-share/mattermost/client/20.7ea9068c77f122130d51.js
-share/mattermost/client/20.7ea9068c77f122130d51.js.map
-share/mattermost/client/21.28903b4495e31d343ab0.js
-share/mattermost/client/21.28903b4495e31d343ab0.js.map
-share/mattermost/client/22.27a89f01c417edfe1d8e.js
-share/mattermost/client/22.27a89f01c417edfe1d8e.js.map
-share/mattermost/client/23.337d8a5f8ea79d7f55f0.js
-share/mattermost/client/23.337d8a5f8ea79d7f55f0.js.map
+share/mattermost/client/17.e91804268f7b4c95a280.js
+share/mattermost/client/17.e91804268f7b4c95a280.js.map
+share/mattermost/client/18.461adf250a86b45a5f05.js
+share/mattermost/client/18.461adf250a86b45a5f05.js.map
+share/mattermost/client/19.d8d4755383136377d20b.js
+share/mattermost/client/19.d8d4755383136377d20b.js.map
+share/mattermost/client/2.751bea97b1ac487b9661.js

[UPDATE] net/mattermost-server

2018-12-02 Thread Pavel Korovin
Dear all,

Please find update for the latest mattermost-server attached.
Changelog: https://docs.mattermost.com/administration/changelog.html

-- 
With best regards,
Pavel Korovin
Index: Makefile
===
RCS file: /cvs/ports/net/mattermost-server/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile20 Sep 2018 10:11:21 -  1.6
+++ Makefile2 Dec 2018 17:15:05 -
@@ -2,7 +2,7 @@
 
 COMMENT =  open source Slack-alternative
 
-V =5.3.1
+V =5.5.0
 GH_ACCOUNT =   mattermost
 GH_PROJECT =   mattermost-server
 GH_TAGNAME =   v${V}
Index: distinfo
===
RCS file: /cvs/ports/net/mattermost-server/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo20 Sep 2018 10:11:21 -  1.5
+++ distinfo2 Dec 2018 17:15:05 -
@@ -1,4 +1,4 @@
-SHA256 (mattermost-5.3.1-linux-amd64.tar.gz) = 
6+WbOPDHwb7S3ZTA9cZIWN0xY0dBgZYZnYcUF3R9z5c=
-SHA256 (mattermost-server-5.3.1.tar.gz) = 
pQpynnH8Um8VGRvvbvm9peQ+2rhfN+oSokqNhLE+fuQ=
-SIZE (mattermost-5.3.1-linux-amd64.tar.gz) = 56241480
-SIZE (mattermost-server-5.3.1.tar.gz) = 10051783
+SHA256 (mattermost-5.5.0-linux-amd64.tar.gz) = 
xMPYMl0OUhOqrCwQjFlUOMntHUQuFmtzLVgwbNXY+zQ=
+SHA256 (mattermost-server-5.5.0.tar.gz) = 
SQa/kMQshZ9rP9JtYMBiUgDqHVR7rX0OjX7HG5AefUQ=
+SIZE (mattermost-5.5.0-linux-amd64.tar.gz) = 62877087
+SIZE (mattermost-server-5.5.0.tar.gz) = 10085897
Index: pkg/PLIST
===
RCS file: /cvs/ports/net/mattermost-server/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST   20 Sep 2018 10:11:21 -  1.5
+++ pkg/PLIST   2 Dec 2018 17:15:05 -
@@ -15,74 +15,76 @@ share/examples/mattermost/default.json
 @group
 share/mattermost/
 share/mattermost/client/
-share/mattermost/client/0.a4379d386a0cdf9b79be.js
-share/mattermost/client/0.a4379d386a0cdf9b79be.js.map
-share/mattermost/client/1.4789aeefe7dbaf379c80.js
-share/mattermost/client/1.4789aeefe7dbaf379c80.js.map
-share/mattermost/client/10.3efd39b3683bd7e15460.js
-share/mattermost/client/10.3efd39b3683bd7e15460.js.map
-share/mattermost/client/11.75455fba60698998a7cc.js
-share/mattermost/client/11.75455fba60698998a7cc.js.map
-share/mattermost/client/12.4f699f7f3ce83abf965f.js
-share/mattermost/client/12.4f699f7f3ce83abf965f.js.map
-share/mattermost/client/13.0c01dfd6598e68b25499.js
-share/mattermost/client/13.0c01dfd6598e68b25499.js.map
-share/mattermost/client/14.aa9b21ca6d4e1e2a866f.js
-share/mattermost/client/14.aa9b21ca6d4e1e2a866f.js.map
-share/mattermost/client/15.1d1de0a5bf3577d5ce45.js
-share/mattermost/client/15.1d1de0a5bf3577d5ce45.js.map
-share/mattermost/client/16.8d972220460b9dccb789.js
-share/mattermost/client/16.8d972220460b9dccb789.js.map
-share/mattermost/client/17.296e5fc9fa306b3d7e7b.js
-share/mattermost/client/17.296e5fc9fa306b3d7e7b.js.map
-share/mattermost/client/18.cb48be32ac7cc4bbaa3d.js
-share/mattermost/client/18.cb48be32ac7cc4bbaa3d.js.map
-share/mattermost/client/19.975733df671b7c40107d.js
-share/mattermost/client/19.975733df671b7c40107d.js.map
-share/mattermost/client/2.84dad6c961302191c2cf.js
-share/mattermost/client/2.84dad6c961302191c2cf.js.map
-share/mattermost/client/2.885ec9a3e42de56e4bd6.css
-share/mattermost/client/2.885ec9a3e42de56e4bd6.css.map
-share/mattermost/client/20.d32d7e00b7d25a359912.js
-share/mattermost/client/20.d32d7e00b7d25a359912.js.map
-share/mattermost/client/21.4e386b48d1b28ec0b6aa.js
-share/mattermost/client/21.4e386b48d1b28ec0b6aa.js.map
-share/mattermost/client/22.4e94f33588299cc32431.js
-share/mattermost/client/22.4e94f33588299cc32431.js.map
-share/mattermost/client/23.a320a6b70373c94a359d.js
-share/mattermost/client/23.a320a6b70373c94a359d.js.map
-share/mattermost/client/24.162c6cdcba6411bd8932.js
-share/mattermost/client/24.162c6cdcba6411bd8932.js.map
-share/mattermost/client/25.4a295242703d94b339fe.js
-share/mattermost/client/25.4a295242703d94b339fe.js.map
-share/mattermost/client/26.c8975a2d630da5456c34.js
-share/mattermost/client/26.c8975a2d630da5456c34.js.map
-share/mattermost/client/27.4e989d340e9d2cf5338c.js
-share/mattermost/client/27.4e989d340e9d2cf5338c.js.map
-share/mattermost/client/28.4479f63ed1ac5c7dfa20.js
-share/mattermost/client/28.4479f63ed1ac5c7dfa20.js.map
-share/mattermost/client/29.f56c58fa515755818f80.js
-share/mattermost/client/29.f56c58fa515755818f80.js.map
-share/mattermost/client/3.370ed0dae5189d9e7198.js
-share/mattermost/client/3.370ed0dae5189d9e7198.js.map
-share/mattermost/client/3.77271d5ee6b717735a0e.css
-share/mattermost/client/3.77271d5ee6b717735a0e.css.map
-share/mattermost/client/30.e416b4d81ab00763da9f.js
-share/mattermost/client/30.e416b4d81ab00763da9f.js.map
-share/mattermost/client/31.d68b91f390ce015571d3.js
-share/mattermost/client/31.d68b91f390ce015571d3.js.map
-share/mattermost/client/32.f2f693885526587592ce.js