--- Portfile.orig	2007-10-23 03:28:30.000000000 +0100
+++ Portfile	2008-06-01 17:01:29.000000000 +0100
@@ -2,15 +2,14 @@
 
 PortSystem 1.0
 name             shttpd
-version          1.34
+version          1.41
 categories       www
 maintainers      nomaintainer
-description      embeddable MIT-licensed web server
+description      Beerware-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 \
+	SSL, Digest Authorization, resumed download, aliases, IP-based \
+	ACLs. 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. \
@@ -18,21 +17,20 @@
 	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.
+	configuration. SHTTPD is mature and stable product, and is ready \
+	to be used in production environment.
 homepage         http://shttpd.sourceforge.net/
 platforms        darwin
 master_sites     sourceforge
-checksums        sha1 596ce7b0aa480b3450b6574ac128e9f6513fb128
+checksums        sha1 a3f23c3d06997d1c73771848d0db73fac421e46f
 
-use_configure    no
+use_configure	no
 
-build.cmd        gcc
-build.target
-build.args       -Wall -g -DCONFIG=\\"${prefix}/etc/shttpd.conf\\" shttpd.c -o shttpd
+worksrcdir	${name}-${version}/src
+build.target	unix
+build.args	"CFLAGS=\"-W -Wall -O2\""
 
 destroot {
 	xinstall ${worksrcpath}/shttpd ${destroot}${prefix}/bin
 	xinstall ${worksrcpath}/shttpd.1 ${destroot}${prefix}/share/man/man1
-	xinstall ${worksrcpath}/shttpd.pem ${destroot}${prefix}/etc
 }

