# $Id: Portfile,v 1.1 2004/10/29 10:41:49 mww Exp $

PortSystem 1.0

name			monkeyd
version			0.9.0
categories		www
platforms		darwin
maintainers		mww@opendarwin.org
description		fast, efficient, small and easy to configure web server
long_description	Monkey is a Web server written in C. This is an open \
				source project based on the HTTP/1.1 protocol. The objective \
				is to develop a fast, efficient, small and easy to configure \
				web server.

homepage		http://monkeyd.sourceforge.net/
master_sites	${homepage}/versions/
distname		monkey-${version}
checksums		md5 e8bcde30b93b84656897bcd60683bcf0
patchfiles		patch-user.c \
				patch-configure

configure.args	--bindir=${prefix}/sbin \
				--sysconfdir=${prefix}/etc/monkeyd \
				--logdir=${prefix}/var/log/monkeyd \
				--cgibin=${prefix}/var/monkeyd/cgi-bin/ \
				--datadir=${prefix}/var/monkeyd/htdocs/ \
				--lang=en

build.target

post-destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/var/log/monkeyd/ \
		${destroot}${prefix}/var/monkeyd/cgi-bin/
	system "touch ${destroot}${prefix}/var/log/monkeyd/.turd"
}
