# -*- 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 92278 2012-04-23 19:44:23Z jmr@macports.org $

PortSystem          1.0

name                postfixadmin
version             2.3.3
categories          www mail php
license             GPL-2+
maintainers         mathiesen.info:macintosh

description         Web Based Management tool for Postfix
long_description    Postfix Admin is a Web Based Management tool created for Postfix. It is \
                    a PHP based application that handles Postfix Style Virtual Domains and \
                    Users that are stored in MySQL.
homepage            http://postfixadmin.sourceforge.net/
master_sites        sourceforge:project/${name}/${name}/${name}-${version}

platforms           darwin freebsd
depends_run         port:php5 \
                    port:mysql5 \
                    port:apache2 \
                    port:postfix

checksums           sha1    4417c73d7c4d0423fbcec8491bf7ca72184ce2cf \
                    rmd160  3ac67e58f35669b859c25e479e3457bfa2b8f0d3

use_configure       no

build               {}
supported_archs     noarch

destroot.violate_mtree yes

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