# -*- 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

name                sgwi
version             1.1.2
categories          www mail php
license             GPL
maintainers         nomaintainer

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            https://www.vanheusden.com/sgwi/

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

platforms           any
depends_run         port:php5-web \
                    port:sqlgrey

checksums           rmd160  18ee684ebbc3558696da66ea10187212a97193ca \
                    sha256  60f45f9e1ba2f040e1d403825eadbdd5a5659e4c08915f5d3dacbc99f3971bf0 \
                    size    8806

use_configure       no

build               {}
supported_archs     noarch

destroot.violate_mtree yes

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

livecheck.name      sqlgreywebinterface
