Skip to content

Commit

Permalink
Add software definition for KeyDB
Browse files Browse the repository at this point in the history
Signed-off-by: poorndm <poorndm@progress.com>

Add dependency openssl to fix ssl.c compilation issue

Signed-off-by: poorndm <poorndm@progress.com>

Add dependency libuuid  to fix server.cpp compilation issue

Signed-off-by: poorndm <poorndm@progress.com>
  • Loading branch information
poorndm committed Jul 10, 2024
1 parent 28c9c9f commit 96c1669
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions config/software/keydb.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# Copyright:: 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 "keydb"

license "BSD-3-Clause"
license_file "COPYING"
skip_transitive_dependency_licensing true

dependency "config_guess"
dependency "openssl"
dependency "libuuid"

default_version "6.3.4"

source url: "https://github.com/Snapchat/KeyDB/archive/refs/tags/v#{version}.tar.gz"
# internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
# authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
relative_path "KeyDB-#{version}"

# version_list: url=https://github.com/Snapchat/KeyDB/archive/refs/tags/ filter=*.tar.gz
version("6.3.4") { source sha256: "229190b251f921e05aff7b0d2f04b5676c198131e2abbec1e2cfb2e61215e2f3" }

build do
env = with_standard_compiler_flags(with_embedded_path)
env["CFLAGS"] << " -I#{install_dir}/embedded/include"
env["LDFLAGS"] << " -L#{install_dir}/embedded/lib"

update_config_guess

command "make" , env: env
command "make install", env: env
end

0 comments on commit 96c1669

Please sign in to comment.