Skip to content
Snippets Groups Projects
Commit 0ffa7164 authored by Balasankar C's avatar Balasankar C
Browse files

Vendor all necessary software definitions

parent bef79732
No related branches found
No related tags found
1 merge request!1207Vendor all software definitions
Showing
with 882 additions and 11 deletions
Loading
Loading
@@ -5,7 +5,6 @@ require_relative "lib/gitlab/version"
omnibus_gem_version = Gitlab::Version.new('omnibus', "omnibus-5-4-0")
 
gem 'omnibus', git: omnibus_gem_version.remote, branch: omnibus_gem_version.print(false)
gem 'omnibus-software', :git => 'git://github.com/opscode/omnibus-software.git', :branch => 'master'
gem 'ohai'
gem 'package_cloud'
gem 'thor', '0.18.1' # This specific version is required by package_cloud
Loading
Loading
GIT
remote: git://github.com/opscode/omnibus-software.git
revision: dee0513e5234d5e42e9d0bdac90b1ba2d7876e7a
branch: master
specs:
omnibus-software (4.0.0)
chef-sugar (>= 3.4.0)
omnibus (>= 5.2.0)
GIT
remote: https://dev.gitlab.org/gitlab/omnibus.git
revision: a07663531cd734f123f069affc1a7245d971b80c
Loading
Loading
@@ -194,7 +185,6 @@ DEPENDENCIES
knapsack
ohai
omnibus!
omnibus-software!
package_cloud
rake
rspec
Loading
Loading
#
# Copyright 2012-2016 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 "bundler"
license "MIT"
license_file "https://raw.githubusercontent.com/bundler/bundler/master/LICENSE.md"
dependency "rubygems"
build do
env = with_standard_compiler_flags(with_embedded_path)
v_opts = "--version '#{version}'" unless version.nil?
gem [
"install bundler",
v_opts,
"--no-ri --no-rdoc",
].compact.join(" "), env: env
end
#
# 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.
#
# Install bzip2 and its shared library, libbz2.so
# This library object is required for building Python with the bz2 module,
# and should be picked up automatically when building Python.
name "bzip2"
default_version "1.0.6"
license "BSD-2-Clause"
license_file "LICENSE"
dependency "zlib"
dependency "openssl"
version "1.0.6" do
source md5: "00b516f4704d4a7cb50a1d97e6e8e15b"
end
source url: "http://www.bzip.org/#{version}/#{name}-#{version}.tar.gz"
relative_path "#{name}-#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path)
# Avoid warning where .rodata cannot be used when making a shared object
env["CFLAGS"] << " -fPIC"
# The list of arguments to pass to make
args = "PREFIX='#{install_dir}/embedded' VERSION='#{version}'"
patch source: "makefile_take_env_vars.patch", env: env
patch source: "soname_install_dir.patch", env: env if mac_os_x?
make "#{args}", env: env
make "#{args} -f Makefile-libbz2_so", env: env
make "#{args} install", env: env
end
#
# Copyright 2012-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 "chef-gem"
default_version "11.12.2"
license "Apache-2.0"
license_file "https://github.com/chef/chef/blob/master/LICENSE"
dependency "ruby"
dependency "rubygems"
dependency "libffi"
dependency "rb-readline"
build do
env = with_standard_compiler_flags(with_embedded_path)
gem "install chef" \
" --version '#{version}'" \
" --bindir '#{install_dir}/embedded/bin'" \
" --no-ri --no-rdoc", env: env
end
#
# Copyright 2015 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 "config_guess"
default_version "master"
# occasionally http protocol downloads get 500s, so we use git://
source git: "git://git.sv.gnu.org/config.git"
# http://savannah.gnu.org/projects/config
license "GPL-3.0 (with exception)"
license_file "config.guess"
license_file "config.sub"
relative_path "config_guess-#{version}"
build do
mkdir "#{install_dir}/embedded/lib/config_guess"
copy "#{project_dir}/config.guess", "#{install_dir}/embedded/lib/config_guess/config.guess"
copy "#{project_dir}/config.sub", "#{install_dir}/embedded/lib/config_guess/config.sub"
end
#
# Copyright 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 "expat"
default_version "2.1.0"
relative_path "expat-#{version}"
dependency "config_guess"
license "MIT"
license_file "COPYING"
skip_transitive_dependency_licensing true
source url: "http://downloads.sourceforge.net/project/expat/expat/#{version}/expat-#{version}.tar.gz",
md5: "dd7dab7a5fea97d2a6a43f511449b7cd"
build do
env = with_standard_compiler_flags(with_embedded_path)
update_config_guess(target: "conftools")
command "./configure" \
" --prefix=#{install_dir}/embedded", env: env
make "-j #{workers}", env: env
make "install", env: env
end
# Copyright 2012-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 "libedit"
default_version "20120601-3.0"
license "BSD-3-Clause"
license_file "COPYING"
dependency "ncurses"
dependency "config_guess"
version("20150325-3.1") { source md5: "43cdb5df3061d78b5e9d59109871b4f6" }
version("20141030-3.1") { source md5: "5f18e63346d31b877cdf36b5c59b810b" }
version("20130712-3.1") { source md5: "0891336c697362727a1fa7e60c5cb96c" }
version("20120601-3.0") { source md5: "e50f6a7afb4de00c81650f7b1a0f5aea" }
source url: "http://www.thrysoee.dk/editline/libedit-#{version}.tar.gz"
if version == "20141030-3.1"
# released tar file has name discrepency in folder name for this version
relative_path "libedit-20141029-3.1"
else
relative_path "libedit-#{version}"
end
build do
env = with_standard_compiler_flags(with_embedded_path)
# The patch is from the FreeBSD ports tree and is for GCC compatibility.
# http://svnweb.freebsd.org/ports/head/devel/libedit/files/patch-vi.c?annotate=300896
if version.to_i < 20150325 && (freebsd? || openbsd?)
patch source: "freebsd-vi-fix.patch", env: env
end
if openbsd?
patch source: "openbsd-weak-alias-fix.patch", plevel: 1, env: env
end
update_config_guess
command "./configure" \
" --prefix=#{install_dir}/embedded", env: env
make "-j #{workers}", env: env
make "-j #{workers} install", env: env
end
#
# Copyright 2012-2015 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 "libffi"
default_version "3.2.1"
license "MIT"
license_file "LICENSE"
# Is libtool actually necessary? Doesn't configure generate one?
dependency "libtool" unless windows?
version("3.0.13") { source md5: "45f3b6dbc9ee7c7dfbbbc5feba571529" }
version("3.2.1") { source md5: "83b89587607e3eb65c70d361f13bab43" }
source url: "ftp://sourceware.org/pub/libffi/libffi-#{version}.tar.gz"
relative_path "libffi-#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path)
env["INSTALL"] = "/opt/freeware/bin/install" if aix?
configure_command = []
# AIX's old version of patch doesn't like the patch here
unless aix?
# Patch to disable multi-os-directory via configure flag (don't use /lib64)
# Works on all platforms, and is compatible on 32bit platforms as well
if version == "3.2.1"
patch source: "libffi-3.2.1-disable-multi-os-directory.patch", plevel: 1, env: env
configure_command << "--disable-multi-os-directory"
end
end
configure(*configure_command, env: env)
if solaris_10?
# run old make :(
make env: env, bin: "/usr/ccs/bin/make"
make "install", env: env, bin: "/usr/ccs/bin/make"
else
make "-j #{workers}", env: env
make "-j #{workers} install", env: env
end
# libffi's default install location of header files is awful...
copy "#{install_dir}/embedded/lib/libffi-#{version}/include/*", "#{install_dir}/embedded/include"
end
#
# Copyright 2012-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.
#
# CAUTION - although its not used, external libraries such as nokogiri may pick up an optional dep on
# libiconv such that removal of libiconv will break those libraries on upgrade. With an better story around
# external gem handling when chef-client is upgraded libconv could be dropped.
name "libiconv"
default_version "1.14"
license "LGPL-2.1"
license_file "COPYING.LIB"
dependency "config_guess"
dependency "patch" if solaris_10?
source url: "https://ftp.gnu.org/pub/gnu/libiconv/libiconv-#{version}.tar.gz",
md5: "e34509b1623cec449dfeb73d7ce9c6c6"
relative_path "libiconv-#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path)
# freebsd 10 needs to be build PIC
env["CFLAGS"] << " -fPIC" if freebsd?
update_config_guess(target: "build-aux")
update_config_guess(target: "libcharset/build-aux")
if aix?
patch_env = env.dup
patch_env["PATH"] = "/opt/freeware/bin:#{env['PATH']}"
patch source: "libiconv-1.14_srclib_stdio.in.h-remove-gets-declarations.patch", env: patch_env
else
patch source: "libiconv-1.14_srclib_stdio.in.h-remove-gets-declarations.patch", env: env
end
if version == "1.14" && ppc64le?
patch source: "v1.14.ppc64le-ldemulation.patch", plevel: 1, env: env
end
configure(env: env)
pmake = "-j #{workers}"
make "#{pmake}", env: env
make "#{pmake} install-lib" \
" libdir=#{install_dir}/embedded/lib" \
" includedir=#{install_dir}/embedded/include", env: env
end
#
# Copyright 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 "liblzma"
default_version "5.2.2"
license "Public-Domain"
license_file "COPYING"
source url: "http://tukaani.org/xz/xz-#{version}.tar.gz",
md5: "7cf6a8544a7dae8e8106fdf7addfa28c"
relative_path "xz-#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path)
# liblzma properly uses CFLAGS for C compilation and CPPFLAGS for common
# flags used across tools such as windres. Don't put anything in it
# that can be misinterpreted by windres.
env["CPPFLAGS"] = "-I#{install_dir}/embedded/include" if windows?
config_command = [
"--disable-debug",
"--disable-dependency-tracking",
"--disable-doc",
"--disable-scripts",
]
config_command << "--disable-nls" if windows?
configure(*config_command, env: env)
make "install", env: env
end
#
# Copyright 2012-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 "libossp-uuid"
default_version "1.6.2"
license "MIT"
license_file "README"
dependency "config_guess"
version "1.6.2" do
source md5: "5db0d43a9022a6ebbbc25337ae28942f"
end
# ftp on ftp.ossp.org is unavaiable so we must use another mirror site.
source url: "https://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-#{version}.tar.gz"
relative_path "uuid-#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path)
update_config_guess
command "./configure" \
" --prefix=#{install_dir}/embedded", env: env
make "-j #{workers}", env: env
make "install", env: env
end
#
# Copyright 2012-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 "libtool"
default_version "2.4"
license "GPL-2.0"
license_file "COPYING"
dependency "config_guess"
# NOTE: 2.4.6 2.4.2 do not compile on solaris2 yet
version("2.4.6") { source md5: "addf44b646ddb4e3919805aa88fa7c5e" }
version("2.4.2") { source md5: "d2f3b7d4627e69e13514a40e72a24d50" }
version("2.4") { source md5: "b32b04148ecdd7344abc6fe8bd1bb021" }
source url: "https://ftp.gnu.org/gnu/libtool/libtool-#{version}.tar.gz"
relative_path "libtool-#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path)
update_config_guess
update_config_guess(target: "libltdl/config")
if aix?
env["M4"] = "/opt/freeware/bin/m4"
end
command "./configure" \
" --prefix=#{install_dir}/embedded", env: env
make env: env
make "install", env: env
end
#
# Copyright 2012-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 "libxml2"
default_version "2.9.4"
license "MIT"
license_file "COPYING"
dependency "zlib"
dependency "libiconv"
dependency "liblzma"
dependency "config_guess"
version "2.9.4" do
source md5: "ae249165c173b1ff386ee8ad676815f5"
end
version "2.9.3" do
source md5: "daece17e045f1c107610e137ab50c179"
end
source url: "ftp://xmlsoft.org/libxml2/libxml2-#{version}.tar.gz"
relative_path "libxml2-#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path)
configure_command = [
"--with-zlib=#{install_dir}/embedded",
"--with-iconv=#{install_dir}/embedded",
"--without-python",
"--without-icu",
]
# solaris 10 ipv6 support is broken due to no inet_ntop() in -lnsl
configure_command << "--enable-ipv6=no" if solaris_10?
update_config_guess
configure(*configure_command, env: env)
make "-j #{workers}", env: env
make "install", env: env
end
#
# Copyright 2012-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 "libxslt"
default_version "1.1.29"
license "MIT"
license_file "COPYING"
dependency "libxml2"
dependency "liblzma"
dependency "config_guess"
dependency "libtool" if solaris_10?
dependency "patch" if solaris_10?
version "1.1.29" do
source md5: "a129d3c44c022de3b9dcf6d6f288d72e"
end
source url: "ftp://xmlsoft.org/libxml2/libxslt-#{version}.tar.gz"
relative_path "libxslt-#{version}"
build do
update_config_guess
env = with_standard_compiler_flags(with_embedded_path)
patch source: "libxslt-solaris-configure.patch", env: env if solaris?
# the libxslt configure script iterates directories specified in
# --with-libxml-prefix looking for the libxml2 config script. That
# iteration treats colons as a delimiter so we are using a cygwin
# style path to accomodate
configure_commands = [
"--with-libxml-prefix=#{install_dir.sub('C:', '/C')}/embedded",
"--with-libxml-include-prefix=#{install_dir}/embedded/include",
"--with-libxml-libs-prefix=#{install_dir}/embedded/lib",
"--without-python",
"--without-crypto",
]
configure(*configure_commands, env: env)
if windows?
# Apply a post configure patch to prevent dll base address clash
patch source: "libxslt-windows-relocate.patch", env: env if windows?
end
make "-j #{workers}", env: env
make "install", env: env
end
#
# Copyright 2012-2015 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 "libyaml"
default_version "0.1.6"
license "MIT"
license_file "LICENSE"
dependency "config_guess"
source url: "http://pyyaml.org/download/libyaml/yaml-#{version}.tar.gz",
md5: "5fe00cda18ca5daeb43762b80c38e06e"
relative_path "yaml-#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path)
update_config_guess(target: "config")
configure "--enable-shared", env: env
# Windows had worse automake/libtool version issues.
# Just patch the output instead.
if version == "0.1.6" && windows?
patch source: "v0.1.6.windows-configure.patch", plevel: 1, env: env
end
make "-j #{workers}", env: env
make "-j #{workers} install", env: env
end
#
# 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"
source url: "https://github.com/logrotate/logrotate/archive/#{version}.tar.gz"
version "3.9.2" do
source md5: "584bca013dcceeb23b06b27d6d0342fb"
end
version "3.8.5" do
source md5: "d3c13e2a963a55c584cfaa83e96b173d",
url: "https://fedorahosted.org/releases/l/o/logrotate/logrotate-#{version}.tar.gz"
end
relative_path "logrotate-#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path).merge(
# Patch allows this to be set manually
"BASEDIR" => "#{install_dir}/embedded"
)
# These EXTRA_* vars allow us to append to the Makefile's hardcoded LDFLAGS
# and CFLAGS
env["EXTRA_LDFLAGS"] = env["LDFLAGS"]
env["EXTRA_CFLAGS"] = env["CFLAGS"]
patch source: "logrotate_basedir_override.patch", plevel: 0, env: env
make "-j #{workers}", env: env
# Yes, this is horrible. Due to how the makefile is structured, we need to
# specify PREFIX, *but not BASEDIR* in order to get this installed into
# +"#{install_dir}/embedded/sbin"+
make "install", env: { "PREFIX" => "#{install_dir}/embedded" }
end
#
# Copyright 2014 Chef, 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 "makedepend"
default_version "1.0.5"
license "MIT"
license_file "COPYING"
source url: "https://www.x.org/releases/individual/util/makedepend-1.0.5.tar.gz",
md5: "efb2d7c7e22840947863efaedc175747"
relative_path "makedepend-1.0.5"
dependency "xproto"
dependency "util-macros"
dependency "pkg-config-lite"
build do
env = with_standard_compiler_flags(with_embedded_path)
if solaris_10?
env["PKG_CONFIG"] = "#{install_dir}/embedded/bin/pkg-config"
end
command "./configure --prefix=#{install_dir}/embedded", env: env
make "-j #{workers}", env: env
make "-j #{workers} install", env: env
end
#
# Copyright 2012-2015 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 "omnibus-ctl"
default_version "0.3.6"
license "Apache-2.0"
license_file "https://github.com/chef/omnibus-ctl/blob/master/LICENSE"
dependency "ruby"
dependency "rubygems"
dependency "bundler"
source git: "https://github.com/chef/omnibus-ctl.git"
relative_path "omnibus-ctl"
build do
env = with_standard_compiler_flags(with_embedded_path)
# Remove existing built gems in case they exist in the current dir
delete "omnibus-ctl-*.gem"
gem "build omnibus-ctl.gemspec", env: env
gem "install omnibus-ctl-*.gem --no-rdoc --no-ri", env: env
touch "#{install_dir}/embedded/service/omnibus-ctl/.gitkeep"
end
#
# Copyright 2012-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 "pcre"
default_version "8.38"
license "BSD-2-Clause"
license_file "LICENCE"
dependency "libedit"
dependency "ncurses"
dependency "config_guess"
version "8.38" do
source md5: "8a353fe1450216b6655dfcf3561716d9"
end
version "8.31" do
source md5: "fab1bb3b91a4c35398263a5c1e0858c1"
end
source url: "http://downloads.sourceforge.net/project/pcre/pcre/#{version}/pcre-#{version}.tar.gz"
relative_path "pcre-#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path)
update_config_guess
command "./configure" \
" --prefix=#{install_dir}/embedded" \
" --disable-cpp" \
" --enable-utf" \
" --enable-unicode-properties" \
" --enable-pcretest-libedit", env: env
make "-j #{workers}", env: env
make "install", env: env
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment