mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= mod_auth_tkt
|
|
PORTVERSION= 2.1.0
|
|
PORTREVISION= 1
|
|
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
|
|
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
PATCH_STRIP= -p1
|
|
AP_FAST_BUILD= yes
|
|
SRC_FILE= ${PORTNAME}.c sha2.c
|
|
AP_EXTRAS= -DAPACHE22
|
|
|
|
OPTIONS_DEFINE= QUERY_SEP DOCS EXAMPLES
|
|
QUERY_SEP_DESC= Experimental TKTAuthQuerySeparator directive
|
|
OPTIONS_DEFAULT=QUERY_SEP
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MQUERY_SEP}
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-query-separator
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|.usr/share/man|${STAGEDIR}${PREFIX}/man|' ${WRKSRC}/../Makedefs
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/../doc; ${MAKE} all
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/../doc; ${MAKE} ${.TARGET:S/post-//}
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/cgi/Apache ${STAGEDIR}${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} ${STAGEDIR}${EXAMPLESDIR}/${i}
|
|
.endfor
|
|
.for i in logout.cgi login.cgi
|
|
${INSTALL_SCRIPT} ${WRKSRC}/../cgi/${i} ${STAGEDIR}${EXAMPLESDIR}/cgi/${i}
|
|
.endfor
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/../README ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.include <bsd.port.mk>
|