Index: mattermost-server-7.0.0/Makefile
--- mattermost-server-7.0.0/Makefile.orig	2022-06-13 17:06:32.000000000 +0200
+++ mattermost-server-7.0.0/Makefile	2022-06-16 18:14:08.265652000 +0200
@@ -27,14 +27,14 @@
 # Build Flags
 BUILD_NUMBER ?= $(BUILD_NUMBER:)
 BUILD_DATE = $(shell date -u)
-BUILD_HASH = $(shell git rev-parse HEAD)
+BUILD_HASH = 000000
 # If we don't set the build number it defaults to dev
 ifeq ($(BUILD_NUMBER),)
 	BUILD_DATE := n/a
 	BUILD_NUMBER := dev
 endif
 BUILD_ENTERPRISE_DIR ?= ../enterprise
-BUILD_ENTERPRISE ?= true
+BUILD_ENTERPRISE ?= false
 BUILD_ENTERPRISE_READY = false
 BUILD_TYPE_NAME = team
 BUILD_HASH_ENTERPRISE = none
Index: mattermost-server-7.0.0/build/release.mk
--- mattermost-server-7.0.0/build/release.mk.orig	2022-06-16 18:14:08.265785000 +0200
+++ mattermost-server-7.0.0/build/release.mk	2022-06-16 18:14:46.532372000 +0200
@@ -82,7 +82,8 @@
 	env GOOS=windows GOARCH=amd64 $(GO) build -o $(GOBIN)/windows_amd64 $(GOFLAGS) -trimpath -ldflags '$(LDFLAGS)' ./cmd/...
 endif
 
-build: setup-go-work build-linux build-windows build-osx
+build: setup-go-work
+	$(GO) build -v $(GOFLAGS) $(GO_LINKER_FLAGS) -o mattermost cmd/mattermost/*.go
 
 build-cmd: setup-go-work build-cmd-linux build-cmd-windows build-cmd-osx
 
Index: mattermost/config/config.json
--- mattermost/config/config.json.orig	2022-06-13 19:00:41.000000000 +0200
+++ mattermost/config/config.json	2022-06-16 18:15:38.169198000 +0200
@@ -1,9 +1,9 @@
 {
   "ServiceSettings": {
-    "SiteURL": "",
+    "SiteURL": "http://localhost:8080/",
     "WebsocketURL": "",
     "LicenseFileLocation": "",
-    "ListenAddress": ":8065",
+    "ListenAddress": "127.0.0.1:8080",
     "ConnectionSecurity": "",
     "TLSCertFile": "",
     "TLSKeyFile": "",
@@ -131,7 +131,7 @@
   },
   "SqlSettings": {
     "DriverName": "postgres",
-    "DataSource": "postgres://mmuser:mostest@localhost/mattermost_test?sslmode=disable\u0026connect_timeout=10\u0026binary_parameters=yes",
+    "DataSource": "postgresql://mattermost:mattermost@127.0.0.1/mattermost?sslmode=disable\u0026connect_timeout=10\u0026binary_parameters=yes",
     "DataSourceReplicas": [],
     "DataSourceSearchReplicas": [],
     "MaxIdleConns": 20,
@@ -194,7 +194,7 @@
     "MaxFileSize": 104857600,
     "MaxImageResolution": 33177600,
     "DriverName": "local",
-    "Directory": "./data/",
+    "Directory": "@l_prefix@/var/mattermost/data-fs/",
     "EnablePublicLink": false,
     "ExtractContent": true,
     "ArchiveRecursion": false,
@@ -218,15 +218,15 @@
     "SendEmailNotifications": false,
     "UseChannelInEmailNotifications": false,
     "RequireEmailVerification": false,
-    "FeedbackName": "",
-    "FeedbackEmail": "",
-    "ReplyToAddress": "",
-    "FeedbackOrganization": "",
+    "FeedbackName": "Mattermost",
+    "FeedbackEmail": "mattermost@example.com",
+    "ReplyToAddress": "mattermost@example.com",
+    "FeedbackOrganization": "Example Corp.",
     "EnableSMTPAuth": false,
     "SMTPUsername": "",
     "SMTPPassword": "",
-    "SMTPServer": "",
-    "SMTPPort": "10025",
+    "SMTPServer": "127.0.0.1",
+    "SMTPPort": "25",
     "SMTPServerTimeout": 10,
     "ConnectionSecurity": "",
     "SendPushNotifications": true,
@@ -236,7 +236,7 @@
     "EnableEmailBatching": false,
     "EmailBatchingBufferSize": 256,
     "EmailBatchingInterval": 30,
-    "EnablePreviewModeBanner": true,
+    "EnablePreviewModeBanner": false,
     "SkipServerCertificateVerification": false,
     "EmailNotificationContentsType": "full",
     "LoginButtonColor": "#0000",
@@ -372,7 +372,7 @@
   },
   "ComplianceSettings": {
     "Enable": false,
-    "Directory": "./data/",
+    "Directory": "@_prefix@/var/mattermost/data-fs/",
     "EnableDaily": false,
     "BatchSize": 30000
   },
@@ -464,9 +464,9 @@
     "MaxUsersForStatistics": 2500
   },
   "ElasticsearchSettings": {
-    "ConnectionURL": "http://localhost:9200",
+    "ConnectionUrl": "http://127.0.0.1:9200",
     "Username": "elastic",
-    "Password": "changeme",
+    "Password": "elastic",
     "EnableIndexing": false,
     "EnableSearching": false,
     "EnableAutocomplete": false,
@@ -529,8 +529,8 @@
     "EnableUploads": false,
     "AllowInsecureDownloadURL": false,
     "EnableHealthCheck": true,
-    "Directory": "./plugins",
-    "ClientDirectory": "./client/plugins",
+    "Directory": "@l_prefix@/lib/mattermost/plugins",
+    "ClientDirectory": "@l_prefix@/etc/mattermost/plugins",
     "Plugins": {},
     "PluginStates": {
       "com.mattermost.apps": {
@@ -612,4 +612,4 @@
     "Directory": "./export",
     "RetentionDays": 30
   }
-}
\ No newline at end of file
+}
