summaryrefslogtreecommitdiff
path: root/homebrew/redisat40/.beer
blob: af9edb0a6d0296a59d7fdd4987ba9bba9a476489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
    "name": "RedisAT40",
    "description": "Persistent key-value database, with built-in net interface",
    "url": "https://github.com/antirez/redis/archive/4.0.14.tar.gz",
    "mirror": null,
    "homepage": "https://redis.io/",
    "depends": [],
    "resource": [],
    "conflicts": [],
    "patches": [],
    "install": [
        "ENV[\"OBJARCH\"] = \"-arch #{MacOS.preferred_arch}\"",
        "system \"make\", \"install\", \"PREFIX=#{prefix}\", \"CC=#{ENV.cc}\"",
        "%w[run db/redis log].each { |p| (var/p).mkpath }",
        "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\""
    ],
    "version": "4.0.14",
    "file": "redis@4.0.rb"
}