diff options
author | 2006-02-22 12:01:07 +0000 | |
---|---|---|
committer | 2006-02-22 12:01:07 +0000 | |
commit | 3a71b76d3623f1bf6f8c02462e7ddfc9370a55c3 (patch) | |
tree | 1b2ea86d80bff90b1423730fa0c5e9d8db7010b6 /www-servers | |
parent | Actually removed that patch and added it to SRC_URI. (diff) | |
download | gentoo-2-3a71b76d3623f1bf6f8c02462e7ddfc9370a55c3.tar.gz gentoo-2-3a71b76d3623f1bf6f8c02462e7ddfc9370a55c3.tar.bz2 gentoo-2-3a71b76d3623f1bf6f8c02462e7ddfc9370a55c3.zip |
* bug #123680
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/nginx/ChangeLog | 8 | ||||
-rw-r--r-- | www-servers/nginx/Manifest | 15 | ||||
-rw-r--r-- | www-servers/nginx/files/digest-nginx-0.3.29-r1 | 3 | ||||
-rw-r--r-- | www-servers/nginx/files/nginx-0.3.29-hardened.patch | 59 | ||||
-rw-r--r-- | www-servers/nginx/nginx-0.3.29-r1.ebuild | 79 |
5 files changed, 160 insertions, 4 deletions
diff --git a/www-servers/nginx/ChangeLog b/www-servers/nginx/ChangeLog index 8d4e754e942e..86d5c780bd7b 100644 --- a/www-servers/nginx/ChangeLog +++ b/www-servers/nginx/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-servers/nginx # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.74 2006/02/20 22:45:00 voxus Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.75 2006/02/22 12:01:07 voxus Exp $ + +*nginx-0.3.29-r1 (22 Feb 2006) + + 22 Feb 2006; Konstantin Arkhipov <voxus@gentoo.org> +nginx-0.3.29-r1.ebuild, + +files/nginx-0.3.29-hardened.patch: + Closing bug #123680, patch provided by author. *nginx-0.3.29 (20 Feb 2006) diff --git a/www-servers/nginx/Manifest b/www-servers/nginx/Manifest index 6015d69f9293..2bbe37e3772c 100644 --- a/www-servers/nginx/Manifest +++ b/www-servers/nginx/Manifest @@ -1,6 +1,6 @@ -MD5 6de2a99aba288fc68cf9a78c1e95d2a9 ChangeLog 12483 -RMD160 6b1be5eb0642705ffebb85540d0a1801c7570052 ChangeLog 12483 -SHA256 a996a6bc1fb868988c55c16149d52af43244eae5409206cc428f20f276a487d3 ChangeLog 12483 +MD5 afa8df84271346c81e7c0476f233dcd2 ChangeLog 12682 +RMD160 70a398d699a9957913225ebb4fe74cbf0b14c527 ChangeLog 12682 +SHA256 522f1821f928d6746e08096ddc5f4f2a40bd83dd861bbc37361a7467b3afdbb6 ChangeLog 12682 MD5 e8474104898712edc8575c940152bbd3 files/digest-nginx-0.1.45 64 RMD160 f4b7c978be013c433ef925f9e60356e5f8a8ace2 files/digest-nginx-0.1.45 64 SHA256 bae972cd23cee46342e98d7d5e52cb116190d8f8a95c4c9555887ce57ea1899c files/digest-nginx-0.1.45 64 @@ -13,9 +13,15 @@ SHA256 7a964f8c05d49c4b8c87fb941579122794d754b1855e9abf66120c577327a95a files/di MD5 27a7bedcc2bee2a6bcf27f460b0e3f88 files/digest-nginx-0.3.29 238 RMD160 3f90e54a8c89e75f3943ed59aec54926cd62ab30 files/digest-nginx-0.3.29 238 SHA256 60654e41cf66a0f250227af0ad0d249d3ae1f23ee202303ec2b074cf8d55b4c1 files/digest-nginx-0.3.29 238 +MD5 27a7bedcc2bee2a6bcf27f460b0e3f88 files/digest-nginx-0.3.29-r1 238 +RMD160 3f90e54a8c89e75f3943ed59aec54926cd62ab30 files/digest-nginx-0.3.29-r1 238 +SHA256 60654e41cf66a0f250227af0ad0d249d3ae1f23ee202303ec2b074cf8d55b4c1 files/digest-nginx-0.3.29-r1 238 MD5 d8f7e621e098b58848a6b5fb045c49c3 files/nginx 994 RMD160 4b36e15714c84f8e8228d0ca6790c545736d74bb files/nginx 994 SHA256 17a32f38e066ecc91ad91496e0ab8f0885e5550d42bf62dbecfdf2747a0fb1cd files/nginx 994 +MD5 8986e9cb4da6fafe0660385cd8233b29 files/nginx-0.3.29-hardened.patch 1165 +RMD160 2504bce6f640ad8a8e23ad13bc899ed7f0527a19 files/nginx-0.3.29-hardened.patch 1165 +SHA256 539ec91005a169c0401a2ba8e8e069d7e8d1fe1323c58e33ade209aa55c9adb6 files/nginx-0.3.29-hardened.patch 1165 MD5 fecedd05099122b1f8169152e5bc9462 files/nginx.conf 1400 RMD160 d982c853d9145643c4a885012a41fc4acd39080f files/nginx.conf 1400 SHA256 11adbf9f0903f473b98474d460e41ec1161daa58d37e5c05019b03eae4d944f7 files/nginx.conf 1400 @@ -34,6 +40,9 @@ SHA256 ec4a8c3fa5f8917e96042d464ee1ed55420a78e69b0ee98f69e796712aadbc78 nginx-0. MD5 095ed1434baabf705fdbe6c4fbc92cf1 nginx-0.3.12.ebuild 1935 RMD160 949a3e1f7336513591f4e68713c883940347a700 nginx-0.3.12.ebuild 1935 SHA256 4b886077a85f3753f21909c2f0f1aac8744d9c8b9816198c37f5ca4f89bc40f4 nginx-0.3.12.ebuild 1935 +MD5 a93342de25ce6730729f1f16cc932e62 nginx-0.3.29-r1.ebuild 2170 +RMD160 702ef58165fdfe1cb5574704505c720a06d8f4b5 nginx-0.3.29-r1.ebuild 2170 +SHA256 43653cc05eee2d8009119469b05a6285a85ec21781e157da054aee54652f5b18 nginx-0.3.29-r1.ebuild 2170 MD5 5fa4d2433e2fe700df503ce2af183f1d nginx-0.3.29.ebuild 2082 RMD160 b2edccce06a0ac77d464ce03e35d31c042d78989 nginx-0.3.29.ebuild 2082 SHA256 4882ede68bdcabaced1051b497d2ba74da532b4bcbfea2ad62f2706d17007331 nginx-0.3.29.ebuild 2082 diff --git a/www-servers/nginx/files/digest-nginx-0.3.29-r1 b/www-servers/nginx/files/digest-nginx-0.3.29-r1 new file mode 100644 index 000000000000..141623844c31 --- /dev/null +++ b/www-servers/nginx/files/digest-nginx-0.3.29-r1 @@ -0,0 +1,3 @@ +MD5 7831dcb7753094edd66494cab8b45b6b nginx-0.3.29.tar.gz 385539 +RMD160 a36301fe3f4b7e39970f99885dcf1081cc23c997 nginx-0.3.29.tar.gz 385539 +SHA256 01a3bc6787528c2216da9de8b9df05b4cfb1e9e5d8f94cb02454206e6e561f09 nginx-0.3.29.tar.gz 385539 diff --git a/www-servers/nginx/files/nginx-0.3.29-hardened.patch b/www-servers/nginx/files/nginx-0.3.29-hardened.patch new file mode 100644 index 000000000000..0277697f944c --- /dev/null +++ b/www-servers/nginx/files/nginx-0.3.29-hardened.patch @@ -0,0 +1,59 @@ +--- src/core/ngx_cpuinfo.c Wed Feb 8 14:39:29 2006 ++++ src/core/ngx_cpuinfo.c Wed Feb 22 12:59:56 2006 +@@ -14,6 +14,38 @@ + static ngx_inline void ngx_cpuid(uint32_t i, uint32_t *buf); + + ++#if ( __i386__ ) ++ ++static ngx_inline void ++ngx_cpuid(uint32_t i, uint32_t *buf) ++{ ++ ++ /* ++ * we could not use %ebx as parameter if gcc building with -fPIC ++ * and we could not push %ebx on stack ++ */ ++ ++ __asm__ ( ++ ++ " mov %%ebx, %%esi; " ++ ++ " cpuid; " ++ " mov %%eax, %0; " ++ " mov %%ebx, %1; " ++ " mov %%edx, %2; " ++ " mov %%ecx, %3; " ++ ++ " mov %%esi, %%ebx; " ++ ++ : "=m" (buf[0]), "=m" (buf[1]), "=m" (buf[2]), "=m" (buf[3]) ++ : "a" (i) ++ : "ecx", "edx", "esi" ); ++} ++ ++ ++#else /* __amd64__ */ ++ ++ + static ngx_inline void + ngx_cpuid(uint32_t i, uint32_t *buf) + { +@@ -32,6 +64,8 @@ + } + + ++#endif ++ + /* auto detect the L2 cache line size of modern and widespread CPUs */ + + void +@@ -53,6 +87,8 @@ + if (vbuf[0] == 0) { + return; + } ++ ++ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, "CPU: \"%s\"", vendor); + + ngx_cpuid(1, cpu); + diff --git a/www-servers/nginx/nginx-0.3.29-r1.ebuild b/www-servers/nginx/nginx-0.3.29-r1.ebuild new file mode 100644 index 000000000000..4c92a976c4bf --- /dev/null +++ b/www-servers/nginx/nginx-0.3.29-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-0.3.29-r1.ebuild,v 1.1 2006/02/22 12:01:07 voxus Exp $ + +inherit eutils + +DESCRIPTION="Robust, small and high performance http and reverse proxy server" + +HOMEPAGE="http://sysoev.ru/nginx/" +SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug fastcgi imap pcre perl threads ssl zlib" + +DEPEND="dev-lang/perl + pcre? ( >=dev-libs/libpcre-4.2 ) + ssl? ( dev-libs/openssl ) + zlib? ( sys-libs/zlib ) + perl? ( >=dev-lang/perl-5.8 )" + +src_unpack() { + unpack ${A} + cd ${S} || die + + epatch ${FILESDIR}/${P}-hardened.patch +} + +src_compile() { + local myconf + + if use threads; then + einfo + ewarn "threads support is experimental at the moment" + ewarn "do not use it on production systems - you've been warned" + einfo + myconf="${myconf} --with-threads" + fi + + use fastcgi || myconf="${myconf} --without-http_fastcgi_module" + use zlib || myconf="${myconf} --without-http_gzip_module" + use pcre || { + myconf="${myconf} --without-pcre --without-http_rewrite_module" + } + use debug && myconf="${myconf} --with-debug" + use ssl && myconf="${myconf} --with-http_ssl_module" + use imap && myconf="${myconf} --with-imap" # pop3/imap4 proxy support + use perl && myconf="${myconf} --with-http_perl_module" + + ./configure \ + --prefix=/usr \ + --conf-path=/etc/${PN}/${PN}.conf \ + --http-log-path=/var/log/${PN}/access_log \ + --error-log-path=/var/log/${PN}/error_log \ + --pid-path=/var/run/${PN}.pid \ + --http-client-body-temp-path=/var/tmp/${PN}/client \ + --http-proxy-temp-path=/var/tmp/${PN}/proxy \ + --http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \ + --with-md5-asm --with-md5=/usr/include \ + ${myconf} || die "configure failed" + + emake || die "failed to compile" +} + +src_install() { + keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi} + + dosbin objs/nginx + doinitd ${FILESDIR}/nginx + + rm conf/nginx.conf + cp ${FILESDIR}/nginx.conf-r1 ${T}/nginx.conf + + dodir /etc/${PN} + insinto /etc/${PN} + doins conf/* ${T}/nginx.conf + + dodoc CHANGES{,.ru} LICENSE README +} |