mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
make redis install work
This commit is contained in:
parent
00f1665c60
commit
eada7a7946
1 changed files with 6 additions and 16 deletions
|
@ -8,7 +8,8 @@ versions:
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/redis-server
|
- bin/redis-server
|
||||||
# - etc/redis.conf
|
- bin/redis-cli
|
||||||
|
- bin/redis-benchmark
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
openssl.org: ^1
|
openssl.org: ^1
|
||||||
|
@ -17,25 +18,14 @@ build:
|
||||||
dependencies:
|
dependencies:
|
||||||
gnu.org/make: '>=4.3'
|
gnu.org/make: '>=4.3'
|
||||||
freedesktop.org/pkg-config: '>=0.29'
|
freedesktop.org/pkg-config: '>=0.29'
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
script:
|
script:
|
||||||
PREFIX={{prefix}}
|
PREFIX={{prefix}}
|
||||||
BUILD_TLS=yes
|
BUILD_TLS=yes
|
||||||
make install
|
make install
|
||||||
# todo:
|
# TODO: configure default redis.conf if necessary
|
||||||
# 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"
|
|
||||||
test:
|
test:
|
||||||
script: |
|
script: |
|
||||||
redis-server --test-memory 2
|
redis-server --test-memory 2
|
||||||
# %w[run db/redis log].each { |p| assert_predicate var/p, :exist?, "#{var/p} doesn't exist!" }
|
redis-cli --version
|
||||||
|
redis-benchmark --version
|
Loading…
Reference in a new issue