# -*- 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 PortSystem 1.0 PortGroup muniversal 1.0 name redis version 4.0.10 categories databases platforms darwin license BSD maintainers nomaintainer 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 \ size 1738465 patchfiles patch-redis.conf.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/redis.conf } use_configure no if {![variant_isset universal]} { build.args-append \ CC="${configure.cc} [get_canonical_archflags cc]" } else { foreach arch ${configure.universal_archs} { lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}' } } # disable silent rules build.args-append V=1 # use jemalloc build.args-append MALLOC=jemalloc destroot.keepdirs ${destroot}${prefix}/var/db/redis if {![variant_isset universal]} { destroot.args-append PREFIX=${destroot}${prefix} } else { foreach arch ${configure.universal_archs} { lappend merger_destroot_args(${arch}) PREFIX=${destroot}-${arch}${prefix} } } post-destroot { 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.regex ${name}-(\\d+.\\d+.\\d+)