From owner-svn-ports-head@FreeBSD.ORG Mon Feb 18 00:18:22 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BAE8F8F2; Mon, 18 Feb 2013 00:18:22 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id ACB11F60; Mon, 18 Feb 2013 00:18:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1I0IM5X034378; Mon, 18 Feb 2013 00:18:22 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1I0IL7a034371; Mon, 18 Feb 2013 00:18:21 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201302180018.r1I0IL7a034371@svn.freebsd.org> From: Martin Wilke Date: Mon, 18 Feb 2013 00:18:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r312460 - in head/security: . php-openid-ldap php-openid-ldap/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2013 00:18:22 -0000 Author: miwi Date: Mon Feb 18 00:18:20 2013 New Revision: 312460 URL: http://svnweb.freebsd.org/changeset/ports/312460 Log: An open source PHP-based OpenID identity provider using LDAP as backend. OpenID-LDAP is a small, fairly lightweight, standalone, multi user Identity Provider for OpenID authentication. It comprises a few PHP scripts that can be used by one individual to run their own personal OpenID IdP. This program requires no external libraries, and has very minimal requirements. It should run on any PHP server (v4.2+), and can support OpenID in 'Smart Mode.' This program caches all data using built-in PHP session handling, so it requires no database, and no explicit write access to the file system. OpenID-LDAP is NOT compatible with Suhosin or other hardened PHP systems. WWW: http://www.openid-ldap.org/ PR: ports/175258 Submitted by: Matthew X. Economou Added: head/security/php-openid-ldap/ head/security/php-openid-ldap/Makefile (contents, props changed) head/security/php-openid-ldap/distinfo (contents, props changed) head/security/php-openid-ldap/files/ head/security/php-openid-ldap/files/pkg-message.in (contents, props changed) head/security/php-openid-ldap/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Sun Feb 17 23:43:47 2013 (r312459) +++ head/security/Makefile Mon Feb 18 00:18:20 2013 (r312460) @@ -677,6 +677,7 @@ SUBDIR += pgpin SUBDIR += php-Auth_OpenID SUBDIR += php-Auth_OpenID2 + SUBDIR += php-openid-ldap SUBDIR += php-suhosin SUBDIR += php5-filter SUBDIR += php5-hash Added: head/security/php-openid-ldap/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/php-openid-ldap/Makefile Mon Feb 18 00:18:20 2013 (r312460) @@ -0,0 +1,70 @@ +# Created by: Matthew X. Economou +# $FreeBSD$ + +PORTNAME= openid-ldap +PORTVERSION= 0.8.9 +CATEGORIES= security www +MASTER_SITES= http://www.openid-ldap.org/releases/ +PKGNAMEPREFIX= php${PHP_VER}- +EXTRACT_SUFX= -noarc.tar.gz + +MAINTAINER= xenophon+freebsd@irtnog.org +COMMENT= PHP-based OpenID identity provider using LDAP as backend + +LICENSE= GPLv2 + +OPTIONS_DEFINE= DOCS + +DEFAULT_PHP_VER=53 +IGNORE_WITH_PHP=5 +USE_PHP= bcmath ldap session + +PKGMESSAGE= ${WRKDIR}/pkg-message +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-noarc +NO_BUILD= yes +NO_INSTALL= yes + +SUB_FILES+= pkg-message + +PLIST_FILES= %%WWWDIR%%/style.css \ + %%WWWDIR%%/images/openid-logo.gif \ + %%WWWDIR%%/images/openid.gif \ + %%WWWDIR%%/images/logo.gif \ + %%WWWDIR%%/images/openid.ico \ + %%WWWDIR%%/images/user.gif \ + %%WWWDIR%%/images/openid.png \ + %%WWWDIR%%/images/seatbelt/icon-high.png \ + %%WWWDIR%%/images/seatbelt/icon-gray.png \ + %%WWWDIR%%/images/seatbelt/icon-logo.png \ + %%WWWDIR%%/engine.php \ + %%WWWDIR%%/showme.php \ + %%WWWDIR%%/index.php \ + %%WWWDIR%%/ldap.php +PLIST_DIRS= %%WWWDIR%%/images/seatbelt \ + %%WWWDIR%%/images \ + %%WWWDIR%% + +.include + +.if ${PORT_OPTIONS:MDOCS} +PLIST_FILES+= %%DOCSDIR%%/INSTALL \ + %%DOCSDIR%%/FAQ \ + %%DOCSDIR%%/LICENSE \ + %%DOCSDIR%%/CHANGELOG \ + %%DOCSDIR%%/htaccess \ + %%DOCSDIR%%/README +PLIST_DIRS+= %%DOCSDIR%% +.endif + +post-install: + ${MKDIR} ${WWWDIR} + (cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} "*.php *.css images" ${WWWDIR}) + ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} + ${CHMOD} o= ${WWWDIR}/ldap.php +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + (cd ${INSTALL_WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR}) +.endif + @${CAT} ${PKGMESSAGE} + +.include Added: head/security/php-openid-ldap/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/php-openid-ldap/distinfo Mon Feb 18 00:18:20 2013 (r312460) @@ -0,0 +1,2 @@ +SHA256 (openid-ldap-0.8.9-noarc.tar.gz) = a3dfe816fceaa27d96aa93bc34bbb29a2c5ebc562cc2d6b6a32cbb3b36f70a9a +SIZE (openid-ldap-0.8.9-noarc.tar.gz) = 46793 Added: head/security/php-openid-ldap/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/php-openid-ldap/files/pkg-message.in Mon Feb 18 00:18:20 2013 (r312460) @@ -0,0 +1,43 @@ +********************************************************************** +The OpenID-LDAP identity provider has been installed in the directory +%%WWWDIR%%. + + SECURITY WARNING: OpenID-LDAP uses HTTP Basic Authentication, + which means that users' passwords are transmitted in the clear + (unencrypted) between the web browser and the web server. By + default, OpenID-LDAP requires the use of an SSL connection and + will fail with an error message if the web server doesn't use SSL. + +You must configure OpenID-LDAP to work with your directory server by +editing the file %%WWWDIR%%/ldap.php. + +You must add the appropriate configuration directives to your web +server configuration file. A typical configuration for Apache HTTPD +2.2 installed from the FreeBSD port would involve adding the following +lines to %%LOCALBASE%%/etc/apache22/Includes/openid-ldap.conf: + + AddType application/x-httpd-php .php + + Alias /openid-ldap %%WWWDIR%% + + + DirectoryIndex index.php + + + + Options Indexes + AllowOverride All + Order allow,deny + Allow from all + + + + RewriteEngine on + RewriteCond %{REQUEST_URI} !^/openid-ldap/(.+)\.php(.*)$ + RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /openid-ldap/([A-Za-z0-9]+)\?(.*)\ HTTP/ + RewriteRule ^/(.*)$ http://%{SERVER_NAME}/openid-ldap/index.php?user=%1&%2 [proxy] + RewriteCond %{REQUEST_URI} !^/openid-ldap/(.+)\.php(.*)$ + RewriteRule ^/([A-Za-z0-9]+)$ http://%{SERVER_NAME}/openid-ldap/index.php?user=$1 [proxy] + + +********************************************************************** Added: head/security/php-openid-ldap/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/php-openid-ldap/pkg-descr Mon Feb 18 00:18:20 2013 (r312460) @@ -0,0 +1,18 @@ +An open source PHP-based OpenID identity provider using LDAP as +backend. + +OpenID-LDAP is a small, fairly lightweight, standalone, multi user +Identity Provider for OpenID authentication. It comprises a few PHP +scripts that can be used by one individual to run their own personal +OpenID IdP. + +This program requires no external libraries, and has very minimal +requirements. It should run on any PHP server (v4.2+), and can +support OpenID in 'Smart Mode.' This program caches all data using +built-in PHP session handling, so it requires no database, and no +explicit write access to the file system. + +OpenID-LDAP is NOT compatible with Suhosin or other hardened PHP +systems. + +WWW: http://www.openid-ldap.org/