diff --git a/www-servers/nginx/nginx-0.8.13.ebuild b/www-servers/nginx/nginx-0.8.13.ebuild index 68fa84c..ab0e648 100644 --- a/www-servers/nginx/nginx-0.8.13.ebuild +++ b/www-servers/nginx/nginx-0.8.13.ebuild @@ -7,17 +7,21 @@ inherit eutils ssl-cert toolchain-funcs DESCRIPTION="Robust, small and high performance http and reverse proxy server" HOMEPAGE="http://nginx.net/" -SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz" +SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz + pamauth? + ( http://web.iti.upv.es/~sto/nginx/ngx_http_auth_pam_module-1.1.tar.gz )" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" -IUSE="addition debug fastcgi flv imap ipv6 pcre perl random-index securelink ssl status sub webdav zlib" +IUSE="addition debug fastcgi flv imap ipv6 pamauth pcre perl random-index securelink ssl +status sub webdav 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 )" + perl? ( >=dev-lang/perl-5.8 ) + pamauth? ( sys-libs/pam )" pkg_setup() { ebegin "Creating nginx user and group" @@ -62,6 +66,7 @@ src_compile() { 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" + use pamauth && myconf="${myconf} --add-module=../ngx_http_auth_pam_module-1.1" use status && myconf="${myconf} --with-http_stub_status_module" use webdav && myconf="${myconf} --with-http_dav_module" use sub && myconf="${myconf} --with-http_sub_module"