Ticket #6756: lighttpd.server-variant.patch

File lighttpd.server-variant.patch, 841 bytes (added by lbruno@…, 19 years ago)

adds +server for lighttpd; needs work: the default .conf file needs work

  • Portfile

    diff -Naur lighttpd.orig/Portfile lighttpd/Portfile
    old new  
    1717depends_lib       lib:libpcre:pcre \
    1818                  lib:libz.1:zlib
    1919
    20 configure.args    --mandir=${prefix}/share/man
     20configure.args         --mandir=${prefix}/share/man
     21configure.args-append  --libdir=${prefix}/libexec/lighttpd
    2122
    2223variant mysql {
    2324   depends_lib-append    lib:libmysqlclient:mysql4
     
    4950                         --with-memcache
    5051}
    5152
     53variant server {
     54   set pidfile          "${prefix}/var/run/lighttpd.pid"
     55   set conffile         "${prefix}/etc/lighttpd/lighttpd.conf"
     56   
     57   startupitem.create   yes
     58   startupitem.start    "${prefix}/sbin/lighttpd -f ${conffile}"
     59   startupitem.stop     "kill -TERM `cat ${pidfile}`"
     60}