Download and Install lighttpd-devel version 1.5.0-r1691 on Mac OS X
Thursday the 20th of November, 2008

    lighttpd-devel  most recent diff


    version 1.5.0-r1691

      View the most recent changes for the lighttpd-devel port at: lighttpd-devel.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for lighttpd-devel.
      The raw portfile for lighttpd-devel 1.5.0-r1691 is located here:
      http://lighttpd-devel.darwinports.com/dports/www/lighttpd-devel/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-devel
      Google
      Web Darwinports.com



      # $Id: Portfile 34432 2008-02-24 20:21:52Z pguyot kallisys.net $

      PortSystem 1.0
      Name: lighttpd-devel
      Version: 1.5.0-r1691
      Category: www
      Maintainers: pguyot kallisys.net
      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. This is the 1.5.x pre-release version.
      Homepage: http://www.lighttpd.net/
      master_sites ${homepage}assets/2007/2/23/
      distname lighttpd-${version}
      worksrcdir lighttpd-1.5.0
      checksums ${distname}.tar.gz md5 529909adbafee7e2c26bb427226f1457 sha1 afe4ce968fc898404cd9e61e8e48b2ea3f6db5ca rmd160 fc3bb80265e0090fce622822d4658568a5aa536c
      depends_lib port:pcre port:zlib port:glib2
      patchfiles patch-doc-lighttpd.conf patch-src-settings.h

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

      configure.args --mandir=${prefix}/share/man

      # Startup item.
      set lighttpd_config_name lighttpd.conf
      set lighttpd_config ${prefix}/etc/${name}/${lighttpd_config_name}
      set lighttpd_pidfile_name lighttpd.pid
      set lighttpd_pidfile ${prefix}/var/run/${lighttpd_pidfile_name}

      startupitem.create yes
      startupitem.init "PIDFILE=${lighttpd_pidfile}"
      startupitem.start "${prefix}/sbin/lighttpd -f ${lighttpd_config}"
      startupitem.stop "kill \$(cat \$PIDFILE)"

      post-destroot {
      file mkdir "${destroot}${prefix}/etc/${name}/"
      xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" "${destroot}${lighttpd_config}.default"
      }

      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.\n Please note that the launchd daemon relies on the PID being at\n ${lighttpd_pidfile}."
      }

      Variant: mysql4 conflicts mysql5 {
      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 conflicts mysql4 {
      depends_lib-append port: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=${prefix} --with-memcache
      }

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

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

      Variant: bzip2 {
      depends_lib-append port:bzip2

      configure.args-append --with-bzip2
      }

      Variant: attr {
      configure.args-append --with-attr
      }

      default_variants +bzip2

      livecheck.check regex
      livecheck.url http://www.lighttpd.net/2007/2/3/lighttpd-1-5-0-pre
      livecheck.regex {http://www.lighttpd.net/assets/.*/lighttpd-(.*?).tar.gz">lighttpd-\1.tar.gz}

    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-devel
      % sudo port install lighttpd-devel
      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-devel
      ---> Verifying checksum for lighttpd-devel
      ---> Extracting lighttpd-devel
      ---> Configuring lighttpd-devel
      ---> Building lighttpd-devel with target all
      ---> Staging lighttpd-devel into destroot
      ---> Installing lighttpd-devel
    - 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-devel with these commands:
      %  man lighttpd-devel
      % apropos lighttpd-devel
      % which lighttpd-devel
      % locate lighttpd-devel

     Where to find more information:

    Darwin Ports



    Lightbox this page.