aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_auth_tkt/Makefile
blob: 2181c9d488265fc00c0ca6b72855dc1044deb769 (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
# New ports collection makefile for:    mod_auth_tkt
# Date created:     2 Feb 2011
# Whom:         Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mod_auth_tkt
PORTVERSION=    2.1.0
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_LOCAL} \
        http://www.openfusion.com.au/labs/dist/mod_auth_tkt/
MASTER_SITE_SUBDIR= kuriyama

MAINTAINER= kuriyama@FreeBSD.org
COMMENT=    Lightweight single-sign-on authentication module for apache

USE_APACHE= 22+
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
AP_FAST_BUILD=  yes
SRC_FILE=   ${PORTNAME}.c sha2.c
AP_EXTRAS=  -DAPACHE22

MAN3=   mod_auth_tkt.3

post-patch:
    ${REINPLACE_CMD} -e 's|.usr/share/man|${PREFIX}/man|' ${WRKSRC}/../Makedefs

post-build:
    cd ${WRKSRC}/../doc; ${MAKE} all

post-install:
    cd ${WRKSRC}/../doc; ${MAKE} ${.TARGET:S/post-//}
.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${EXAMPLESDIR}/cgi/Apache ${EXAMPLESDIR}/conf
.for i in cgi/AuthTktConfig.pm cgi/Apache/AuthTkt.pm cgi/tkt.css \
    conf/02_auth_tkt.conf conf/auth_tkt_cgi.conf
    ${INSTALL_DATA} ${WRKSRC}/../${i} ${EXAMPLESDIR}/${i}
.endfor
.for i in logout.cgi login.cgi
    ${INSTALL_SCRIPT} ${WRKSRC}/../cgi/${i} ${EXAMPLESDIR}/cgi/${i}
.endfor
.endif
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}/
.endif

.include <bsd.port.mk>