Created
April 23, 2012 06:57
-
-
Save bondario/2469281 to your computer and use it in GitHub Desktop.
gentoo nginx auth_ldap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/portage/www-servers/nginx/nginx-1.0.14.ebuild 2012-03-15 22:31:29.000000000 +0400 | |
+++ /usr/local/portage/www-servers/nginx/nginx-1.0.14-r99.ebuild 2012-03-22 14:16:52.010119097 +0400 | |
@@ -17,6 +17,12 @@ | |
# prevent perl-module from adding automagic perl DEPENDs | |
GENTOO_DEPEND_ON_PERL="no" | |
+# http_uploadprogress (https://github.com/kvspb/nginx-auth-ldap, BSD-2 license) | |
+HTTP_AUTH_LDAP_MODULE_PV="c2c3d5e" | |
+HTTP_AUTH_LDAP_MODULE_P="kvspb-nginx-auth-ldap-${HTTP_AUTH_LDAP_MODULE_PV}" | |
+HTTP_AUTH_LDAP_MODULE_SHA1="c2c3d5e" | |
+HTTP_AUTH_LDAP_MODULE_URI="http://github.com/kvspb/nginx-auth-ldap/tarball/${HTTP_AUTH_LDAP_MODULE_PV}" | |
+ | |
# http_uploadprogress (https://github.com/masterzen/nginx-upload-progress-module, BSD-2 license) | |
HTTP_UPLOAD_PROGRESS_MODULE_PV="0.8.3" | |
HTTP_UPLOAD_PROGRESS_MODULE_P="ngx_upload_progress-${HTTP_UPLOAD_PROGRESS_MODULE_PV}" | |
@@ -55,6 +61,7 @@ | |
DESCRIPTION="Robust, small and high performance http and reverse proxy server" | |
HOMEPAGE="http://nginx.org" | |
SRC_URI="http://nginx.org/download/${P}.tar.gz | |
+ nginx_modules_http_auth_ldap? ( ${HTTP_AUTH_LDAP_MODULE_URI} -> ${HTTP_AUTH_LDAP_MODULE_P}.tar.gz ) | |
nginx_modules_http_upload_progress? ( ${HTTP_UPLOAD_PROGRESS_MODULE_URI} -> ${HTTP_UPLOAD_PROGRESS_MODULE_P}.tar.gz ) | |
nginx_modules_http_headers_more? ( ${HTTP_HEADERS_MORE_MODULE_URI} -> ${HTTP_HEADERS_MORE_MODULE_P}.tar.gz ) | |
nginx_modules_http_push? ( ${HTTP_PUSH_MODULE_URI} ) | |
@@ -64,7 +71,7 @@ | |
LICENSE="as-is BSD BSD-2 GPL-2 MIT" | |
SLOT="0" | |
-KEYWORDS="amd64 ~ppc x86 ~x86-fbsd" | |
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" | |
NGINX_MODULES_STD="access auth_basic autoindex browser charset empty_gif fastcgi | |
geo gzip limit_req limit_zone map memcached proxy referer rewrite scgi ssi | |
@@ -73,6 +80,7 @@ | |
mp4 perl random_index realip secure_link stub_status sub xslt" | |
NGINX_MODULES_MAIL="imap pop3 smtp" | |
NGINX_MODULES_3RD=" | |
+ http_auth_ldap | |
http_upload_progress | |
http_headers_more | |
http_passenger | |
@@ -194,6 +202,11 @@ | |
fi | |
# third-party modules | |
+ if use nginx_modules_http_auth_ldap; then | |
+ http_enabled=1 | |
+ myconf+=" --add-module=${WORKDIR}/${HTTP_AUTH_LDAP_MODULE_P}" | |
+ fi | |
+ | |
if use nginx_modules_http_upload_progress; then | |
http_enabled=1 | |
myconf+=" --add-module=${WORKDIR}/masterzen-nginx-upload-progress-module-${HTTP_UPLOAD_PROGRESS_MODULE_SHA1}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment