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-0 8-17 15:34:32.000000000 -04002 +++ doc/lighttpd.conf 2009-0 8-17 15:34:49.000000000 -04003 @@ -3 7,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 @@ 4 4 5 ## a static document-root, for virtual-hosting takelook at the6 ## server.virtual-* options5 ## A static document-root. For virtual hosting take a look at the 6 ## mod_simple_vhost module. 7 7 -server.document-root = "/srv/www/htdocs/" 8 8 +server.document-root = "__PREFIX/www/htdocs/" 9 9 … … 21 21 22 22 # mimetype mapping 23 23 mimetype.assign = ( 24 @@ -11 6,7 +116,7 @@24 @@ -115,7 +115,7 @@ 25 25 # server.tag = "lighttpd" 26 26 27 27 #### accesslog module … … 30 30 31 31 ## deny access the file-extensions 32 32 # 33 @@ -14 8,7 +148,7 @@33 @@ -147,7 +147,7 @@ 34 34 #server.error-handler-404 = "/error-handler.php" 35 35 36 36 ## to help the rc.scripts … … 39 39 40 40 41 41 ###### 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 @@ 43 63 #server.chroot = "/" 44 64 45 65 ## change uid to <uid> (default: don't care) … … 56 76 #compress.filetype = ("text/plain", "text/html") 57 77 58 78 #### proxy module 59 @@ -21 5,15 +215,15@@79 @@ -214,20 +214,20 @@ 60 80 #fastcgi.server = ( ".php" => 61 81 # ( "localhost" => 62 82 # ( … … 76 96 # 77 97 78 98 #### 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 @@ 80 115 #ssi.extension = ( ".shtml" ) 81 116 82 117 #### rrdtool … … 95 130 # trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" ) 96 131 # trigger-before-download.trigger-url = "^/trigger/" 97 132 # 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
3 3 4 4 PortSystem 1.0 5 5 name lighttpd 6 version 1.4.2 26 version 1.4.23 7 7 categories www 8 8 platforms darwin 9 9 maintainers kallisys.net:pguyot 10 license BSD 10 11 description A secure, fast, compliant and flexible web-server 11 12 long_description lighttpd is a secure, fast, compliant and very flexible\ 12 13 web-server which has been optimized for high-performance\ … … 14 15 compared to other webservers and takes care of cpu-load. 15 16 homepage http://www.lighttpd.net/ 16 17 master_sites ${homepage}/download/ 17 checksums md5 949c33a81e83f7718a47280bef21b90c \18 sha1 e5268929dff832c7786e3b623ca67e6bb0c2913e\19 rmd160 0762e55c52cbc8e5c20faecc45817db5885462d418 checksums md5 41dfad5c366d34d83c3d2b46d4c08f5c \ 19 sha1 37f8b4827d7a1f69812d8185fcecf72277020876 \ 20 rmd160 696b8e185c8adbf215f00d259e282a426bcd91c3 20 21 depends_lib port:pcre \ 22 port:spawn-fcgi \ 21 23 port:zlib 22 24 patchfiles patch-doc-lighttpd.conf.diff 23 25 … … 25 27 reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf" 26 28 } 27 29 28 configure.args --mandir=${prefix}/share/man29 30 30 # Startup item. 31 31 set lighttpd_config_name lighttpd.conf 32 32 set lighttpd_config ${prefix}/etc/${name}/${lighttpd_config_name} … … 47 47 file mkdir "${destroot}${prefix}/etc/${name}/" 48 48 xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \ 49 49 "${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} 50 58 } 51 59 52 60 post-install {