From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 18 14:40:05 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 03230106566C for ; Tue, 18 Sep 2012 14:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CA47F8FC15 for ; Tue, 18 Sep 2012 14:40:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8IEe46x036053 for ; Tue, 18 Sep 2012 14:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8IEe4Ec036052; Tue, 18 Sep 2012 14:40:04 GMT (envelope-from gnats) Resent-Date: Tue, 18 Sep 2012 14:40:04 GMT Resent-Message-Id: <201209181440.q8IEe4Ec036052@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ruslan Mahmatkhanov Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 362E3106564A for ; Tue, 18 Sep 2012 14:39:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 16EE98FC0C for ; Tue, 18 Sep 2012 14:39:26 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8IEdPem000984 for ; Tue, 18 Sep 2012 14:39:25 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q8IEdP7h000983; Tue, 18 Sep 2012 14:39:25 GMT (envelope-from nobody) Message-Id: <201209181439.q8IEdP7h000983@red.freebsd.org> Date: Tue, 18 Sep 2012 14:39:25 GMT From: Ruslan Mahmatkhanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/171745: www/nginx: add third-party module http_auth_ldap X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 14:40:05 -0000 >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: