Portfile

# $Id: Portfile 23053 2007-03-23 20:35:47Z pipping@macports.org $

PortSystem 1.0
name shttpd
version 1.34
categories www
maintainers nomaintainer@macports.org
description embeddable MIT-licensed web server
long_description \
SHTTPD is simple, easy to use, embeddable web server with CGI, \
SSL, cookies support. It is written in C, as one single source \
file shttpd.c. It compiles both in UNIX and Windows environments. \
It gives very small footprint when linked against uclibc or \
dietlibc. It is a good choice to serve Web based GUI for various \
applications, where other sophisticated servers like Apache, IIS \
etc are too big, hard to install and configure or overcomplicated. \
It is good for implementing a web interface for daemons. Ideal for \
web-oriented software demos. Beginner (and not just beginner) web \
developers may find it very useful as well: shttpd serves PHP, \
Perl and other CGI applications without any additional \
configuration. Regardless its small size, shttpd is fully \
functional and is ready to be used in production environment.
homepage http://shttpd.sourceforge.net/
platforms darwin
master_sites sourceforge
checksums sha1 596ce7b0aa480b3450b6574ac128e9f6513fb128

use_configure no

build.cmd gcc
build.target
build.args -Wall -g -DCONFIG=\\"${prefix}/etc/shttpd.conf\\" shttpd.c -o shttpd

destroot {
xinstall ${worksrcpath}/shttpd ${destroot}${prefix}/bin
xinstall ${worksrcpath}/shttpd.1 ${destroot}${prefix}/share/man/man1
xinstall ${worksrcpath}/shttpd.pem ${destroot}${prefix}/etc
}