source: trunk/dports/databases/redis/Portfile @ 132642

Last change on this file since 132642 was 125872, checked in by stromnov@…, 5 years ago

redis: update to version 2.8.17

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 125872 2014-09-28 19:50:15Z stromnov@macports.org $
3
4PortSystem          1.0
5
6name                redis
7version             2.8.17
8categories          databases
9platforms           darwin
10license             BSD
11
12maintainers         gmail.com:brianjlandau openmaintainer
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  fe5fcae795ccdde552707c0286124c8903d4cec0 \
21                    sha256  53c7cc639571729fa57d7baa7f81aec1d5886f86bac9c66f6ad06dbdaee236a7
22
23patchfiles          patch-redis.conf.diff
24
25post-patch {
26    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/redis.conf
27}
28
29use_configure       no
30
31variant universal {}
32
33build.args-append   CC="${configure.cc} [get_canonical_archflags cc]"
34
35# disable silent rules
36build.args-append   V=1
37
38destroot.keepdirs   ${destroot}${prefix}/var/db/redis
39
40destroot {
41    xinstall -d ${destroot}${prefix}/var/db/redis
42    xinstall -m 0755 -W ${worksrcpath}/src \
43        redis-benchmark \
44        redis-check-aof \
45        redis-check-dump \
46        redis-cli \
47        redis-server \
48        ${destroot}${prefix}/bin
49    xinstall -m 0644 ${worksrcpath}/redis.conf \
50        ${destroot}${prefix}/etc/redis.conf.sample
51}
52
53post-activate {
54    if {![file exists ${prefix}/etc/redis.conf]} {
55        file copy ${prefix}/etc/redis.conf.sample ${prefix}/etc/redis.conf
56    }
57    xinstall -d ${prefix}/var/log
58    touch ${prefix}/var/log/redis.log
59}
60
61startupitem.create  yes
62startupitem.executable  ${prefix}/bin/redis-server ${prefix}/etc/redis.conf
63
64notes "
65If you prefer to start a redis server manually, rather than using 'port load', then use this command:
66
67    redis-server ${prefix}/etc/redis.conf
68"
69
70livecheck.url       http://download.redis.io/releases/
71livecheck.regex     ${name}-(\\d+.\\d+.\\d+)
Note: See TracBrowser for help on using the repository browser.