pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2006Q4]: pkgsrc/www/lighttpd Pullup ticket 2028 - requested by...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/157f0c967515
branches:  pkgsrc-2006Q4
changeset: 523022:157f0c967515
user:      salo <salo%pkgsrc.org@localhost>
date:      Tue Feb 20 14:26:59 2007 +0000

description:
Pullup ticket 2028 - requested by joerg
bugfix update for lighttpd

Revisions pulled up:
- pkgsrc/www/lighttpd/Makefile                          1.13
- pkgsrc/www/lighttpd/PLIST                             1.5
- pkgsrc/www/lighttpd/distinfo                          1.8
- pkgsrc/www/lighttpd/patches/patch-ab                  1.2
- pkgsrc/www/lighttpd/patches/patch-ac                  1.1
- pkgsrc/www/lighttpd/patches/patch-ad                  1.1
- pkgsrc/www/lighttpd/patches/patch-ae                  1.1
- pkgsrc/www/lighttpd/patches/patch-af                  1.1
- pkgsrc/www/lighttpd/patches/patch-ag                  1.1
- pkgsrc/www/lighttpd/patches/patch-ah                  1.1

   Module Name:         pkgsrc
   Committed By:        joerg
   Date:                Mon Feb 19 21:31:38 UTC 2007

   Modified Files:
        pkgsrc/www/lighttpd: Makefile PLIST distinfo
        pkgsrc/www/lighttpd/patches: patch-ab
   Added Files:
        pkgsrc/www/lighttpd/patches: patch-ac patch-ad patch-ae
            patch-af patch-ag patch-ah

   Log Message:
   Update to lighttpd-1.4.13.

   Changes in 1.4.13:
     * added initgroups in spawn-fcgi (#871)
     * added apr1 support htpasswd in mod-auth (#870)
     * added lighty.stat() to mod_magnet
     * fixed segfault in splitted CRLF CRLF sequences
       (introduced in 1.4.12) (#876)
     * fixed compilation of LOCK support in mod-webdav
     * fixed fragments in request-URLs (#869)
     * fixed pkg-config check for lua5.1 on debian
     * fixed Content-Length = 0 on HEAD requests without
       a known Content-Length (#119)
     * fixed mkdir() forcing 0700 (#884)
     * fixed writev() on FreeBSD 4.x and older (#875)
     * removed warning about a 404-error-handler
       returned 404
     * backported and fixed the buildsystem changes for
       webdav locks
     * fixed plugin loading so we can finally load lua
       extensions in mod_magnet scripts
     * fixed large uploads if xattr is enabled

   Changes in 1.4.12:
     * added experimental LOCK support for webdav
     * added Content-Range support for PUT in webdav
     * added support for += on empty arrays in config-files
     * added ssl.cipher-list and ssl.use-sslv2
     * added $HTTP["querystring"] conditional
     * added mod_magnet as long-term replacement for mod_cml
     * added work-around for a Opera Bug with SSL + Chunked-Encoding
     * changed --print-config to print to stdout instead of stderr
     * changed no longer use 0600 for new files with webdav. umask is
       honored. Make sure you have set a proper umask.
     * fixed upload hangs with SSL
     * fixed connection drops with SSL (aka bad retry)
     * fixed path traversal with \ on cygwin
     * fixed mem-leak in mod_flv_streaming
     * fixed required trailing newline in configfiles (#142)
     * fixed quoting the autoconf files (#466)
     * fixed empty Host: + $HTTP["host"] handling (#458)
     * fixed handling of If-Modified-Since if ETag is not set
     * fixed default-shell if SHELL is not set (#441)
     * fixed appending and assigning of env.* vars
     * fixed empty FCGI_STDERR packets
     * fixed conditional server.allow-http-11
     * fixed handling of follow-symlink + lstat()
     * fixed SIGHUP handling if max-workers is used
     * fixed "Software caused connection abort" messages on FreeBSD

   In addition fix a nasty problem in LDAP auth when using with buggy
   commercial servers. Some threat an empty password as anonymous bind
   and would only fail on the first query, if that requires privileges.
   Patch will be included with 1.4.14.

diffstat:

 www/lighttpd/Makefile         |   5 ++---
 www/lighttpd/PLIST            |   4 +++-
 www/lighttpd/distinfo         |  16 +++++++++++-----
 www/lighttpd/patches/patch-ab |   6 +++---
 www/lighttpd/patches/patch-ac |  13 +++++++++++++
 www/lighttpd/patches/patch-ad |  13 +++++++++++++
 www/lighttpd/patches/patch-ae |  13 +++++++++++++
 www/lighttpd/patches/patch-af |  14 ++++++++++++++
 www/lighttpd/patches/patch-ag |  12 ++++++++++++
 www/lighttpd/patches/patch-ah |  43 +++++++++++++++++++++++++++++++++++++++++++
 10 files changed, 127 insertions(+), 12 deletions(-)

diffs (212 lines):

diff -r 24fc4a422ed1 -r 157f0c967515 www/lighttpd/Makefile
--- a/www/lighttpd/Makefile     Tue Feb 20 13:56:39 2007 +0000
+++ b/www/lighttpd/Makefile     Tue Feb 20 14:26:59 2007 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2006/12/22 21:07:11 joerg Exp $
+# $NetBSD: Makefile,v 1.12.2.1 2007/02/20 14:26:59 salo Exp $
 
-DISTNAME=      lighttpd-1.4.11
-PKGREVISION=   1
+DISTNAME=      lighttpd-1.4.13
 CATEGORIES=    www
 MASTER_SITES=  http://www.lighttpd.net/download/
 
diff -r 24fc4a422ed1 -r 157f0c967515 www/lighttpd/PLIST
--- a/www/lighttpd/PLIST        Tue Feb 20 13:56:39 2007 +0000
+++ b/www/lighttpd/PLIST        Tue Feb 20 14:26:59 2007 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2006/04/10 12:07:18 joerg Exp $
+@comment $NetBSD: PLIST,v 1.4.6.1 2007/02/20 14:26:59 salo Exp $
 bin/spawn-fcgi
 lib/lighttpd/mod_access.la
 lib/lighttpd/mod_accesslog.la
@@ -14,6 +14,7 @@
 lib/lighttpd/mod_fastcgi.la
 lib/lighttpd/mod_flv_streaming.la
 lib/lighttpd/mod_indexfile.la
+lib/lighttpd/mod_magnet.la
 lib/lighttpd/mod_mysql_vhost.la
 lib/lighttpd/mod_proxy.la
 lib/lighttpd/mod_redirect.la
@@ -53,6 +54,7 @@
 share/doc/lighttpd/fastcgi-state.txt
 share/doc/lighttpd/fastcgi.txt
 share/doc/lighttpd/features.txt
+share/doc/lighttpd/magnet.txt
 share/doc/lighttpd/mysqlvhost.txt
 share/doc/lighttpd/newstyle.css
 share/doc/lighttpd/oldstyle.css
diff -r 24fc4a422ed1 -r 157f0c967515 www/lighttpd/distinfo
--- a/www/lighttpd/distinfo     Tue Feb 20 13:56:39 2007 +0000
+++ b/www/lighttpd/distinfo     Tue Feb 20 14:26:59 2007 +0000
@@ -1,7 +1,13 @@
-$NetBSD: distinfo,v 1.7 2006/12/22 21:07:11 joerg Exp $
+$NetBSD: distinfo,v 1.7.2.1 2007/02/20 14:26:59 salo Exp $
 
-SHA1 (lighttpd-1.4.11.tar.gz) = ca904d3d4d9dde76f85156f2c709a394f30e28c8
-RMD160 (lighttpd-1.4.11.tar.gz) = 0434e6c09383f1ad443d985fd168a29f6f132d1f
-Size (lighttpd-1.4.11.tar.gz) = 781656 bytes
+SHA1 (lighttpd-1.4.13.tar.gz) = b17553e66609f85baec50263712a4a5aeca50ca5
+RMD160 (lighttpd-1.4.13.tar.gz) = 4e67e42dc3692d50c044561cc903de7b906f260c
+Size (lighttpd-1.4.13.tar.gz) = 797813 bytes
 SHA1 (patch-aa) = f1e8cad740e6ede7fdc38367f75a7ef9d5605a71
-SHA1 (patch-ab) = c76c85d631c6cc76e8d72076308259c3e4c8426b
+SHA1 (patch-ab) = 1a8e05b1f347adc9314d9b543d6f3b0e5e3bcfbd
+SHA1 (patch-ac) = 5b29d06bb002eac055b024784d11296d8df28d16
+SHA1 (patch-ad) = 56d94ebf9a5f9809dff67e6be6031a37dd07eda1
+SHA1 (patch-ae) = 33cc3cac3746b1c53e386776deeca3aef0863541
+SHA1 (patch-af) = 8e3de40f9230e672a4d09ab688c7b864c661390d
+SHA1 (patch-ag) = ae22b00ec1d7af2cb2ba67deb22a705ba2677711
+SHA1 (patch-ah) = edd5bd1662f2ff11b1e2fc2a84f939c6b2e584d0
diff -r 24fc4a422ed1 -r 157f0c967515 www/lighttpd/patches/patch-ab
--- a/www/lighttpd/patches/patch-ab     Tue Feb 20 13:56:39 2007 +0000
+++ b/www/lighttpd/patches/patch-ab     Tue Feb 20 14:26:59 2007 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.1 2006/12/22 21:07:11 joerg Exp $
+$NetBSD: patch-ab,v 1.1.2.1 2007/02/20 14:26:59 salo Exp $
 
---- src/network_freebsd_sendfile.c.orig        2006-12-22 20:54:33.000000000 +0000
+--- src/network_freebsd_sendfile.c.orig        2006-10-04 13:29:17.000000000 +0000
 +++ src/network_freebsd_sendfile.c
 @@ -25,7 +25,7 @@
  
@@ -8,6 +8,6 @@
  #ifndef UIO_MAXIOV
 -# ifdef __FreeBSD__
 +# if defined(__FreeBSD__) || defined(__DragonFly__)
- /* FreeBSD 4.7, 4.9 defined it in sys/uio.h only if _KERNEL is specified */ 
+ /* FreeBSD 4.7, 4.9 defined it in sys/uio.h only if _KERNEL is specified */
  #  define UIO_MAXIOV 1024
  # endif
diff -r 24fc4a422ed1 -r 157f0c967515 www/lighttpd/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lighttpd/patches/patch-ac     Tue Feb 20 14:26:59 2007 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.2.2 2007/02/20 14:26:59 salo Exp $
+
+--- src/network_writev.c.orig  2006-10-07 17:25:51.000000000 +0000
++++ src/network_writev.c
+@@ -55,7 +55,7 @@ int network_write_chunkqueue_writev(serv
+                       const size_t max_chunks = MAX_IOVEC;
+ #elif defined(UIO_MAXIOV) /* Linux x86 (glibc-2.2.5-233) */
+                       const size_t max_chunks = UIO_MAXIOV;
+-#elif (defined(__FreeBSD__) && __FreeBSD_version < 500000) /* FreeBSD 4.x */
++#elif (defined(__FreeBSD__) && __FreeBSD_version < 500000) || defined(__DragonFly__) /* FreeBSD 4.x */
+                       const size_t max_chunks = 1024; /* UIO_MAXIOV value from sys/uio.h */
+ #else
+ #error "sysconf() doesnt return _SC_IOV_MAX ..., check the output of 'man writev' for the EINVAL error and send the output to jan%kneschke.de@localhost"
diff -r 24fc4a422ed1 -r 157f0c967515 www/lighttpd/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lighttpd/patches/patch-ad     Tue Feb 20 14:26:59 2007 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.2.2 2007/02/20 14:26:59 salo Exp $
+
+--- configure.in.orig  2007-02-19 21:15:12.000000000 +0000
++++ configure.in
+@@ -398,7 +398,7 @@ AC_ARG_WITH(lua, AC_HELP_STRING([--with-
+ 
+ AC_MSG_RESULT($WITH_LUA)
+ if test "$WITH_LUA" != "no"; then
+- if test "$WITH_LUA" == "yes"; then
++ if test "$WITH_LUA" = "yes"; then
+   WITH_LUA=lua
+  fi
+  PKG_CHECK_MODULES(LUA, $WITH_LUA >= 5.1, [
diff -r 24fc4a422ed1 -r 157f0c967515 www/lighttpd/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lighttpd/patches/patch-ae     Tue Feb 20 14:26:59 2007 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.2.2 2007/02/20 14:27:00 salo Exp $
+
+--- configure.orig     2007-02-19 21:14:50.000000000 +0000
++++ configure
+@@ -26988,7 +26988,7 @@ fi;
+ echo "$as_me:$LINENO: result: $WITH_LUA" >&5
+ echo "${ECHO_T}$WITH_LUA" >&6
+ if test "$WITH_LUA" != "no"; then
+- if test "$WITH_LUA" == "yes"; then
++ if test "$WITH_LUA" = "yes"; then
+   WITH_LUA=lua
+  fi
+ 
diff -r 24fc4a422ed1 -r 157f0c967515 www/lighttpd/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lighttpd/patches/patch-af     Tue Feb 20 14:26:59 2007 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-af,v 1.1.2.2 2007/02/20 14:27:00 salo Exp $
+
+--- src/http_auth.c.orig       2006-10-04 13:29:17.000000000 +0000
++++ src/http_auth.c
+@@ -733,7 +733,8 @@ static int http_auth_basic_password_comp
+                       }
+               }
+ 
+-
++              if (p->conf.auth_ldap_allow_empty_pw != 1 && pw[0] == '\0')
++                      return -1;
+ 
+               /* build filter */
+               buffer_copy_string_buffer(p->ldap_filter, p->conf.ldap_filter_pre);
diff -r 24fc4a422ed1 -r 157f0c967515 www/lighttpd/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lighttpd/patches/patch-ag     Tue Feb 20 14:26:59 2007 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ag,v 1.1.2.2 2007/02/20 14:27:00 salo Exp $
+
+--- src/http_auth.h.orig       2006-10-04 13:29:17.000000000 +0000
++++ src/http_auth.h
+@@ -36,6 +36,7 @@ typedef struct {
+       buffer *auth_ldap_filter;
+       buffer *auth_ldap_cafile;
+       unsigned short auth_ldap_starttls;
++      unsigned short auth_ldap_allow_empty_pw;
+ 
+       unsigned short auth_debug;
+ 
diff -r 24fc4a422ed1 -r 157f0c967515 www/lighttpd/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lighttpd/patches/patch-ah     Tue Feb 20 14:26:59 2007 +0000
@@ -0,0 +1,43 @@
+$NetBSD: patch-ah,v 1.1.2.2 2007/02/20 14:27:00 salo Exp $
+
+--- src/mod_auth.c.orig        2006-10-04 13:29:17.000000000 +0000
++++ src/mod_auth.c
+@@ -113,6 +113,7 @@ static int mod_auth_patch_connection(ser
+       PATCH(auth_ldap_filter);
+       PATCH(auth_ldap_cafile);
+       PATCH(auth_ldap_starttls);
++      PATCH(auth_ldap_allow_empty_pw);
+ #ifdef USE_LDAP
+       PATCH(ldap);
+       PATCH(ldap_filter_pre);
+@@ -160,6 +161,8 @@ static int mod_auth_patch_connection(ser
+                               PATCH(auth_ldap_cafile);
+                       } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("auth.backend.ldap.starttls"))) {
+                               PATCH(auth_ldap_starttls);
++                      } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("auth.backend.ldap.allow-empty-pw"))) {
++                              PATCH(auth_ldap_allow_empty_pw);
+                       }
+               }
+       }
+@@ -312,6 +315,7 @@ SETDEFAULTS_FUNC(mod_auth_set_defaults) 
+               { "auth.backend.ldap.starttls",     NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION },
+               { "auth.backend.ldap.bind-dn",      NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION },
+               { "auth.backend.ldap.bind-pw",      NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION }, /* 10 */
++              { "auth.backend.ldap.allow-empty-pw",     NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION },
+               { "auth.backend.htdigest.userfile", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION },
+               { "auth.backend.htpasswd.userfile", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION },
+               { "auth.debug",                     NULL, T_CONFIG_SHORT, T_CONFIG_SCOPE_CONNECTION },  /* 13 */
+@@ -361,9 +365,10 @@ SETDEFAULTS_FUNC(mod_auth_set_defaults) 
+               cv[8].destination = &(s->auth_ldap_starttls);
+               cv[9].destination = s->auth_ldap_binddn;
+               cv[10].destination = s->auth_ldap_bindpw;
+-              cv[11].destination = s->auth_htdigest_userfile;
+-              cv[12].destination = s->auth_htpasswd_userfile;
+-              cv[13].destination = &(s->auth_debug);
++              cv[11].destination = &(s->auth_ldap_allow_empty_pw);
++              cv[12].destination = s->auth_htdigest_userfile;
++              cv[13].destination = s->auth_htpasswd_userfile;
++              cv[14].destination = &(s->auth_debug);
+ 
+               p->config_storage[i] = s;
+               ca = ((data_config *)srv->config_context->data[i])->value;



Home | Main Index | Thread Index | Old Index