# -*- 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 # $Id$ PortSystem 1.0 name redis version 3.0.2 categories databases platforms darwin license BSD maintainers gmail.com:brianjlandau openmaintainer description Redis is an open source, advanced key-value store. long_description ${description} homepage http://redis.io/ master_sites http://download.redis.io/releases/ checksums rmd160 e89b14ff93f35ed3f64e16a3e8c46d832a315275 \ sha256 93e422c0d584623601f89b956045be158889ebe594478a2c24e1bf218495633f patchfiles patch-redis.conf.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/redis.conf } use_configure no variant universal {} build.args-append CC="${configure.cc} [get_canonical_archflags cc]" # disable silent rules build.args-append V=1 # use jemalloc build.args-append MALLOC=jemalloc destroot.keepdirs ${destroot}${prefix}/var/db/redis destroot { xinstall -d ${destroot}${prefix}/var/db/redis xinstall -m 0755 -W ${worksrcpath}/src \ redis-benchmark \ redis-check-aof \ redis-check-dump \ redis-cli \ redis-server \ ${destroot}${prefix}/bin xinstall -m 0644 ${worksrcpath}/redis.conf \ ${destroot}${prefix}/etc/redis.conf.sample } post-activate { 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.create yes startupitem.executable ${prefix}/bin/redis-server ${prefix}/etc/redis.conf notes " 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.url http://download.redis.io/releases/ livecheck.regex ${name}-(\\d+.\\d+.\\d+)