Browse Source

update to latest upstream

Waldemar Brodkorb 10 years ago
parent
commit
32466fbcf2

+ 13 - 5
package/nginx/Makefile

@@ -4,9 +4,9 @@
 include $(ADK_TOPDIR)/rules.mk
 include $(ADK_TOPDIR)/rules.mk
 
 
 PKG_NAME:=		nginx
 PKG_NAME:=		nginx
-PKG_VERSION:=		1.7.8
-PKG_RELEASE:=		2
-PKG_MD5SUM:=		fd5ab813fc1853cd8efe580ead577c3e
+PKG_VERSION:=		1.7.9
+PKG_RELEASE:=		1
+PKG_MD5SUM:=		a4debbe0ce0dd12b9c8f520bc3b66355
 PKG_DESCR:=		powerful http reverse proxy and webserver
 PKG_DESCR:=		powerful http reverse proxy and webserver
 PKG_SECTION:=		net/http
 PKG_SECTION:=		net/http
 PKG_BUILDDEP:=		pcre zlib
 PKG_BUILDDEP:=		pcre zlib
@@ -16,8 +16,11 @@ PKG_SITES:=		http://nginx.org/download/
 
 
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
 
 
-PKG_CHOICES_NGINX:=	WITHOUT_SSL WITH_OPENSSL
+PKG_CHOICES_NGINX:=	WITHOUT_SSL WITH_LIBRESSL WITH_OPENSSL
 PKGCD_WITHOUT_SSL:=	use no ssl
 PKGCD_WITHOUT_SSL:=	use no ssl
+PKGCD_WITH_LIBRESSL:=	use libressl for crypto
+PKGCB_WITH_LIBRESSL:=	libressl
+PKGCS_WITH_LIBRESSL:=	libressl ca-certificates
 PKGCD_WITH_OPENSSL:=	use openssl for crypto
 PKGCD_WITH_OPENSSL:=	use openssl for crypto
 PKGCB_WITH_OPENSSL:=	openssl
 PKGCB_WITH_OPENSSL:=	openssl
 PKGCS_WITH_OPENSSL:=	libopenssl ca-certificates
 PKGCS_WITH_OPENSSL:=	libopenssl ca-certificates
@@ -43,11 +46,16 @@ CONFIGURE_ARGS:=        --prefix=/srv/www \
                         --http-log-path=/var/log/nginx-access.log \
                         --http-log-path=/var/log/nginx-access.log \
                         --http-client-body-temp-path=/var/lib/nginx/body \
                         --http-client-body-temp-path=/var/lib/nginx/body \
                         --http-proxy-temp-path=/var/lib/nginx/proxy \
                         --http-proxy-temp-path=/var/lib/nginx/proxy \
-                        --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
+                        --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
+			--http-scgi-temp-path=/var/lib/nginx/uwsgi \
+			--http-uwsgi-temp-path=/var/lib/nginx/uwsgi
 
 
 ifeq ($(ADK_PACKAGE_NGINX_WITH_OPENSSL),y)
 ifeq ($(ADK_PACKAGE_NGINX_WITH_OPENSSL),y)
 CONFIGURE_ARGS+=	--with-http_ssl_module
 CONFIGURE_ARGS+=	--with-http_ssl_module
 endif
 endif
+ifeq ($(ADK_PACKAGE_NGINX_WITH_LIBRESSL),y)
+CONFIGURE_ARGS+=	--with-http_ssl_module
+endif
 
 
 ALL_TARGET:=		
 ALL_TARGET:=		
 XAKE_FLAGS+=		GCC_HONOUR_COPTS=s
 XAKE_FLAGS+=		GCC_HONOUR_COPTS=s

+ 4 - 4
package/nginx/patches/patch-auto_cc_conf

@@ -1,6 +1,6 @@
---- nginx-1.5.3.orig/auto/cc/conf	2013-07-30 15:27:55.000000000 +0200
-+++ nginx-1.5.3/auto/cc/conf	2013-08-20 09:50:31.872042697 +0200
-@@ -155,7 +155,7 @@ if [ "$NGX_PLATFORM" != win32 ]; then
+--- nginx-1.7.9.orig/auto/cc/conf	2014-12-23 09:28:38.000000000 -0600
++++ nginx-1.7.9/auto/cc/conf	2014-12-25 00:19:14.557499365 -0600
+@@ -178,7 +178,7 @@ if [ "$NGX_PLATFORM" != win32 ]; then
      else
      else
          ngx_feature="C99 variadic macros"
          ngx_feature="C99 variadic macros"
          ngx_feature_name="NGX_HAVE_C99_VARIADIC_MACROS"
          ngx_feature_name="NGX_HAVE_C99_VARIADIC_MACROS"
@@ -9,7 +9,7 @@
          ngx_feature_incs="#include <stdio.h>
          ngx_feature_incs="#include <stdio.h>
  #define var(dummy, ...)  sprintf(__VA_ARGS__)"
  #define var(dummy, ...)  sprintf(__VA_ARGS__)"
          ngx_feature_path=
          ngx_feature_path=
-@@ -169,7 +169,7 @@ if [ "$NGX_PLATFORM" != win32 ]; then
+@@ -192,7 +192,7 @@ if [ "$NGX_PLATFORM" != win32 ]; then
  
  
      ngx_feature="gcc variadic macros"
      ngx_feature="gcc variadic macros"
      ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS"
      ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS"

+ 6 - 6
package/nginx/patches/patch-auto_os_linux

@@ -1,5 +1,5 @@
---- nginx-1.5.3.orig/auto/os/linux	2013-07-30 15:27:55.000000000 +0200
-+++ nginx-1.5.3/auto/os/linux	2013-08-20 10:00:37.444429620 +0200
+--- nginx-1.7.9.orig/auto/os/linux	2014-12-23 09:28:38.000000000 -0600
++++ nginx-1.7.9/auto/os/linux	2014-12-25 00:19:14.581499365 -0600
 @@ -48,7 +48,7 @@ fi
 @@ -48,7 +48,7 @@ fi
  
  
  ngx_feature="epoll"
  ngx_feature="epoll"
@@ -9,7 +9,7 @@
  ngx_feature_incs="#include <sys/epoll.h>"
  ngx_feature_incs="#include <sys/epoll.h>"
  ngx_feature_path=
  ngx_feature_path=
  ngx_feature_libs=
  ngx_feature_libs=
-@@ -73,7 +73,7 @@ fi
+@@ -105,7 +105,7 @@ ngx_feature_test="int fd; struct stat sb
  CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE"
  CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE"
  ngx_feature="sendfile()"
  ngx_feature="sendfile()"
  ngx_feature_name="NGX_HAVE_SENDFILE"
  ngx_feature_name="NGX_HAVE_SENDFILE"
@@ -18,7 +18,7 @@
  ngx_feature_incs="#include <sys/sendfile.h>
  ngx_feature_incs="#include <sys/sendfile.h>
                    #include <errno.h>"
                    #include <errno.h>"
  ngx_feature_path=
  ngx_feature_path=
-@@ -94,7 +94,7 @@ fi
+@@ -126,7 +126,7 @@ fi
  CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
  CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
  ngx_feature="sendfile64()"
  ngx_feature="sendfile64()"
  ngx_feature_name="NGX_HAVE_SENDFILE64"
  ngx_feature_name="NGX_HAVE_SENDFILE64"
@@ -27,7 +27,7 @@
  ngx_feature_incs="#include <sys/sendfile.h>
  ngx_feature_incs="#include <sys/sendfile.h>
                    #include <errno.h>"
                    #include <errno.h>"
  ngx_feature_path=
  ngx_feature_path=
-@@ -112,7 +112,7 @@ ngx_include="sys/prctl.h"; . auto/includ
+@@ -144,7 +144,7 @@ ngx_include="sys/prctl.h"; . auto/includ
  
  
  ngx_feature="prctl(PR_SET_DUMPABLE)"
  ngx_feature="prctl(PR_SET_DUMPABLE)"
  ngx_feature_name="NGX_HAVE_PR_SET_DUMPABLE"
  ngx_feature_name="NGX_HAVE_PR_SET_DUMPABLE"
@@ -36,7 +36,7 @@
  ngx_feature_incs="#include <sys/prctl.h>"
  ngx_feature_incs="#include <sys/prctl.h>"
  ngx_feature_path=
  ngx_feature_path=
  ngx_feature_libs=
  ngx_feature_libs=
-@@ -133,20 +133,6 @@ ngx_feature_test="cpu_set_t mask;
+@@ -165,20 +165,6 @@ ngx_feature_test="cpu_set_t mask;
                    sched_setaffinity(0, sizeof(cpu_set_t), &mask)"
                    sched_setaffinity(0, sizeof(cpu_set_t), &mask)"
  . auto/feature
  . auto/feature
  
  

+ 55 - 13
package/nginx/patches/patch-auto_types_sizeof

@@ -1,26 +1,68 @@
---- nginx-1.2.2.orig/auto/types/sizeof	2012-03-16 08:33:55.000000000 +0100
-+++ nginx-1.2.2/auto/types/sizeof	2012-07-16 09:28:44.000000000 +0200
-@@ -25,8 +25,13 @@ $NGX_INCLUDE_UNISTD_H
+--- nginx-1.7.9.orig/auto/types/sizeof	2014-12-23 09:28:38.000000000 -0600
++++ nginx-1.7.9/auto/types/sizeof	2014-12-25 00:19:43.665499238 -0600
+@@ -14,7 +14,7 @@ END
+ 
+ ngx_size=
+ 
+-cat << END > $NGX_AUTOTEST.c
++cat << _EOF > $NGX_AUTOTEST.c
+ 
+ #include <sys/types.h>
+ #include <sys/time.h>
+@@ -25,29 +25,43 @@ $NGX_INCLUDE_UNISTD_H
  $NGX_INCLUDE_INTTYPES_H
  $NGX_INCLUDE_INTTYPES_H
  $NGX_INCLUDE_AUTO_CONFIG_H
  $NGX_INCLUDE_AUTO_CONFIG_H
  
  
-+char object_code_block[] = {
-+	'\n', 'e', '4', 'V', 'A',
-+	'0', 'x', ('0' + sizeof($ngx_type)),
-+	'Y', '3', 'p', 'M', '\n'
-+};
-+
- int main() {
+-int main() {
 -    printf("%d", (int) sizeof($ngx_type));
 -    printf("%d", (int) sizeof($ngx_type));
++#if !defined( PASTE)
++#define PASTE2( x, y) x##y
++#define PASTE( x, y)  PASTE2( x, y)
++#endif /* PASTE */
++
++#define SAY_IF_SIZEOF( typename, type, size)   \\
++    static char PASTE( PASTE( PASTE( sizeof_, typename), _is_), size) \\
++    [(sizeof(type) == (size)) ? 1 : -1]
++
++SAY_IF_SIZEOF(TEST_TYPENAME, TEST_TYPE, TEST_SIZE);
++
++int main(void)
++{
      return 0;
      return 0;
  }
  }
  
  
-@@ -40,7 +45,7 @@ eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&
+-END
+-
++_EOF
+ 
+-ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \
+-          -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
++_ngx_typename=`echo "$ngx_type" | sed 's/ /_/g;s/\*/p/'`
++ngx_size="-1"
++ngx_size=`for i in 1 2 4 8 16 ; do \
++    $CC $CC_TEST_FLAGS $CC_AUX_FLAGS \
++    -DTEST_TYPENAME="$_ngx_typename" -DTEST_TYPE="$ngx_type" -DTEST_SIZE="$i" \
++    $NGX_AUTOTEST.c -o $NGX_AUTOTEST \
++    $NGX_LD_OPT $ngx_feature_libs >/dev/null 2>&1 || continue ;\
++    echo $i ; break ; done`
+ 
+-eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
++rm -rf $NGX_AUTOTEST*
  
  
++if test -z $ngx_size ; then
++    ngx_size=-1
++fi
  
  
- if [ -x $NGX_AUTOTEST ]; then
+-if [ -x $NGX_AUTOTEST ]; then
 -    ngx_size=`$NGX_AUTOTEST`
 -    ngx_size=`$NGX_AUTOTEST`
-+    ngx_size=`sed -ne 's/^e4VA0x\(.\)Y3pM$/\1/p' < $NGX_AUTOTEST`
++if [ $ngx_size -gt 0 ]; then
      echo " $ngx_size bytes"
      echo " $ngx_size bytes"
  fi
  fi
  
  
+-
+-rm -rf $NGX_AUTOTEST*
+-
+-
+ case $ngx_size in
+     4)
+         if [ "$ngx_type"="long" ]; then

+ 6 - 6
package/nginx/patches/patch-auto_unix

@@ -1,6 +1,6 @@
---- nginx-1.2.2.orig/auto/unix	2012-07-02 18:51:02.000000000 +0200
-+++ nginx-1.2.2/auto/unix	2012-07-16 09:27:16.000000000 +0200
-@@ -618,7 +618,7 @@ ngx_feature_test="void *p; p = memalign(
+--- nginx-1.7.9.orig/auto/unix	2014-12-23 09:28:38.000000000 -0600
++++ nginx-1.7.9/auto/unix	2014-12-25 00:19:14.593499364 -0600
+@@ -651,7 +651,7 @@ ngx_feature_test="void *p; p = memalign(
  
  
  ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
  ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
  ngx_feature_name="NGX_HAVE_MAP_ANON"
  ngx_feature_name="NGX_HAVE_MAP_ANON"
@@ -9,7 +9,7 @@
  ngx_feature_incs="#include <sys/mman.h>"
  ngx_feature_incs="#include <sys/mman.h>"
  ngx_feature_path=
  ngx_feature_path=
  ngx_feature_libs=
  ngx_feature_libs=
-@@ -631,7 +631,7 @@ ngx_feature_test="void *p;
+@@ -664,7 +664,7 @@ ngx_feature_test="void *p;
  
  
  ngx_feature='mmap("/dev/zero", MAP_SHARED)'
  ngx_feature='mmap("/dev/zero", MAP_SHARED)'
  ngx_feature_name="NGX_HAVE_MAP_DEVZERO"
  ngx_feature_name="NGX_HAVE_MAP_DEVZERO"
@@ -18,7 +18,7 @@
  ngx_feature_incs="#include <sys/mman.h>
  ngx_feature_incs="#include <sys/mman.h>
                    #include <sys/stat.h>
                    #include <sys/stat.h>
                    #include <fcntl.h>"
                    #include <fcntl.h>"
-@@ -646,7 +646,7 @@ ngx_feature_test='void *p; int  fd;
+@@ -679,7 +679,7 @@ ngx_feature_test='void *p; int  fd;
  
  
  ngx_feature="System V shared memory"
  ngx_feature="System V shared memory"
  ngx_feature_name="NGX_HAVE_SYSVSHM"
  ngx_feature_name="NGX_HAVE_SYSVSHM"
@@ -27,7 +27,7 @@
  ngx_feature_incs="#include <sys/ipc.h>
  ngx_feature_incs="#include <sys/ipc.h>
                    #include <sys/shm.h>"
                    #include <sys/shm.h>"
  ngx_feature_path=
  ngx_feature_path=
-@@ -660,7 +660,7 @@ ngx_feature_test="int  id;
+@@ -693,7 +693,7 @@ ngx_feature_test="int  id;
  
  
  ngx_feature="POSIX semaphores"
  ngx_feature="POSIX semaphores"
  ngx_feature_name="NGX_HAVE_POSIX_SEM"
  ngx_feature_name="NGX_HAVE_POSIX_SEM"