# -*- 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.2.3 categories databases platforms darwin license BSD maintainers nomaintainer 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 ad82033f72e24458c9cf1cbb28996b2b7e173365 \ sha256 674e9c38472e96491b7d4f7b42c38b71b5acbca945856e209cb428fbc6135f15 patchfiles patch-redis.conf.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/redis.conf } use_configure no # configure: error: C preprocessor "/lib/cpp" fails sanity check #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-rdb \ redis-cli \ redis-server \ ${destroot}${prefix}/bin ln -s redis-server \ ${destroot}${prefix}/bin/redis-sentinel 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+)