# -*- 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                squirrelmail
version             1.4.22
categories          www mail php
license             GPL
maintainers         snc openmaintainer

description         A webmail system which accesses mail over IMAP
long_description    SquirrelMail is a standards-based webmail package written \
                    in PHP4. It includes built-in pure PHP support for the \
                    IMAP and SMTP protocols, and all pages render in pure HTML \
                    4.0 (with no JavaScript) for maximum compatibility across \
                    browsers. It has very few requirements and is very easy to \
                    configure and install. SquirrelMail has all the \
                    functionality you would want from an email client, \
                    including strong MIME support, address books, and folder \
                    manipulation.
homepage            http://squirrelmail.org

platforms           darwin freebsd
supported_archs     noarch
depends_run         port:php5-web \
                    port:php5-gettext \
                    port:php5-mbstring \
                    port:php5-pspell

use_bzip2           yes
master_sites        sourceforge
distname            ${name}-webmail-${version}

checksums           rmd160  08c2aff84a3750dc6f0704a0105bc42a74966eb0 \
                    sha256  2231578d0f9abeae52bc4e461a6773d78762f20a27e1e2fbebc1a11ccd1af877

use_configure       no

build               {}

set docpath ${destroot}${prefix}/www/${name}

destroot {
    xinstall -m 755 -d ${docpath}
    eval file copy [glob ${workpath}/${distname}/*] ${docpath}
}

livecheck.url       ${homepage}/download.php
livecheck.regex     ${name}-webmail-(\\d+\\.\\d+\\.\\d+)${extract.suffix}