# -*- 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
description Redis is an open source, advanced key-value store.
long_description ${description}
homepage https://redis.io/
master_sites http://download.redis.io/releases/
checksums rmd160 0b8261062f8e75da08574308d9ee152b55f7008a \
sha256 1db67435a704f8d18aec9b9637b373c34aa233d65b6e174bdac4c1b161f38ca4 \
patchfiles patch-redis.conf.diff
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/redis.conf
if {![variant_isset universal]} {
CC="${configure.cc} [get_canonical_archflags cc]"
foreach arch ${configure.universal_archs} {
lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}'
build.args-append MALLOC=jemalloc
destroot.keepdirs ${destroot}${prefix}/var/db/redis
if {![variant_isset universal]} {
destroot.args-append PREFIX=${destroot}${prefix}
foreach arch ${configure.universal_archs} {
lappend merger_destroot_args(${arch}) PREFIX=${destroot}-${arch}${prefix}
xinstall -m 0644 ${worksrcpath}/redis.conf \
${destroot}${prefix}/etc/redis.conf.sample
if {![file exists ${prefix}/etc/redis.conf]} {
file copy ${prefix}/etc/redis.conf.sample ${prefix}/etc/redis.conf
xinstall -d ${prefix}/var/log
touch ${prefix}/var/log/redis.log
startupitem.executable ${prefix}/bin/redis-server ${prefix}/etc/redis.conf
If you prefer to start a redis server manually, rather than using 'port load', then use this command:
redis-server ${prefix}/etc/redis.conf
livecheck.regex ${name}-(\\d+.\\d+.\\d+)