aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_auth_mysql2/Makefile
blob: 9964e06005d2022f006123a8ac9602b37bde0686 (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
# New ports collection makefile for:    mod_auth_mysql2
# Date created:             Sep 10 2005
# Whom:                 Clement Laforet <clement@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mod_auth_mysql
PORTVERSION=    1.10
PORTREVISION=   2
CATEGORIES= www
MASTER_SITES=   http://www.heuer.org/mod_auth_mysql/old/
DISTNAME=   ${PORTNAME}_${PORTVERSION}
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    apache22

MAINTAINER= mm@FreeBSD.org
COMMENT=    MySQL-based authentication module with VirtualHost support

LICENSE=    ASL

LATEST_LINK=    mod_auth_mysql2

WRKSRC=     ${WRKDIR}/${PORTNAME}
MAKE_JOBS_SAFE=  yes
USE_MYSQL=  YES
USE_APACHE= 20+
AP_FAST_BUILD=  YES
AP_GENPLIST=    YES
AP_INC+=    ${LOCALBASE}/include/mysql
AP_LIB+=    ${LOCALBASE}/lib/mysql -lmysqlclient

.if defined(WITH_OPENSSL)
USE_OPENSSL=    yes
AP_EXTRAS+= -DMYSQL_USE_SSL
.endif

.if !defined(NOPORTDOCS)
PORTDOCS=   INSTALL example_data.html htpasswd.sql
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>