Lighttpd version 1.4.23 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    lighttpd  most recent diff


    version 1.4.23

      View the most recent changes for the lighttpd port at: lighttpd.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for lighttpd.
      The raw portfile for lighttpd 1.4.23 is located here:
      http://lighttpd.darwinports.com/dports/www/lighttpd/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/lighttpd


      # -*- 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
      The lighttpd Portfile 58524 2009-09-30 07:26:55Z ryandesign macports.org $

      PortSystem 1.0
      Name: lighttpd
      Version: 1.4.23
      Revision: 2
      Category: www
      Platform: darwin
      Maintainers: kallisys.net:pguyot
      license BSD
      Description: A secure, fast, compliant and flexible web-server
      Long Description: lighttpd is a secure, fast, compliant and very flexible web-server which has been optimized for high-performance environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load.
      Homepage: http://www.lighttpd.net/
      Master Sites: ${homepage}/download/
      Checksums: md5 41dfad5c366d34d83c3d2b46d4c08f5c sha1 37f8b4827d7a1f69812d8185fcecf72277020876 rmd160 696b8e185c8adbf215f00d259e282a426bcd91c3
      depends_lib port:pcre port:spawn-fcgi port:zlib
      Patch Files: patch-doc-lighttpd.conf.diff

      post-patch {
      reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf"
      }

      # Startup item.
      set lighttpd_config_name lighttpd.conf
      set lighttpd_config ${prefix}/etc/${name}/${lighttpd_config_name}

      startupitem.create yes
      startupitem.executable ${prefix}/sbin/lighttpd -D -f ${lighttpd_config}

      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" "${destroot}${lighttpd_config}.default"
      set docdir ${destroot}${prefix}/share/doc/${name}
      xinstall -d ${docdir}
      xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING NEWS README ${docdir}
      }

      install.asroot yes

      post-install {
      ui_msg "\n Before starting lighttpd it must be configured.\n Lighttpd is configured by editing ${lighttpd_config}\n There's a sample config file at ${lighttpd_config}.default."
      }


      Variant: mysql4 {
      depends_lib-append port:mysql4
      configure.args-append --with-mysql=${prefix}/bin/mysql_config

      post-configure {
      reinplace "s||\"${prefix}/include/mysql/mysql.h\"|g" "${worksrcpath}/src/mod_mysql_vhost.c"
      }
      }

      Variant: mysql5 {
      depends_lib-append path:bin/mysql_config5:mysql5
      configure.args-append --with-mysql=${prefix}/bin/mysql_config5

      post-configure {
      reinplace "s||\"${prefix}/include/mysql5/mysql/mysql.h\"|g" "${worksrcpath}/src/mod_mysql_vhost.c"
      }
      }

      Variant: ssl {
      depends_lib-append port:openssl
      configure.args-append --with-openssl=${prefix}/include/openssl
      }

      Variant: cml {
      depends_lib-append port:lua port:libmemcache port:memcached port:pkgconfig

      configure.args-append --with-lua --with-memcache
      }

      Variant: davprops {
      depends_lib-append port:libxml2 port:sqlite3 port:pkgconfig

      configure.args-append --with-webdav-props
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/lighttpd
      % sudo port install lighttpd
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching lighttpd
      ---> Verifying checksum for lighttpd
      ---> Extracting lighttpd
      ---> Configuring lighttpd
      ---> Building lighttpd with target all
      ---> Staging lighttpd into destroot
      ---> Installing lighttpd
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using lighttpd with these commands:
      %  man lighttpd
      % apropos lighttpd
      % which lighttpd
      % locate lighttpd

     Where to find more information:

    Darwin Ports



    Lightbox this page.