Ticket #21586: lighttpd-1.4.23.diff

File lighttpd-1.4.23.diff, 5.6 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • files/patch-doc-lighttpd.conf.diff

     
    1 --- doc/lighttpd.conf.orig      2009-08-17 15:34:32.000000000 -0400
    2 +++ doc/lighttpd.conf   2009-08-17 15:34:49.000000000 -0400
    3 @@ -37,17 +37,17 @@
     1--- doc/lighttpd.conf.orig      2009-04-09 15:02:00.000000000 -0500
     2+++ doc/lighttpd.conf   2009-09-23 19:20:27.000000000 -0500
     3@@ -36,17 +36,17 @@
    44 
    5  ## a static document-root, for virtual-hosting take look at the
    6  ## server.virtual-* options
     5 ## A static document-root. For virtual hosting take a look at the
     6 ## mod_simple_vhost module.
    77-server.document-root        = "/srv/www/htdocs/"
    88+server.document-root        = "__PREFIX/www/htdocs/"
    99 
     
    2121 
    2222 # mimetype mapping
    2323 mimetype.assign             = (
    24 @@ -116,7 +116,7 @@
     24@@ -115,7 +115,7 @@
    2525 # server.tag                 = "lighttpd"
    2626 
    2727 #### accesslog module
     
    3030 
    3131 ## deny access the file-extensions
    3232 #
    33 @@ -148,7 +148,7 @@
     33@@ -147,7 +147,7 @@
    3434 #server.error-handler-404   = "/error-handler.php"
    3535 
    3636 ## to help the rc.scripts
     
    3939 
    4040 
    4141 ###### virtual hosts
    42 @@ -189,13 +189,13 @@
     42@@ -160,7 +160,7 @@
     43 ## or
     44 ##   virtual-server-root + http-host + virtual-server-docroot
     45 ##
     46-#simple-vhost.server-root   = "/srv/www/vhosts/"
     47+#simple-vhost.server-root   = "__PREFIX/www/vhosts/"
     48 #simple-vhost.default-host  = "www.example.org"
     49 #simple-vhost.document-root = "/htdocs/"
     50 
     51@@ -168,8 +168,8 @@
     52 ##
     53 ## Format: <errorfile-prefix><status-code>.html
     54 ## -> ..../status-404.html for 'File not found'
     55-#server.errorfile-prefix    = "/usr/share/lighttpd/errors/status-"
     56-#server.errorfile-prefix    = "/srv/www/errors/status-"
     57+#server.errorfile-prefix    = "__PREFIX/share/lighttpd/errors/status-"
     58+#server.errorfile-prefix    = "__PREFIX/www/errors/status-"
     59 
     60 ## virtual directory listings
     61 #dir-listing.activate       = "enable"
     62@@ -188,13 +188,13 @@
    4363 #server.chroot              = "/"
    4464 
    4565 ## change uid to <uid> (default: don't care)
     
    5676 #compress.filetype          = ("text/plain", "text/html")
    5777 
    5878 #### proxy module
    59 @@ -215,15 +215,15 @@
     79@@ -214,20 +214,20 @@
    6080 #fastcgi.server             = ( ".php" =>
    6181 #                               ( "localhost" =>
    6282 #                                 (
     
    7696 #
    7797 
    7898 #### SSL engine
    79 @@ -284,15 +284,15 @@
     99 #ssl.engine                 = "enable"
     100-#ssl.pemfile                = "/etc/ssl/private/lighttpd.pem"
     101+#ssl.pemfile                = "_PREFIX/etc/ssl/private/lighttpd.pem"
     102 
     103 #### status module
     104 #status.status-url          = "/server-status"
     105@@ -274,7 +274,7 @@
     106 # %3 => subdomain 1 name
     107 # %4 => subdomain 2 name
     108 #
     109-#evhost.path-pattern        = "/srv/www/vhosts/%3/htdocs/"
     110+#evhost.path-pattern        = "__PREFIX/www/vhosts/%3/htdocs/"
     111 
     112 #### expire module
     113 #expire.url                 = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
     114@@ -283,15 +283,15 @@
    80115 #ssi.extension              = ( ".shtml" )
    81116 
    82117 #### rrdtool
     
    95130 # trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
    96131 # trigger-before-download.trigger-url = "^/trigger/"
    97132 # trigger-before-download.download-url = "^/download/"
     133@@ -312,8 +312,8 @@
     134 #index-file.names += (foo + ".php")
     135 
     136 #### include
     137-#include /etc/lighttpd/lighttpd-inc.conf
     138-## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
     139+#include __PREFIX/etc/lighttpd/lighttpd-inc.conf
     140+## same as above if you run: "lighttpd -f __PREFIX/etc/lighttpd/lighttpd.conf"
     141 #include "lighttpd-inc.conf"
     142 
     143 #### include_shell
  • Portfile

     
    33
    44PortSystem 1.0
    55name              lighttpd
    6 version           1.4.22
     6version           1.4.23
    77categories        www
    88platforms         darwin
    99maintainers       kallisys.net:pguyot
     10license           BSD
    1011description       A secure, fast, compliant and flexible web-server
    1112long_description  lighttpd is a secure, fast, compliant and very flexible\
    1213                  web-server which has been optimized for high-performance\
     
    1415                  compared to other webservers and takes care of cpu-load.
    1516homepage          http://www.lighttpd.net/
    1617master_sites      ${homepage}/download/
    17 checksums         md5     949c33a81e83f7718a47280bef21b90c \
    18                   sha1    e5268929dff832c7786e3b623ca67e6bb0c2913e \
    19                   rmd160  0762e55c52cbc8e5c20faecc45817db5885462d4
     18checksums         md5     41dfad5c366d34d83c3d2b46d4c08f5c \
     19                  sha1    37f8b4827d7a1f69812d8185fcecf72277020876 \
     20                  rmd160  696b8e185c8adbf215f00d259e282a426bcd91c3
    2021depends_lib       port:pcre \
     22                  port:spawn-fcgi \
    2123                  port:zlib
    2224patchfiles        patch-doc-lighttpd.conf.diff
    2325
     
    2527    reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf"
    2628}
    2729
    28 configure.args    --mandir=${prefix}/share/man
    29 
    3030# Startup item.
    3131set lighttpd_config_name   lighttpd.conf
    3232set lighttpd_config        ${prefix}/etc/${name}/${lighttpd_config_name}
     
    4747   file mkdir "${destroot}${prefix}/etc/${name}/"
    4848   xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \
    4949                      "${destroot}${lighttpd_config}.default"
     50   set docdir ${destroot}${prefix}/share/doc/${name}
     51   xinstall -d ${docdir}
     52   xinstall -m 644 -W ${worksrcpath} \
     53       AUTHORS \
     54       COPYING \
     55       NEWS \
     56       README \
     57       ${docdir}
    5058}
    5159
    5260post-install {