<NME> gitlab.rb
<BEF> 
name "gitlab"
maintainer "CHANGE ME"
homepage "CHANGEME.com"

replaces        "gitlab"
install_path    "/opt/gitlab"
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
dependency "preparation"

# gitlab dependencies/components
# dependency "somedep"

# version manifest file
dependency "version-manifest"
require "#{Omnibus::Config.project_root}/lib/gitlab/build_iteration"
require "#{Omnibus::Config.project_root}/lib/gitlab/build/info"
require "#{Omnibus::Config.project_root}/lib/gitlab/version"
require "#{Omnibus::Config.project_root}/lib/gitlab/util"
require "#{Omnibus::Config.project_root}/lib/gitlab/ohai_helper.rb"
require "#{Omnibus::Config.project_root}/lib/gitlab/openssl_helper"

gitlab_package_name = Build::Info.package
gitlab_package_file = File.join(Omnibus::Config.project_dir, 'gitlab', "#{gitlab_package_name}.rb")

# Include package specific details like package name and descrption (for gitlab-ee/gitlab-ce/etc)
instance_eval(IO.read(gitlab_package_file), gitlab_package_file, 1)

# Include all other known gitlab packages in our replace/conflict list to allow transitioning between packages
Dir.glob(File.join(Omnibus::Config.project_dir, 'gitlab', '*.rb')).each do |filename|
  other_package = File.basename(filename, '.rb')
  next if other_package == gitlab_package_name

  replace other_package
  conflict other_package
end

license 'MIT'
license_compiled_output true

# Replace older omnibus-gitlab packages
replace         'gitlab'
conflict        'gitlab'

install_dir     '/opt/gitlab'

# This is a hack to make a distinction between nightly versions
# See https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1500
#
# This will be resolved as part of
# https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1007
#
# Also check lib/gitlab/build.rb for Docker version forming
build_version Build::Info.semver_version
build_iteration Gitlab::BuildIteration.new.build_iteration

# Openssh needs to be installed

if suse?
  runtime_dependency 'openssh'
else
  runtime_dependency 'openssh-server'
end

# perl is required for exiftool and openssh certificate hashing

runtime_dependency 'perl'

if rhel?
  case OhaiHelper.get_centos_version
  when '6', '7'
    runtime_dependency 'policycoreutils-python'
  when '8'
    runtime_dependency 'policycoreutils-python-utils'
  end
end

runtime_dependency 'policycoreutils-python' if amazon? && OhaiHelper.get_amazon_version == '2'

# Arm targets need libatomic
if OhaiHelper.arm?
  if rhel? || amazon?
    runtime_dependency 'libatomic'
  else
    runtime_dependency 'libatomic1'
  end
end

# FIPs requires system OpenSSL packages to run
if Build::Check.use_system_ssl?
  if rhel?
    runtime_dependency 'openssl-perl'
  else
    runtime_dependency 'openssl'
  end
end

dependency 'cacerts'
dependency 'redis'
dependency 'nginx'
dependency 'mixlib-log'
dependency 'chef-zero'
dependency 'ohai'
dependency 'chef-gem'
dependency 'chef-bin'
dependency 'remote-syslog'
dependency 'logrotate'
dependency 'runit'
dependency 'go-crond'
dependency 'docker-distribution-pruner'

dependency 'mail_room'
dependency 'grafana-dashboards'
if Build::Check.include_ee?
  dependency 'consul'
  dependency 'pgbouncer-exporter'
  dependency 'spamcheck'
  dependency 'spam-classifier'
end
dependency 'alertmanager'
dependency 'node-exporter'
dependency 'redis-exporter'
dependency 'postgres-exporter'
dependency 'prometheus'
dependency 'grafana'
dependency 'gitlab-exporter'
dependency 'mattermost'

# Components that depend on the contents of this repository tends to dirty the
# cache frequently than vendored components.
if Build::Check.include_ee?
  dependency 'gitlab-ctl-ee'
  dependency 'gitlab-geo-psql'
  dependency 'gitlab-pg-ctl'
end
dependency 'gitlab-cookbooks'
dependency 'chef-acme'
dependency 'gitlab-ctl'
dependency 'gitlab-psql'
dependency 'gitlab-redis-cli'
dependency 'gitlab-healthcheck'
dependency 'gitlab-selinux'
dependency 'gitlab-scripts'
dependency 'gitlab-config-template'

# Build GitLab components at the end because except for tag pipelines, we build
# from `main`/`master`, and this can invalidate cache easily. Git is built from
# gitaly sources, and hence falls under the same category.
dependency 'gitlab-elasticsearch-indexer' if Build::Check.include_ee?

dependency 'gitlab-kas'
dependency 'gitlab-shell'
dependency 'gitlab-pages'
dependency 'git'

# gitaly needs grpc to work correctly. These native extensions are built as part
# of gitlab-rails build. So, gitlab-rails has to be built before gitaly. But
# making gitaly depend on gitlab-rails will cause it to be built earlier,
# because of the ordering omnibus applies to transitive dependencies.  Building
# gitlab-rails earlier in the sequence is a problem as we expect this component to
# churn a lot, invalidating the build cache for later component builds.
# https://github.com/chef/omnibus/blob/master/docs/Build%20Cache.md
dependency 'gitlab-rails'
dependency 'gitaly'
dependency 'ruby-grpc' if Build::Check.use_system_ssl?

# Package scripts
dependency 'package-scripts'
# version manifest file
dependency 'version-manifest'

if Build::Check.use_system_ssl?
  OpenSSLHelper.allowed_libs.each do |lib|
    allowed_lib /#{lib}\.so/
  end
end

exclude "\.git*"
exclude "bundler\/git"

# don't ship static libraries or header files
exclude 'embedded/lib/**/*.a'
exclude 'embedded/lib/**/*.la'
exclude 'embedded/include'

# exclude manpages and documentation
exclude 'embedded/man'
exclude 'embedded/share/doc'
exclude 'embedded/share/gtk-doc'
exclude 'embedded/share/info'
exclude 'embedded/share/man'

# exclude rubygems build cache
exclude 'embedded/lib/ruby/gems/*/cache'

# exclude test and some vendor folders
exclude 'embedded/lib/ruby/gems/*/gems/*/spec'
exclude 'embedded/lib/ruby/gems/*/gems/*/test'
exclude 'embedded/lib/ruby/gems/*/gems/*/tests'
# Some vendor folders (e.g. licensee) are needed by GitLab.
# For now, exclude the most space-consuming gems until
# there's a better way to whitelist directories.
exclude 'embedded/lib/ruby/gems/*/gems/rugged*/vendor'
exclude 'embedded/lib/ruby/gems/*/gems/ace-rails*/vendor'
exclude 'embedded/lib/ruby/gems/*/gems/libyajl2*/**/vendor'

# exclude gem build logs
exclude 'embedded/lib/ruby/gems/*/extensions/*/*/*/mkmf.log'
exclude 'embedded/lib/ruby/gems/*/extensions/*/*/*/gem_make.out'

# # exclude C sources
exclude 'embedded/lib/ruby/gems/*/gems/*/ext/*.c'
exclude 'embedded/lib/ruby/gems/*/gems/*/ext/*/*.c'
exclude 'embedded/lib/ruby/gems/*/gems/*/ext/*.o'
exclude 'embedded/lib/ruby/gems/*/gems/*/ext/*/*.o'

# # exclude other gem files
exclude 'embedded/lib/ruby/gems/*/gems/*/*.gemspec'
exclude 'embedded/lib/ruby/gems/*/gems/*/*.md'
exclude 'embedded/lib/ruby/gems/*/gems/*/*.rdoc'
exclude 'embedded/lib/ruby/gems/*/gems/*/*.sh'
exclude 'embedded/lib/ruby/gems/*/gems/*/*.txt'
exclude 'embedded/lib/ruby/gems/*/gems/*/*.ruby'
exclude 'embedded/lib/ruby/gems/*/gems/*/*LICENSE*'
exclude 'embedded/lib/ruby/gems/*/gems/*/CHANGES*'
exclude 'embedded/lib/ruby/gems/*/gems/*/Gemfile'
exclude 'embedded/lib/ruby/gems/*/gems/*/Guardfile'
exclude 'embedded/lib/ruby/gems/*/gems/*/README*'
exclude 'embedded/lib/ruby/gems/*/gems/*/Rakefile'
exclude 'embedded/lib/ruby/gems/*/gems/*/run_tests.rb'

exclude 'embedded/lib/ruby/gems/*/gems/*/Documentation'
exclude 'embedded/lib/ruby/gems/*/gems/*/bench'
exclude 'embedded/lib/ruby/gems/*/gems/*/contrib'
exclude 'embedded/lib/ruby/gems/*/gems/*/doc'
exclude 'embedded/lib/ruby/gems/*/gems/*/doc-api'
exclude 'embedded/lib/ruby/gems/*/gems/*/examples'
exclude 'embedded/lib/ruby/gems/*/gems/*/fixtures'
exclude 'embedded/lib/ruby/gems/*/gems/*/gemfiles'
exclude 'embedded/lib/ruby/gems/*/gems/*/libtest'
exclude 'embedded/lib/ruby/gems/*/gems/*/man'
exclude 'embedded/lib/ruby/gems/*/gems/*/sample_documents'
exclude 'embedded/lib/ruby/gems/*/gems/*/samples'
exclude 'embedded/lib/ruby/gems/*/gems/*/sample'
exclude 'embedded/lib/ruby/gems/*/gems/*/script'
exclude 'embedded/lib/ruby/gems/*/gems/*/t'

# Exclude additional files from specific gems
exclude 'embedded/lib/ruby/gems/*/gems/grpc-*/include'
exclude 'embedded/lib/ruby/gems/*/gems/grpc-*/src/core'
exclude 'embedded/lib/ruby/gems/*/gems/grpc-*/src/ruby/ext'
exclude 'embedded/lib/ruby/gems/*/gems/grpc-*/src/ruby/spec'
exclude 'embedded/lib/ruby/gems/*/gems/grpc-*/third_party'
exclude 'embedded/lib/ruby/gems/*/gems/nokogumbo-*/ext'
exclude 'embedded/lib/ruby/gems/*/gems/rbtrace-*/ext/src'
exclude 'embedded/lib/ruby/gems/*/gems/rbtrace-*/ext/dst'
exclude 'embedded/lib/ruby/gems/*/gems/*pg_query-*/ext'

# Exclude exe files from Python libraries
exclude 'embedded/lib/python*/**/*.exe'
# Exclude whl files from Python libraries.
exclude 'embedded/lib/python*/**/*.whl'

# Enable signing packages
package :rpm do
  vendor 'GitLab, Inc. <support@gitlab.com>'
  signing_passphrase Gitlab::Util.get_env('GPG_PASSPHRASE')
end

package :deb do
  vendor 'GitLab, Inc. <support@gitlab.com>'
  signing_passphrase Gitlab::Util.get_env('GPG_PASSPHRASE')
end

resources_path "#{Omnibus::Config.project_root}/resources"

# Our package scripts are generated from .erb files,
# so we will grab them from an excluded folder
package_scripts_path "#{install_dir}/.package_util/package-scripts"
exclude '.package_util'

# Exclude Python cache and distribution info
exclude 'embedded/lib/python*/**/*.dist-info'
exclude 'embedded/lib/python*/**/*.egg-info'
exclude 'embedded/lib/python*/**/__pycache__'

# exclude Spamcheck application source and libraries
exclude 'embedded/service/spamcheck/app'

package_user 'root'
package_group 'root'

<MSG> Add maintainer, homepage

<DFF> @@ -1,7 +1,7 @@
 
 name "gitlab"
-maintainer "CHANGE ME"
-homepage "CHANGEME.com"
+maintainer "Achilleas Pipinellis"
+homepage "http://gitlab.org"
 
 replaces        "gitlab"
 install_path    "/opt/gitlab"
@@ -12,7 +12,7 @@ build_iteration 1
 dependency "preparation"
 
 # gitlab dependencies/components
-# dependency "somedep"
+dependency "gitlab"
 
 # version manifest file
 dependency "version-manifest"

{'commit': 'diff --git a/config/projects/gitlab.rb b/config/projects/gitlab.rb\nindex c311b1c1a..4ddd8de59 100644\n--- a/config/projects/gitlab.rb\n+++ b/config/projects/gitlab.rb\n@@ -1,7 +1,7 @@\n \n name "gitlab"\n-maintainer "CHANGE ME"\n-homepage "CHANGEME.com"\n+maintainer "Achilleas Pipinellis"\n+homepage "http://gitlab.org"\n \n replaces        "gitlab"\n install_path    "/opt/gitlab"\n@@ -12,7 +12,7 @@ build_iteration 1\n dependency "preparation"\n \n # gitlab dependencies/components\n-# dependency "somedep"\n+dependency "gitlab"\n \n # version manifest file\n dependency "version-manifest"\n', 'commit_subject': 'Add maintainer, homepage', 'repo_name': 'gitlabhq/omnibus-gitlab', 'committer': {'name': 'Achilleas Pipinellis', 'email': 'a2755757b6615b69508df2334461edf313036459@archlinux.gr', 'time_sec': '1385034420', 'tz_offset': '120', 'date': {'seconds': '1385034420'}}, 'commit_tree': '7bbcb252c21a95ddf28dc2291330f37976d09c1f', 'commit_message': 'Add maintainer, homepage\n', 'language_name': 'HTML', 'license': 'apache-2.0', 'hunks': '@@ -1,7 +1,7 @@\n \n name "gitlab"\n-maintainer "CHANGE ME"\n-homepage "CHANGEME.com"\n+maintainer "Achilleas Pipinellis"\n+homepage "http://gitlab.org"\n \n replaces        "gitlab"\n install_path    "/opt/gitlab"\n@@ -12,7 +12,7 @@ build_iteration 1\n dependency "preparation"\n \n # gitlab dependencies/components\n-# dependency "somedep"\n+dependency "gitlab"\n \n # version manifest file\n dependency "version-manifest"\n', 'addition_count': 3, 'deletion_count': 3, 'src_file': 'a/config/projects/gitlab.rb', 'tgt_file': 'b/config/projects/gitlab.rb', 'file_extension': '.rb', 'before_file': '\nname "gitlab"\nmaintainer "CHANGE ME"\nhomepage "CHANGEME.com"\n\nreplaces        "gitlab"\ninstall_path    "/opt/gitlab"\n##\n## http://www.apache.org/licenses/LICENSE-2.0\n##\n## Unless required by applicable law or agreed to in writing, software\ndependency "preparation"\n\n# gitlab dependencies/components\n# dependency "somedep"\n\n# version manifest file\ndependency "version-manifest"\nrequire "#{Omnibus::Config.project_root}/lib/gitlab/build_iteration"\nrequire "#{Omnibus::Config.project_root}/lib/gitlab/build/info"\nrequire "#{Omnibus::Config.project_root}/lib/gitlab/version"\nrequire "#{Omnibus::Config.project_root}/lib/gitlab/util"\nrequire "#{Omnibus::Config.project_root}/lib/gitlab/ohai_helper.rb"\nrequire "#{Omnibus::Config.project_root}/lib/gitlab/openssl_helper"\n\ngitlab_package_name = Build::Info.package\ngitlab_package_file = File.join(Omnibus::Config.project_dir, \'gitlab\', "#{gitlab_package_name}.rb")\n\n# Include package specific details like package name and descrption (for gitlab-ee/gitlab-ce/etc)\ninstance_eval(IO.read(gitlab_package_file), gitlab_package_file, 1)\n\n# Include all other known gitlab packages in our replace/conflict list to allow transitioning between packages\nDir.glob(File.join(Omnibus::Config.project_dir, \'gitlab\', \'*.rb\')).each do |filename|\n  other_package = File.basename(filename, \'.rb\')\n  next if other_package == gitlab_package_name\n\n  replace other_package\n  conflict other_package\nend\n\nlicense \'MIT\'\nlicense_compiled_output true\n\n# Replace older omnibus-gitlab packages\nreplace         \'gitlab\'\nconflict        \'gitlab\'\n\ninstall_dir     \'/opt/gitlab\'\n\n# This is a hack to make a distinction between nightly versions\n# See https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1500\n#\n# This will be resolved as part of\n# https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1007\n#\n# Also check lib/gitlab/build.rb for Docker version forming\nbuild_version Build::Info.semver_version\nbuild_iteration Gitlab::BuildIteration.new.build_iteration\n\n# Openssh needs to be installed\n\nif suse?\n  runtime_dependency \'openssh\'\nelse\n  runtime_dependency \'openssh-server\'\nend\n\n# perl is required for exiftool and openssh certificate hashing\n\nruntime_dependency \'perl\'\n\nif rhel?\n  case OhaiHelper.get_centos_version\n  when \'6\', \'7\'\n    runtime_dependency \'policycoreutils-python\'\n  when \'8\'\n    runtime_dependency \'policycoreutils-python-utils\'\n  end\nend\n\nruntime_dependency \'policycoreutils-python\' if amazon? && OhaiHelper.get_amazon_version == \'2\'\n\n# Arm targets need libatomic\nif OhaiHelper.arm?\n  if rhel? || amazon?\n    runtime_dependency \'libatomic\'\n  else\n    runtime_dependency \'libatomic1\'\n  end\nend\n\n# FIPs requires system OpenSSL packages to run\nif Build::Check.use_system_ssl?\n  if rhel?\n    runtime_dependency \'openssl-perl\'\n  else\n    runtime_dependency \'openssl\'\n  end\nend\n\ndependency \'cacerts\'\ndependency \'redis\'\ndependency \'nginx\'\ndependency \'mixlib-log\'\ndependency \'chef-zero\'\ndependency \'ohai\'\ndependency \'chef-gem\'\ndependency \'chef-bin\'\ndependency \'remote-syslog\'\ndependency \'logrotate\'\ndependency \'runit\'\ndependency \'go-crond\'\ndependency \'docker-distribution-pruner\'\n\ndependency \'mail_room\'\ndependency \'grafana-dashboards\'\nif Build::Check.include_ee?\n  dependency \'consul\'\n  dependency \'pgbouncer-exporter\'\n  dependency \'spamcheck\'\n  dependency \'spam-classifier\'\nend\ndependency \'alertmanager\'\ndependency \'node-exporter\'\ndependency \'redis-exporter\'\ndependency \'postgres-exporter\'\ndependency \'prometheus\'\ndependency \'grafana\'\ndependency \'gitlab-exporter\'\ndependency \'mattermost\'\n\n# Components that depend on the contents of this repository tends to dirty the\n# cache frequently than vendored components.\nif Build::Check.include_ee?\n  dependency \'gitlab-ctl-ee\'\n  dependency \'gitlab-geo-psql\'\n  dependency \'gitlab-pg-ctl\'\nend\ndependency \'gitlab-cookbooks\'\ndependency \'chef-acme\'\ndependency \'gitlab-ctl\'\ndependency \'gitlab-psql\'\ndependency \'gitlab-redis-cli\'\ndependency \'gitlab-healthcheck\'\ndependency \'gitlab-selinux\'\ndependency \'gitlab-scripts\'\ndependency \'gitlab-config-template\'\n\n# Build GitLab components at the end because except for tag pipelines, we build\n# from `main`/`master`, and this can invalidate cache easily. Git is built from\n# gitaly sources, and hence falls under the same category.\ndependency \'gitlab-elasticsearch-indexer\' if Build::Check.include_ee?\n\ndependency \'gitlab-kas\'\ndependency \'gitlab-shell\'\ndependency \'gitlab-pages\'\ndependency \'git\'\n\n# gitaly needs grpc to work correctly. These native extensions are built as part\n# of gitlab-rails build. So, gitlab-rails has to be built before gitaly. But\n# making gitaly depend on gitlab-rails will cause it to be built earlier,\n# because of the ordering omnibus applies to transitive dependencies.  Building\n# gitlab-rails earlier in the sequence is a problem as we expect this component to\n# churn a lot, invalidating the build cache for later component builds.\n# https://github.com/chef/omnibus/blob/master/docs/Build%20Cache.md\ndependency \'gitlab-rails\'\ndependency \'gitaly\'\ndependency \'ruby-grpc\' if Build::Check.use_system_ssl?\n\n# Package scripts\ndependency \'package-scripts\'\n# version manifest file\ndependency \'version-manifest\'\n\nif Build::Check.use_system_ssl?\n  OpenSSLHelper.allowed_libs.each do |lib|\n    allowed_lib /#{lib}\\.so/\n  end\nend\n\nexclude "\\.git*"\nexclude "bundler\\/git"\n\n# don\'t ship static libraries or header files\nexclude \'embedded/lib/**/*.a\'\nexclude \'embedded/lib/**/*.la\'\nexclude \'embedded/include\'\n\n# exclude manpages and documentation\nexclude \'embedded/man\'\nexclude \'embedded/share/doc\'\nexclude \'embedded/share/gtk-doc\'\nexclude \'embedded/share/info\'\nexclude \'embedded/share/man\'\n\n# exclude rubygems build cache\nexclude \'embedded/lib/ruby/gems/*/cache\'\n\n# exclude test and some vendor folders\nexclude \'embedded/lib/ruby/gems/*/gems/*/spec\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/test\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/tests\'\n# Some vendor folders (e.g. licensee) are needed by GitLab.\n# For now, exclude the most space-consuming gems until\n# there\'s a better way to whitelist directories.\nexclude \'embedded/lib/ruby/gems/*/gems/rugged*/vendor\'\nexclude \'embedded/lib/ruby/gems/*/gems/ace-rails*/vendor\'\nexclude \'embedded/lib/ruby/gems/*/gems/libyajl2*/**/vendor\'\n\n# exclude gem build logs\nexclude \'embedded/lib/ruby/gems/*/extensions/*/*/*/mkmf.log\'\nexclude \'embedded/lib/ruby/gems/*/extensions/*/*/*/gem_make.out\'\n\n# # exclude C sources\nexclude \'embedded/lib/ruby/gems/*/gems/*/ext/*.c\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/ext/*/*.c\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/ext/*.o\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/ext/*/*.o\'\n\n# # exclude other gem files\nexclude \'embedded/lib/ruby/gems/*/gems/*/*.gemspec\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/*.md\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/*.rdoc\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/*.sh\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/*.txt\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/*.ruby\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/*LICENSE*\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/CHANGES*\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/Gemfile\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/Guardfile\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/README*\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/Rakefile\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/run_tests.rb\'\n\nexclude \'embedded/lib/ruby/gems/*/gems/*/Documentation\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/bench\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/contrib\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/doc\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/doc-api\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/examples\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/fixtures\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/gemfiles\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/libtest\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/man\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/sample_documents\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/samples\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/sample\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/script\'\nexclude \'embedded/lib/ruby/gems/*/gems/*/t\'\n\n# Exclude additional files from specific gems\nexclude \'embedded/lib/ruby/gems/*/gems/grpc-*/include\'\nexclude \'embedded/lib/ruby/gems/*/gems/grpc-*/src/core\'\nexclude \'embedded/lib/ruby/gems/*/gems/grpc-*/src/ruby/ext\'\nexclude \'embedded/lib/ruby/gems/*/gems/grpc-*/src/ruby/spec\'\nexclude \'embedded/lib/ruby/gems/*/gems/grpc-*/third_party\'\nexclude \'embedded/lib/ruby/gems/*/gems/nokogumbo-*/ext\'\nexclude \'embedded/lib/ruby/gems/*/gems/rbtrace-*/ext/src\'\nexclude \'embedded/lib/ruby/gems/*/gems/rbtrace-*/ext/dst\'\nexclude \'embedded/lib/ruby/gems/*/gems/*pg_query-*/ext\'\n\n# Exclude exe files from Python libraries\nexclude \'embedded/lib/python*/**/*.exe\'\n# Exclude whl files from Python libraries.\nexclude \'embedded/lib/python*/**/*.whl\'\n\n# Enable signing packages\npackage :rpm do\n  vendor \'GitLab, Inc. <support@gitlab.com>\'\n  signing_passphrase Gitlab::Util.get_env(\'GPG_PASSPHRASE\')\nend\n\npackage :deb do\n  vendor \'GitLab, Inc. <support@gitlab.com>\'\n  signing_passphrase Gitlab::Util.get_env(\'GPG_PASSPHRASE\')\nend\n\nresources_path "#{Omnibus::Config.project_root}/resources"\n\n# Our package scripts are generated from .erb files,\n# so we will grab them from an excluded folder\npackage_scripts_path "#{install_dir}/.package_util/package-scripts"\nexclude \'.package_util\'\n\n# Exclude Python cache and distribution info\nexclude \'embedded/lib/python*/**/*.dist-info\'\nexclude \'embedded/lib/python*/**/*.egg-info\'\nexclude \'embedded/lib/python*/**/__pycache__\'\n\n# exclude Spamcheck application source and libraries\nexclude \'embedded/service/spamcheck/app\'\n\npackage_user \'root\'\npackage_group \'root\'\n', 'message': 'Add maintainer, homepage\n', 'author_name': 'Achilleas Pipinellis', 'lang': 'rb'}