# -*- 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 2.6.14 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 googlecode:redis checksums rmd160 16acfec8a3462dab9e7ee5dd4182ca4fcc68966a \ sha256 fdf61c693e5c4908b4bb44c428d4a2b7568f05566c144c58fdf19c5cb12a9caf 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 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 "