Index: www/lighttpd/Portfile
===================================================================
--- www/lighttpd/Portfile	(revision 55702)
+++ www/lighttpd/Portfile	(working copy)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem 1.0
@@ -17,10 +18,10 @@
                   rmd160  0762e55c52cbc8e5c20faecc45817db5885462d4
 depends_lib       port:pcre \
                   port:zlib
-patchfiles        patch-doc-lighttpd.conf
+patchfiles        patch-doc-lighttpd.conf.diff
 
 post-patch {
-	reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf"
+    reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf"
 }
 
 configure.args    --mandir=${prefix}/share/man
@@ -36,6 +37,11 @@
 startupitem.start   "${prefix}/sbin/lighttpd -f ${lighttpd_config}"
 startupitem.stop    "kill \$(cat \$PIDFILE)"
 
+destroot.keepdirs   ${destroot}${prefix}/var/log/lighttpd \
+                    ${destroot}${prefix}/www/htdocs \
+                    ${destroot}${prefix}/var/run/lighttpd \
+                    ${destroot}${prefix}/var/lib/lighttpd \
+                    ${destroot}${prefix}/var/cache/lighttpd/compress
 post-destroot {
    file mkdir "${destroot}${prefix}/etc/${name}/"
    xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \

