<NME> mattermost.rb
<BEF> #
## Copyright:: Copyright (c) 2015 GitLab B.V.
## License:: Apache License, Version 2.0
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
#

name "mattermost"
default_version "v0.7.0"

source url: "https://github.com/mattermost/platform/releases/download/#{version}/mattermost.tar.gz",
       md5: '92348d916d80a8f288f2507665f89349'

build do
  move "bin/platform", "#{install_dir}/embedded/bin/mattermost"
license_path = File.join(install_dir, 'embedded/service/mattermost', license_name)

  command "#{install_dir}/embedded/bin/rsync -a --delete ./api/templates #{install_dir}/embedded/service/mattermost/api/"
  command "#{install_dir}/embedded/bin/rsync -a --delete ./web/static #{install_dir}/embedded/service/mattermost/web/"
  command "#{install_dir}/embedded/bin/rsync -a --delete ./web/templates #{install_dir}/embedded/service/mattermost/web/"
end

GitLab Mattermost Compiled License
(MIT with Trademark Protection)

**Note: this license does not cover source code, for information on source code licensing see http://www.mattermost.org/license/

Copyright (c) 2015 Mattermost, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software;
The receiver of the Software will not remove or alter any product identification, trademark, copyright or other notices embedded within or appearing within or on the Software;

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

EOH

<MSG> Add GitLab Mattermost license. Bump Mattermost version to 0.7.1

<DFF> @@ -17,10 +17,10 @@
 #
 
 name "mattermost"
-default_version "v0.7.0"
+default_version "v0.7.1"
 
 source url: "https://github.com/mattermost/platform/releases/download/#{version}/mattermost.tar.gz",
-       md5: '92348d916d80a8f288f2507665f89349'
+       md5: '0d5329fadb87dfe60a6b9a189782c3b6'
 
 build do
   move "bin/platform", "#{install_dir}/embedded/bin/mattermost"
@@ -29,4 +29,25 @@ build do
   command "#{install_dir}/embedded/bin/rsync -a --delete ./api/templates #{install_dir}/embedded/service/mattermost/api/"
   command "#{install_dir}/embedded/bin/rsync -a --delete ./web/static #{install_dir}/embedded/service/mattermost/web/"
   command "#{install_dir}/embedded/bin/rsync -a --delete ./web/templates #{install_dir}/embedded/service/mattermost/web/"
+
+  license_name = "GITLAB-MATTERMOST-COMPILED-LICENSE.txt"
+  license_path = File.join(install_dir, "embedded/service/mattermost", license_name)
+
+  File.open(license_path, 'w') { |f| f.write(GITLAB_MATTERMOST_COMPILED_LICENSE) }
 end
+
+GITLAB_MATTERMOST_COMPILED_LICENSE = <<-EOH
+
+GitLab Mattermost Compiled License
+(MIT with Trademark Protection)
+
+**Note: this license does not cover source code, for information on source code licensing see http://www.mattermost.org/license/
+
+Copyright (c) 2015 Spinpunch, Inc.
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software;
+The receiver of the Software will not remove or alter any product identification, trademark, copyright or other notices embedded within or appearing within or on the Software;
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+EOH

{'commit': 'diff --git a/config/software/mattermost.rb b/config/software/mattermost.rb\nindex 89e07c4e9..07a85e203 100644\n--- a/config/software/mattermost.rb\n+++ b/config/software/mattermost.rb\n@@ -17,10 +17,10 @@\n #\n \n name "mattermost"\n-default_version "v0.7.0"\n+default_version "v0.7.1"\n \n source url: "https://github.com/mattermost/platform/releases/download/#{version}/mattermost.tar.gz",\n-       md5: \'92348d916d80a8f288f2507665f89349\'\n+       md5: \'0d5329fadb87dfe60a6b9a189782c3b6\'\n \n build do\n   move "bin/platform", "#{install_dir}/embedded/bin/mattermost"\n@@ -29,4 +29,25 @@ build do\n   command "#{install_dir}/embedded/bin/rsync -a --delete ./api/templates #{install_dir}/embedded/service/mattermost/api/"\n   command "#{install_dir}/embedded/bin/rsync -a --delete ./web/static #{install_dir}/embedded/service/mattermost/web/"\n   command "#{install_dir}/embedded/bin/rsync -a --delete ./web/templates #{install_dir}/embedded/service/mattermost/web/"\n+\n+  license_name = "GITLAB-MATTERMOST-COMPILED-LICENSE.txt"\n+  license_path = File.join(install_dir, "embedded/service/mattermost", license_name)\n+\n+  File.open(license_path, \'w\') { |f| f.write(GITLAB_MATTERMOST_COMPILED_LICENSE) }\n end\n+\n+GITLAB_MATTERMOST_COMPILED_LICENSE = <<-EOH\n+\n+GitLab Mattermost Compiled License\n+(MIT with Trademark Protection)\n+\n+**Note: this license does not cover source code, for information on source code licensing see http://www.mattermost.org/license/\n+\n+Copyright (c) 2015 Spinpunch, Inc.\n+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n+\n+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software;\n+The receiver of the Software will not remove or alter any product identification, trademark, copyright or other notices embedded within or appearing within or on the Software;\n+\n+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n+EOH\n', 'commit_subject': 'Add GitLab Mattermost license. Bump Mattermost version to 0.7.1', 'repo_name': 'gitlabhq/omnibus-gitlab', 'committer': {'name': 'Marin Jankovski', 'email': '96ea72f2b85b51a19e1dab9b514b3918b06a89af@gmail.com', 'time_sec': '1441961273', 'tz_offset': '120', 'date': {'seconds': '1441961273'}}, 'commit_tree': '5d8c52931e35c6c315dc4052d8effbd265946d02', 'commit_message': 'Add GitLab Mattermost license. Bump Mattermost version to 0.7.1\n', 'language_name': 'JavaScript', 'license': 'apache-2.0', 'hunks': '@@ -17,10 +17,10 @@\n #\n \n name "mattermost"\n-default_version "v0.7.0"\n+default_version "v0.7.1"\n \n source url: "https://github.com/mattermost/platform/releases/download/#{version}/mattermost.tar.gz",\n-       md5: \'92348d916d80a8f288f2507665f89349\'\n+       md5: \'0d5329fadb87dfe60a6b9a189782c3b6\'\n \n build do\n   move "bin/platform", "#{install_dir}/embedded/bin/mattermost"\n@@ -29,4 +29,25 @@ build do\n   command "#{install_dir}/embedded/bin/rsync -a --delete ./api/templates #{install_dir}/embedded/service/mattermost/api/"\n   command "#{install_dir}/embedded/bin/rsync -a --delete ./web/static #{install_dir}/embedded/service/mattermost/web/"\n   command "#{install_dir}/embedded/bin/rsync -a --delete ./web/templates #{install_dir}/embedded/service/mattermost/web/"\n+\n+  license_name = "GITLAB-MATTERMOST-COMPILED-LICENSE.txt"\n+  license_path = File.join(install_dir, "embedded/service/mattermost", license_name)\n+\n+  File.open(license_path, \'w\') { |f| f.write(GITLAB_MATTERMOST_COMPILED_LICENSE) }\n end\n+\n+GITLAB_MATTERMOST_COMPILED_LICENSE = <<-EOH\n+\n+GitLab Mattermost Compiled License\n+(MIT with Trademark Protection)\n+\n+**Note: this license does not cover source code, for information on source code licensing see http://www.mattermost.org/license/\n+\n+Copyright (c) 2015 Spinpunch, Inc.\n+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n+\n+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software;\n+The receiver of the Software will not remove or alter any product identification, trademark, copyright or other notices embedded within or appearing within or on the Software;\n+\n+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n+EOH\n', 'addition_count': 23, 'deletion_count': 2, 'src_file': 'a/config/software/mattermost.rb', 'tgt_file': 'b/config/software/mattermost.rb', 'file_extension': '.rb', 'before_file': '#\n## Copyright:: Copyright (c) 2015 GitLab B.V.\n## License:: Apache License, Version 2.0\n##\n## Licensed under the Apache License, Version 2.0 (the "License");\n## you may not use this file except in compliance with the License.\n## You may obtain a copy of the License at\n##\n## http://www.apache.org/licenses/LICENSE-2.0\n##\n## Unless required by applicable law or agreed to in writing, software\n## distributed under the License is distributed on an "AS IS" BASIS,\n## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n## See the License for the specific language governing permissions and\n## limitations under the License.\n##\n#\n\nname "mattermost"\ndefault_version "v0.7.0"\n\nsource url: "https://github.com/mattermost/platform/releases/download/#{version}/mattermost.tar.gz",\n       md5: \'92348d916d80a8f288f2507665f89349\'\n\nbuild do\n  move "bin/platform", "#{install_dir}/embedded/bin/mattermost"\nlicense_path = File.join(install_dir, \'embedded/service/mattermost\', license_name)\n\n  command "#{install_dir}/embedded/bin/rsync -a --delete ./api/templates #{install_dir}/embedded/service/mattermost/api/"\n  command "#{install_dir}/embedded/bin/rsync -a --delete ./web/static #{install_dir}/embedded/service/mattermost/web/"\n  command "#{install_dir}/embedded/bin/rsync -a --delete ./web/templates #{install_dir}/embedded/service/mattermost/web/"\nend\n\nGitLab Mattermost Compiled License\n(MIT with Trademark Protection)\n\n**Note: this license does not cover source code, for information on source code licensing see http://www.mattermost.org/license/\n\nCopyright (c) 2015 Mattermost, Inc.\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software;\nThe receiver of the Software will not remove or alter any product identification, trademark, copyright or other notices embedded within or appearing within or on the Software;\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nEOH\n', 'message': 'Add GitLab Mattermost license. Bump Mattermost version to 0.7.1\n', 'author_name': 'Marin Jankovski', 'lang': 'rb'}