Skip to content

Commit

Permalink
Add gems for ECC algorithm support.
Browse files Browse the repository at this point in the history
These definitions have been added to resolve build issues with ECC
algorithm support.

The bcyrpt_pbkdf gem currently link against shared libs which are not
installed on Cisco IOS-XR.

The rbnacl-libsodium gem currently fails to compile on Solaris for both
x86-64 and SPARC architectures.

Adding these definitions will allow us to selectively define the
supported platforms as well as provide a simple means to itterate on
patches as needed.

Signed-off-by: Ryan Hass <rhass@users.noreply.github.com>
Signed-off-by: Tom Duffield <tom@chef.io>
  • Loading branch information
rhass authored and tduffield committed Jan 19, 2017
1 parent e28530b commit 5a064eb
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
40 changes: 40 additions & 0 deletions config/software/bcrypt_pbkdf-ruby.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# Copyright 2012-2017 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 "bcrypt_pbkdf-ruby"
default_version "master"
relative_path "bcrypt_pbkdf"

source git: "https://github.com/mfazekas/bcrypt_pbkdf-ruby.git"

license "MIT"
license_file "COPYING"

dependency "ruby"
dependency "rubygems"
dependency "bundler"

build do
env = with_embedded_path()

bundle "install --without development", env: env
bundle "exec rake gem", env: env

delete "pkg/*java*"

gem "install pkg/bcrypt_pbkdf-*.gem" \
" --no-ri --no-rdoc", env: env
end
40 changes: 40 additions & 0 deletions config/software/rbnacl-libsodium.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# Copyright 2012-2017 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 "rbnacl-libsodium"
default_version "1.0.11"
relative_path "rbnacl-libsodium"

source git: "https://github.com/cryptosphere/rbnacl-libsodium.git"

license "MIT"
license_file "LICENSE"

dependency "ruby"
dependency "rubygems"
dependency "bundler"

build do
env = with_embedded_path()

bundle "install --without development_extras", env: env
bundle "exec rake gem", env: env

delete "pkg/*java*"

gem "install pkg/rbnacl-libsodium-*.gem" \
" --no-ri --no-rdoc", env: env
end

0 comments on commit 5a064eb

Please sign in to comment.