head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2013.02.18.00.30.30;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312460
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Matthew X. Economou <xenophon+freebsd@@irtnog.org>
# $FreeBSD: head/security/php-openid-ldap/Makefile 312460 2013-02-18 00:18:20Z miwi $

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 <bsd.port.options.mk>

.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 <bsd.port.mk>
@
