Ticket #13450: Portfile-lighttpd.diff

File Portfile-lighttpd.diff, 1.4 KB (added by nerdling (Jeremy Lavergne), 15 years ago)

portfile changes

  • www/lighttpd/Portfile

     
     1# -*- 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
    12# $Id$
    23
    34PortSystem 1.0
     
    1718                  rmd160  0762e55c52cbc8e5c20faecc45817db5885462d4
    1819depends_lib       port:pcre \
    1920                  port:zlib
    20 patchfiles        patch-doc-lighttpd.conf
     21patchfiles        patch-doc-lighttpd.conf.diff
    2122
    2223post-patch {
    23         reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf"
     24    reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf"
    2425}
    2526
    2627configure.args    --mandir=${prefix}/share/man
     
    3637startupitem.start   "${prefix}/sbin/lighttpd -f ${lighttpd_config}"
    3738startupitem.stop    "kill \$(cat \$PIDFILE)"
    3839
     40destroot.keepdirs   ${destroot}${prefix}/var/log/lighttpd \
     41                    ${destroot}${prefix}/www/htdocs \
     42                    ${destroot}${prefix}/var/run/lighttpd \
     43                    ${destroot}${prefix}/var/lib/lighttpd \
     44                    ${destroot}${prefix}/var/cache/lighttpd/compress
    3945post-destroot {
    4046   file mkdir "${destroot}${prefix}/etc/${name}/"
    4147   xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \