<NME> logrotate.rb
<BEF> #
# Copyright 2013-2014 Chef Software, Inc.
#
# 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 'logrotate'
default_version '3.8.5'

license 'GPL-2.0'
license_file 'COPYING'

dependency 'popt'

version_path = version.tr('.', '-')
source url: "https://github.com/logrotate/logrotate/archive/r#{version_path}.tar.gz"

version '3.8.5' do
  source md5: '5078b2b10d7669a6b97cbb632730c994'
end

relative_path "logrotate-r#{version_path}"

build do
  env = with_standard_compiler_flags(with_embedded_path).merge(
build do
  env = with_standard_compiler_flags(with_embedded_path)

  command './autogen.sh', env: env
  command './configure' " --prefix=#{install_dir}/embedded --without-selinux", env: env
  make "-j #{workers}", env: env

  make 'install', env: env
end

<MSG> Updating logrotate config to use omnibus-mirror repository

<DFF> @@ -15,21 +15,15 @@
 #
 
 name 'logrotate'
-default_version '3.8.5'
+version = Gitlab::Version.new(name, 'r3-8-5')
+default_version version.print(prepend_version=false)
 
 license 'GPL-2.0'
 license_file 'COPYING'
 
 dependency 'popt'
 
-version_path = version.tr('.', '-')
-source url: "https://github.com/logrotate/logrotate/archive/r#{version_path}.tar.gz"
-
-version '3.8.5' do
-  source md5: '5078b2b10d7669a6b97cbb632730c994'
-end
-
-relative_path "logrotate-r#{version_path}"
+source git: version.remote
 
 build do
   env = with_standard_compiler_flags(with_embedded_path).merge(

{'commit': 'diff --git a/.custom_sources.yml b/.custom_sources.yml\nindex 700c08a88..ef51a7684 100644\n--- a/.custom_sources.yml\n+++ b/.custom_sources.yml\n@@ -26,6 +26,9 @@ postgres-exporter:\n   remote: "git@dev.gitlab.org:omnibus-mirror/postgres_exporter.git"\n redis-exporter:\n   remote: "git@dev.gitlab.org:omnibus-mirror/redis_exporter.git"\n+logrotate:\n+  remote: "git@dev.gitlab.org:omnibus-mirror/logrotate.git"\n+\n \n # For local builds, use the public repositories given below. They are mirrord\n # from the internal repositories that GitLab uses.\n@@ -58,3 +61,5 @@ redis-exporter:\n   #remote: "https://gitlab.com/omnibus-mirror/postgres_exporter.git"\n #redis-exporter:\n   #remote: "https://gitlab.com/omnibus-mirror/redis_exporter.git"\n+#logrotate:\n+  #remote: "https://gitlab.com/omnibus-mirror/logrotate.git"\ndiff --git a/config/software/logrotate.rb b/config/software/logrotate.rb\nindex 0486bf0dc..a6490f99d 100644\n--- a/config/software/logrotate.rb\n+++ b/config/software/logrotate.rb\n@@ -15,21 +15,15 @@\n #\n \n name \'logrotate\'\n-default_version \'3.8.5\'\n+version = Gitlab::Version.new(name, \'r3-8-5\')\n+default_version version.print(prepend_version=false)\n \n license \'GPL-2.0\'\n license_file \'COPYING\'\n \n dependency \'popt\'\n \n-version_path = version.tr(\'.\', \'-\')\n-source url: "https://github.com/logrotate/logrotate/archive/r#{version_path}.tar.gz"\n-\n-version \'3.8.5\' do\n-  source md5: \'5078b2b10d7669a6b97cbb632730c994\'\n-end\n-\n-relative_path "logrotate-r#{version_path}"\n+source git: version.remote\n \n build do\n   env = with_standard_compiler_flags(with_embedded_path).merge(\n', 'commit_subject': 'Updating logrotate config to use omnibus-mirror repository', 'repo_name': 'gitlabhq/omnibus-gitlab', 'committer': {'name': 'Ian Baum', 'email': '74a8510ab9a4c7c312651012ae5ff001a83f86dc@gitlab.com', 'time_sec': '1489173546', 'tz_offset': '-360', 'date': {'seconds': '1489173546'}}, 'commit_tree': '0da43f138515a045d61734ff4573cf6a867b6caa', 'commit_message': 'Updating logrotate config to use omnibus-mirror repository\n', 'language_name': 'JavaScript', 'license': 'apache-2.0', 'hunks': '@@ -15,21 +15,15 @@\n #\n \n name \'logrotate\'\n-default_version \'3.8.5\'\n+version = Gitlab::Version.new(name, \'r3-8-5\')\n+default_version version.print(prepend_version=false)\n \n license \'GPL-2.0\'\n license_file \'COPYING\'\n \n dependency \'popt\'\n \n-version_path = version.tr(\'.\', \'-\')\n-source url: "https://github.com/logrotate/logrotate/archive/r#{version_path}.tar.gz"\n-\n-version \'3.8.5\' do\n-  source md5: \'5078b2b10d7669a6b97cbb632730c994\'\n-end\n-\n-relative_path "logrotate-r#{version_path}"\n+source git: version.remote\n \n build do\n   env = with_standard_compiler_flags(with_embedded_path).merge(\n', 'addition_count': 3, 'deletion_count': 9, 'src_file': 'a/config/software/logrotate.rb', 'tgt_file': 'b/config/software/logrotate.rb', 'file_extension': '.rb', 'before_file': '#\n# Copyright 2013-2014 Chef Software, Inc.\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\nname \'logrotate\'\ndefault_version \'3.8.5\'\n\nlicense \'GPL-2.0\'\nlicense_file \'COPYING\'\n\ndependency \'popt\'\n\nversion_path = version.tr(\'.\', \'-\')\nsource url: "https://github.com/logrotate/logrotate/archive/r#{version_path}.tar.gz"\n\nversion \'3.8.5\' do\n  source md5: \'5078b2b10d7669a6b97cbb632730c994\'\nend\n\nrelative_path "logrotate-r#{version_path}"\n\nbuild do\n  env = with_standard_compiler_flags(with_embedded_path).merge(\nbuild do\n  env = with_standard_compiler_flags(with_embedded_path)\n\n  command \'./autogen.sh\', env: env\n  command \'./configure\' " --prefix=#{install_dir}/embedded --without-selinux", env: env\n  make "-j #{workers}", env: env\n\n  make \'install\', env: env\nend\n', 'message': 'Updating logrotate config to use omnibus-mirror repository\n', 'author_name': 'Ian Baum', 'lang': 'rb'}