--- /usr/portage/www-servers/nginx/nginx-0.8.36-r1.ebuild 2010-05-29 08:37:20.000000000 +0200 +++ /usr/portage/www-servers/nginx/nginx-0.8.36-r1.ebuild 2010-05-30 11:07:19.000000000 +0200 @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-0.8.36-r1.ebuild,v 1.2 2010/05/29 06:35:55 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-0.8.36-r1.ebuild,v 1.1 2010/05/03 19:34:35 hollow Exp $ EAPI="2" @@ -28,6 +28,9 @@ # http_uwsgi (http://projects.unbit.it/uwsgi/, GPL-2 license) HTTP_UWSGI_MODULE_PV="0.9.5" +# ngx_cache_purge (http://labs.frickle.com/nginx_ngx_cache_purge/, BSD-2 license) +HTTP_CACHE_PURGE_PV="1.0" + inherit eutils ssl-cert toolchain-funcs perl-module ruby-ng flag-o-matic DESCRIPTION="Robust, small and high performance http and reverse proxy server" @@ -38,7 +41,8 @@ SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz nginx_modules_http_passenger? ( mirror://rubyforge/passenger/passenger-${PASSENGER_PV}.tar.gz ) nginx_modules_http_push? ( http://pushmodule.slact.net/downloads/${HTTP_PUSH_MODULE_P}.tar.gz ) - nginx_modules_http_uwsgi? ( http://projects.unbit.it/downloads/uwsgi-${HTTP_UWSGI_MODULE_PV}.tar.gz )" + nginx_modules_http_uwsgi? ( http://projects.unbit.it/downloads/uwsgi-${HTTP_UWSGI_MODULE_PV}.tar.gz ) + nginx_modules_http_cache_purge? ( http://labs.frickle.com/files/ngx_cache_purge-${HTTP_CACHE_PURGE_PV}.tar.gz )" LICENSE="BSD-2 GPL-2 MIT" SLOT="0" @@ -50,7 +54,7 @@ NGINX_MODULES_OPT="addition dav degradation flv geoip gzip_static image_filter perl random_index realip secure_link stub_status sub xslt" NGINX_MODULES_MAIL="imap pop3 smtp" -NGINX_MODULES_3RD="http_passenger http_push http_uwsgi" +NGINX_MODULES_3RD="http_cache_purge http_passenger http_push http_uwsgi" IUSE="aio debug +http +http-cache ipv6 libatomic +pcre ssl vim-syntax" @@ -170,6 +174,10 @@ fi done + if use nginx_modules_http_cache_purge; then + myconf="${myconf} --add-module=${WORKDIR}/ngx_cache_purge-${HTTP_CACHE_PURGE_PV}" + fi + if use nginx_modules_http_fastcgi; then myconf="${myconf} --with-http_realip_module" fi