# $Id: Portfile 110907 2013-09-09 19:50:22Z jmr@macports.org $

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		http://bluecoara.net/item44/cat9.html
master_sites	http://bluecoara.net/download/mod_antispam/
checksums		md5 d0903fc10c48927cd00fe041ab888136

depends_lib		port:apache2

patchfiles		apache_versions.diff

use_configure	no

build.cmd		${prefix}/apache2/bin/apxs
build.target	
build.args		-c -o mod_antispam.so mod_antispam.c

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