SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
41
databases/ruby-redis/patches/patch-Rakefile
Normal file
41
databases/ruby-redis/patches/patch-Rakefile
Normal file
|
@ -0,0 +1,41 @@
|
|||
--- Rakefile.orig Wed Feb 11 13:21:18 2015
|
||||
+++ Rakefile Fri Feb 13 09:39:06 2015
|
||||
@@ -1,14 +1,12 @@
|
||||
require "rake/testtask"
|
||||
|
||||
-ENV["REDIS_BRANCH"] ||= "unstable"
|
||||
-
|
||||
REDIS_DIR = File.expand_path(File.join("..", "test"), __FILE__)
|
||||
REDIS_CNF = File.join(REDIS_DIR, "test.conf")
|
||||
REDIS_CNF_TEMPLATE = File.join(REDIS_DIR, "test.conf.erb")
|
||||
REDIS_PID = File.join(REDIS_DIR, "db", "redis.pid")
|
||||
REDIS_LOG = File.join(REDIS_DIR, "db", "redis.log")
|
||||
REDIS_SOCKET = File.join(REDIS_DIR, "db", "redis.sock")
|
||||
-BINARY = "tmp/redis-#{ENV["REDIS_BRANCH"]}/src/redis-server"
|
||||
+BINARY = ENV.fetch("REDIS_BINARY")
|
||||
|
||||
task :default => :run
|
||||
|
||||
@@ -48,22 +46,7 @@ end
|
||||
|
||||
desc "Clean up testing artifacts"
|
||||
task :clean do
|
||||
- FileUtils.rm_f(BINARY)
|
||||
FileUtils.rm_f(REDIS_CNF)
|
||||
-end
|
||||
-
|
||||
-file BINARY do
|
||||
- branch = ENV.fetch("REDIS_BRANCH")
|
||||
-
|
||||
- sh <<-SH
|
||||
- mkdir -p tmp;
|
||||
- cd tmp;
|
||||
- rm -rf redis-#{branch};
|
||||
- wget https://github.com/antirez/redis/archive/#{branch}.tar.gz -O #{branch}.tar.gz;
|
||||
- tar xf #{branch}.tar.gz;
|
||||
- cd redis-#{branch};
|
||||
- make
|
||||
- SH
|
||||
end
|
||||
|
||||
file REDIS_CNF => [REDIS_CNF_TEMPLATE, __FILE__] do |t|
|
|
@ -0,0 +1,11 @@
|
|||
--- test/publish_subscribe_test.rb.orig Wed Feb 11 13:21:18 2015
|
||||
+++ test/publish_subscribe_test.rb Fri Feb 13 08:25:04 2015
|
||||
@@ -235,7 +235,7 @@ class TestPublishSubscribe < Test::Unit::TestCase
|
||||
def test_subscribe_past_a_timeout
|
||||
# For some reason, a thread here doesn't reproduce the issue.
|
||||
sleep = %{sleep #{OPTIONS[:timeout] * 2}}
|
||||
- publish = %{ruby -rsocket -e 't=TCPSocket.new("127.0.0.1",#{OPTIONS[:port]});t.write("publish foo bar\\r\\n");t.read(4);t.close'}
|
||||
+ publish = %{${LOCALBASE}/bin/ruby${GEM_BIN_SUFFIX} -rsocket -e 't=TCPSocket.new("127.0.0.1",#{OPTIONS[:port]});t.write("publish foo bar\\r\\n");t.read(4);t.close'}
|
||||
cmd = [sleep, publish].join("; ")
|
||||
|
||||
IO.popen(cmd, "r+") do |pipe|
|
Loading…
Add table
Add a link
Reference in a new issue