# -*- 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                sgwi
version             1.1.2
categories          www mail php
license             GPL
maintainers         mathiesen.info:macintosh

description         web-interface to SQLGrey
long_description    sgwi is a web-interface to SQLGrey (SQLGrey is a greylister for Postfix). \
                    This web-interface enables you to edit the white- and blacklists as well \
                    as the current state of the greylist.

homepage            http://www.vanheusden.com/sgwi/

master_sites        ${homepage}
distname            sqlgreywebinterface-${version}
extract.suffix      .tgz

platforms           darwin freebsd
depends_run         port:php5-web \
                    port:sqlgrey

checksums           sha1    998d1644c29553c88ddb76dabf84baa79a753527 \
                    rmd160  18ee684ebbc3558696da66ea10187212a97193ca

use_configure       no

build               {}
supported_archs     noarch

destroot.violate_mtree yes

destroot {
    set docpath ${prefix}/www/${name}
    xinstall -m 755 -d ${destroot}${docpath}/html
    eval file copy [glob ${workpath}/${distname}/*] ${destroot}${docpath}/html
    move ${destroot}${docpath}/html/includes/config.inc.php \
        ${destroot}${docpath}/html/includes/default-config.inc.php
}