[23128] trunk/dports/www

source_changes at macosforge.org source_changes at macosforge.org
Sun Mar 25 21:41:31 PDT 2007


Revision: 23128
          http://trac.macosforge.org/projects/macports/changeset/23128
Author:   pguyot at kallisys.net
Date:     2007-03-25 21:41:31 -0700 (Sun, 25 Mar 2007)

Log Message:
-----------
New port: www/lighttpd-devel.
Version 1.5.0-r1691.

Added Paths:
-----------
    trunk/dports/www/lighttpd-devel/
    trunk/dports/www/lighttpd-devel/Portfile
    trunk/dports/www/lighttpd-devel/files/
    trunk/dports/www/lighttpd-devel/files/patch-doc-lighttpd.conf
    trunk/dports/www/lighttpd-devel/files/patch-src-settings.h

Added: trunk/dports/www/lighttpd-devel/Portfile
===================================================================
--- trunk/dports/www/lighttpd-devel/Portfile	                        (rev 0)
+++ trunk/dports/www/lighttpd-devel/Portfile	2007-03-26 04:41:31 UTC (rev 23128)
@@ -0,0 +1,118 @@
+# $Id$
+
+PortSystem 1.0
+name              lighttpd-devel
+version           1.5.0-r1691
+categories        www
+maintainers       pguyot at 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 
+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}."
+}
+
+
+platform darwin 8 {
+        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
+}
+
+variant mysql4 conflicts mysql5 {
+   depends_lib-append    port:mysql4
+   configure.args-append --with-mysql=${prefix}/bin/mysql_config
+
+   post-configure {
+      reinplace "s|<mysql/mysql.h>|\"${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|<mysql/mysql.h>|\"${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
+
+   configure.env-append LDFLAGS=-L${prefix}/lib
+}
+
+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


Property changes on: trunk/dports/www/lighttpd-devel/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/www/lighttpd-devel/files/patch-doc-lighttpd.conf
===================================================================
--- trunk/dports/www/lighttpd-devel/files/patch-doc-lighttpd.conf	                        (rev 0)
+++ trunk/dports/www/lighttpd-devel/files/patch-doc-lighttpd.conf	2007-03-26 04:41:31 UTC (rev 23128)
@@ -0,0 +1,33 @@
+--- doc/lighttpd.conf.orig	2007-02-05 05:40:47.000000000 +0900
++++ doc/lighttpd.conf	2007-03-26 13:00:51.000000000 +0900
+@@ -148,7 +148,7 @@
+ #server.error-handler-404   = "/error-handler.php"
+ 
+ ## to help the rc.scripts
+-#server.pid-file            = "/var/run/lighttpd.pid"
++server.pid-file            = "__PREFIX/var/run/lighttpd.pid"
+ 
+ 
+ ###### virtual hosts
+@@ -221,8 +221,8 @@
+ 
+ 
+ #### CGI module
+-#cgi.assign                 = ( ".pl"  => "/usr/bin/perl",
+-#                               ".cgi" => "/usr/bin/perl" )
++#cgi.assign                 = ( ".pl"  => "__PREFIX/bin/perl",
++#                               ".cgi" => "__PREFIX/bin/perl" )
+ #
+ 
+ #### SSL engine
+@@ -283,8 +283,8 @@
+ #ssi.extension              = ( ".shtml" )
+ 
+ #### rrdtool
+-#rrdtool.binary             = "/usr/bin/rrdtool"
+-#rrdtool.db-name            = "/var/www/lighttpd.rrd"
++#rrdtool.binary             = "__PREFIX/bin/rrdtool"
++#rrdtool.db-name            = "__PREFIX/var/www/lighttpd.rrd"
+ 
+ #### setenv
+ #setenv.add-request-header  = ( "TRAV_ENV" => "mysql://user@host/db" )

Added: trunk/dports/www/lighttpd-devel/files/patch-src-settings.h
===================================================================
--- trunk/dports/www/lighttpd-devel/files/patch-src-settings.h	                        (rev 0)
+++ trunk/dports/www/lighttpd-devel/files/patch-src-settings.h	2007-03-26 04:41:31 UTC (rev 23128)
@@ -0,0 +1,10 @@
+--- src/settings.h	2007-03-26 13:21:30.000000000 +0900
++++ src/settings.h.orig	2007-03-26 13:19:54.000000000 +0900
+@@ -53,6 +53,7 @@
+ # if defined(HAVE_AIO_H) && (!defined(__FreeBSD__))
+ /* FreeBSD has no SIGEV_THREAD for us */
+ #  define USE_POSIX_AIO
++#  include <sys/types.h>
+ #  include <aio.h>
+ # endif
+ # ifdef HAVE_MMAP

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070325/a27a6411/attachment.html


More information about the macports-changes mailing list