aboutsummaryrefslogtreecommitdiffstats
path: root/security/php-openid-ldap/Makefile
blob: cd728197298fbb5639dab44c5f24e2369c2b9a75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Created by: Matthew X. Economou <xenophon+freebsd@irtnog.org>
# $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 <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>