# -*- 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               legacysupport 1.1
PortGroup               muniversal 1.0

# _getline
legacysupport.newest_darwin_requires_legacy 10

name                    memcached-devel
conflicts               memcached
set my_name             memcached

version                 1.6.15
revision                0
checksums               rmd160  f19517e6ac7ae14bd40f6a81c091c91d942f2d3c \
                        sha256  8d7abe3d649378edbba16f42ef1d66ca3f2ac075f2eb97145ce164388e6ed515 \
                        size    1051109

categories              sysutils
license                 BSD
maintainers             nomaintainer

description             A high performance, distributed memory object caching system.
long_description        Memcached is a high-performance, distributed memory object \
                        caching system, generic in nature, but intended for use in \
                        speeding up dynamic web applications by alleviating database load.

homepage                https://memcached.org/
master_sites            ${homepage}files/
distname                ${my_name}-${version}
dist_subdir             ${my_name}

installs_libs           no

configure.args          --with-libevent=${prefix}

depends_lib             port:libevent

patchfiles-append       patch-configure.diff

startupitem.create      yes
startupitem.executable  ${prefix}/bin/memcached -u nobody -m 64 -c 10240 -p 11211

variant sasl description {enable SASL authentication} {
    depends_lib-append      port:cyrus-sasl2
    configure.args-append   --enable-sasl
}

livecheck.type  regex
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+){2,})\\.
