From eada7a7946d27055b465f28dd9a6abcf37d8325b Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 11 Jan 2023 18:51:42 +0800 Subject: [PATCH] make redis install work --- projects/redis.io/package.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/projects/redis.io/package.yml b/projects/redis.io/package.yml index fd527814..79a14003 100644 --- a/projects/redis.io/package.yml +++ b/projects/redis.io/package.yml @@ -8,7 +8,8 @@ versions: provides: - bin/redis-server - # - etc/redis.conf + - bin/redis-cli + - bin/redis-benchmark dependencies: openssl.org: ^1 @@ -17,25 +18,14 @@ build: dependencies: gnu.org/make: '>=4.3' freedesktop.org/pkg-config: '>=0.29' + tea.xyz/gx/cc: c99 script: PREFIX={{prefix}} BUILD_TLS=yes make install - # todo: - # where to put redis.conf ? .tea/redis.io/etc? - - # %w[run db/redis log].each { |p| (var/p).mkpath } - - # # Fix up default conf file to match our paths - # inreplace "redis.conf" do |s| - # s.gsub! "/var/run/redis.pid", var/"run/redis.pid" - # s.gsub! "dir ./", "dir #{var}/db/redis/" - # s.sub!(/^bind .*$/, "bind 127.0.0.1 ::1") - # end - - # etc.install "redis.conf" - # etc.install "sentinel.conf" => "redis-sentinel.conf" + # TODO: configure default redis.conf if necessary test: script: | redis-server --test-memory 2 - # %w[run db/redis log].each { |p| assert_predicate var/p, :exist?, "#{var/p} doesn't exist!" } \ No newline at end of file + redis-cli --version + redis-benchmark --version \ No newline at end of file