source: trunk/dports/databases/redis/Portfile

Last change on this file was 151930, checked in by ryandesign@…, 15 months ago

redis: update to 3.2.3 (#51337)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 151930 2016-08-24 05:48:42Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                redis
7version             3.2.3
8categories          databases
9platforms           darwin
10license             BSD
11
12maintainers         nomaintainer
13
14description         Redis is an open source, advanced key-value store.
15long_description    ${description}
16
17homepage            http://redis.io/
18master_sites        http://download.redis.io/releases/
19
20checksums           rmd160  ad82033f72e24458c9cf1cbb28996b2b7e173365 \
21                    sha256  674e9c38472e96491b7d4f7b42c38b71b5acbca945856e209cb428fbc6135f15
22
23patchfiles          patch-redis.conf.diff
24
25post-patch {
26    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/redis.conf
27}
28
29use_configure       no
30
31# configure: error: C preprocessor "/lib/cpp" fails sanity check
32#variant universal {}
33
34build.args-append   CC="${configure.cc} [get_canonical_archflags cc]"
35
36# disable silent rules
37build.args-append   V=1
38
39# use jemalloc
40build.args-append   MALLOC=jemalloc
41
42destroot.keepdirs   ${destroot}${prefix}/var/db/redis
43
44destroot {
45    xinstall -d ${destroot}${prefix}/var/db/redis
46    xinstall -m 0755 -W ${worksrcpath}/src \
47        redis-benchmark \
48        redis-check-aof \
49        redis-check-rdb \
50        redis-cli \
51        redis-server \
52        ${destroot}${prefix}/bin
53
54    ln -s redis-server \
55        ${destroot}${prefix}/bin/redis-sentinel
56
57    xinstall -m 0644 ${worksrcpath}/redis.conf \
58        ${destroot}${prefix}/etc/redis.conf.sample
59}
60
61post-activate {
62    if {![file exists ${prefix}/etc/redis.conf]} {
63        file copy ${prefix}/etc/redis.conf.sample ${prefix}/etc/redis.conf
64    }
65    xinstall -d ${prefix}/var/log
66    touch ${prefix}/var/log/redis.log
67}
68
69startupitem.create  yes
70startupitem.executable  ${prefix}/bin/redis-server ${prefix}/etc/redis.conf
71
72notes "
73If you prefer to start a redis server manually, rather than using 'port load', then use this command:
74
75    redis-server ${prefix}/etc/redis.conf
76"
77
78livecheck.url       http://download.redis.io/releases/
79livecheck.regex     ${name}-(\\d+.\\d+.\\d+)
Note: See TracBrowser for help on using the repository browser.