# -*- 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            mod_antispam
version         1.0
categories      www
license         Apache-2
platforms       darwin
maintainers     nomaintainer
description     mod_antispam is an apache2 module that can control spam access
long_description    ${description}

homepage        https://web.archive.org/web/20081008131724/http://bluecoara.net:80/item44/cat9.html
master_sites    https://web.archive.org/web/20081015053433/http://bluecoara.net/download/mod_antispam/
checksums       md5 d0903fc10c48927cd00fe041ab888136

depends_lib     port:apache2

patchfiles      apache_versions.diff

use_configure   no

set apxs        ${prefix}/bin/apxs
set mdir        ${destroot}${prefix}/lib/apache2/modules/

build.cmd       ${apxs}
build.target    {}
build.args      -c -o mod_antispam.so mod_antispam.c

destroot {
    xinstall -m 755 -d ${mdir} \
        ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/.libs/mod_antispam.so \
        ${mdir}
    xinstall -m 644 -W ${worksrcpath} AUTHORS CHANGES INSTALL README TODO \
        httpd.conf.sample ${destroot}${prefix}/share/doc/${name}
}
