# -*- 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: Portfile 64483 2010-03-07 15:34:42Z snc@macports.org $

PortSystem          1.0

name                squirrelmail
version             1.4.20
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
depends_run         port:php5-web \
                    port:php5-gettext \
                    port:php5-mbstring \
                    port:php5-pspell

use_bzip2           yes
master_sites        sourceforge
checksums           md5     76aa7963e67edc7cea2be919f51ded72 \
                    sha1    ea1f8911961685393da2872739a060e0cf1f03f3 \
                    rmd160  aa4e7f97a0f9eddc207d0f390c6f25dd1e69c16a

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}-(\\d+\\.\\d+\\.\\d+)${extract.suffix}
