Date: Tue, 18 Sep 2012 14:39:25 GMT From: Ruslan Mahmatkhanov <rm@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/171745: www/nginx: add third-party module http_auth_ldap Message-ID: <201209181439.q8IEdP7h000983@red.freebsd.org> Resent-Message-ID: <201209181440.q8IEe4Ec036052@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 171745 >Category: ports >Synopsis: www/nginx: add third-party module http_auth_ldap >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Sep 18 14:40:04 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Ruslan Mahmatkhanov >Release: 9.0-RELEASE >Organization: >Environment: 9.0-RELEASE i386 >Description: This patch adds support for http_auth_ldap third-party module into www/nginx and www/nginx-devel ports. It's disabled by default. Module homepage: http://code.google.com/p/nginx-auth-ldap/ Since project doesn't have official tarballs I had packed the latest git checkout and hosting it locally. Runtime is tested on 9.0-FreeBSD i386 agains OpenLDAP 2.4.31. Here is the sample config: http://code.google.com/p/nginx-auth-ldap/source/browse/example.conf Here is the build log (with HTTP_AUTH_LDAP option enabled): http://people.freebsd.org/~rm/nginx-1.2.3%2c1.log http://people.freebsd.org/~rm/nginx-devel-1.3.6.log The patch should be applied against /usr/ports/www. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: nginx/distinfo =================================================================== --- nginx/distinfo (revision 304446) +++ nginx/distinfo (working copy) @@ -6,6 +6,8 @@ SIZE (nginx-accesskey-2.0.3.tar.gz) = 2632 SHA256 (samizdatco-nginx-http-auth-digest-bd1c86a.tar.gz) = e223f55fd97e56425e232d8698e024707d1b2ed3714eff7d91a4d1ca76b4cbee SIZE (samizdatco-nginx-http-auth-digest-bd1c86a.tar.gz) = 14454 +SHA256 (http_auth_ldap-c2c3d5ea4919.tar.gz) = cecb8a5bbfdc25ff588e13f5a7f724fb2ea0336604e1e50044115910a58e700c +SIZE (http_auth_ldap-c2c3d5ea4919.tar.gz) 5118 SHA256 (ngx_http_auth_pam_module-1.2.tar.gz) = 5a85970ba61a99f55a26d2536a11d512b39bbd622f5737d25a9a8c10db81efa9 SIZE (ngx_http_auth_pam_module-1.2.tar.gz) = 5424 SHA256 (ngx_http_auth_request_module-0.2.tar.gz) = eea5d0ec02bba93d0b204a034230cc61462b60497cbac6f581d7e008a9262ba4 Index: nginx/Makefile =================================================================== --- nginx/Makefile (revision 304446) +++ nginx/Makefile (working copy) @@ -55,6 +55,7 @@ HTTP_ACCEPT_LANGUAGE \ HTTP_ACCESSKEY \ HTTP_AUTH_DIGEST \ + HTTP_AUTH_LDAP \ HTTP_AUTH_PAM \ HTTP_AUTH_REQ \ HTTP_DAV_EXT \ @@ -139,6 +140,7 @@ HTTP_ACCEPT_LANGUAGE_DESC= 3rd party accept_language module HTTP_ACCESSKEY_DESC= 3rd party http_accesskey module HTTP_AUTH_DIGEST_DESC= 3rd party http_authdigest module +HTTP_AUTH_LDAP_DESC= 3rd party http_auth_ldap module HTTP_AUTH_PAM_DESC= 3rd party http_auth_pam module HTTP_AUTH_REQ_DESC= 3rd party http_auth_request module HTTP_DAV_EXT_DESC= 3rd party webdav_ext module @@ -291,6 +293,15 @@ CONFIGURE_ARGS+=--add-module=${WRKDIR}/samizdatco-nginx-http-auth-digest-${GIT_AUTH_DIGEST_VERSION} .endif +.if ${PORT_OPTIONS:MHTTP_AUTH_LDAP} +GIT_HTTP_AUTH_LDAP_VERSION= c2c3d5ea4919 +MASTER_SITES+= ${MASTER_SITE_LOCAL:S/$/:http_auth_ldap/} +MASTER_SITE_SUBDIR= rm/:http_auth_ldap +DISTFILES+= http_auth_ldap-${GIT_HTTP_AUTH_LDAP_VERSION}.tar.gz:http_auth_ldap +CONFIGURE_ARGS+=--add-module=${WRKDIR}/http_auth_ldap-${GIT_HTTP_AUTH_LDAP_VERSION} +USE_OPENLDAP= yes +.endif + .if ${PORT_OPTIONS:MHTTP_AUTH_PAM} NGINX_AUTH_PAM_VERSION= 1.2 MASTER_SITES+= http://web.iti.upv.es/~sto/nginx/:auth_pam Index: nginx-devel/Makefile =================================================================== --- nginx-devel/Makefile (revision 304446) +++ nginx-devel/Makefile (working copy) @@ -57,6 +57,7 @@ HTTP_ACCEPT_LANGUAGE \ HTTP_ACCESSKEY \ HTTP_AUTH_DIGEST \ + HTTP_AUTH_LDAP \ HTTP_AUTH_PAM \ HTTP_AUTH_REQ \ HTTP_DAV_EXT \ @@ -142,6 +143,7 @@ HTTP_ACCEPT_LANGUAGE_DESC= 3rd party accept_language module HTTP_ACCESSKEY_DESC= 3rd party http_accesskey module HTTP_AUTH_DIGEST_DESC= 3rd party http_authdigest module +HTTP_AUTH_LDAP_DESC= 3rd party http_auth_ldap module HTTP_AUTH_PAM_DESC= 3rd party http_auth_pam module HTTP_AUTH_REQ_DESC= 3rd party http_auth_request module HTTP_DAV_EXT_DESC= 3rd party webdav_ext module @@ -293,6 +295,15 @@ CONFIGURE_ARGS+=--add-module=${WRKDIR}/samizdatco-nginx-http-auth-digest-${GIT_AUTH_DIGEST_VERSION} .endif +.if ${PORT_OPTIONS:MHTTP_AUTH_LDAP} +GIT_HTTP_AUTH_LDAP_VERSION= c2c3d5ea4919 +MASTER_SITES+= ${MASTER_SITE_LOCAL:S/$/:http_auth_ldap/} +MASTER_SITE_SUBDIR= rm/:http_auth_ldap +DISTFILES+= http_auth_ldap-${GIT_HTTP_AUTH_LDAP_VERSION}.tar.gz:http_auth_ldap +CONFIGURE_ARGS+=--add-module=${WRKDIR}/http_auth_ldap-${GIT_HTTP_AUTH_LDAP_VERSION} +USE_OPENLDAP= yes +.endif + .if ${PORT_OPTIONS:MHTTP_AUTH_PAM} NGINX_AUTH_PAM_VERSION= 1.2 MASTER_SITES+= http://web.iti.upv.es/~sto/nginx/:auth_pam Index: nginx-devel/distinfo =================================================================== --- nginx-devel/distinfo (revision 304446) +++ nginx-devel/distinfo (working copy) @@ -6,6 +6,8 @@ SIZE (nginx-accesskey-2.0.3.tar.gz) = 2632 SHA256 (samizdatco-nginx-http-auth-digest-bd1c86a.tar.gz) = e223f55fd97e56425e232d8698e024707d1b2ed3714eff7d91a4d1ca76b4cbee SIZE (samizdatco-nginx-http-auth-digest-bd1c86a.tar.gz) = 14454 +SHA256 (http_auth_ldap-c2c3d5ea4919.tar.gz) = cecb8a5bbfdc25ff588e13f5a7f724fb2ea0336604e1e50044115910a58e700c +SIZE (http_auth_ldap-c2c3d5ea4919.tar.gz) 5118 SHA256 (ngx_http_auth_pam_module-1.2.tar.gz) = 5a85970ba61a99f55a26d2536a11d512b39bbd622f5737d25a9a8c10db81efa9 SIZE (ngx_http_auth_pam_module-1.2.tar.gz) = 5424 SHA256 (ngx_http_auth_request_module-0.2.tar.gz) = eea5d0ec02bba93d0b204a034230cc61462b60497cbac6f581d7e008a9262ba4 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209181439.q8IEdP7h000983>