summaryrefslogtreecommitdiff
path: root/www/mod_auth_mysql/Makefile
diff options
context:
space:
mode:
authorNeil Blakey-Milner <nbm@FreeBSD.org>2000-08-03 11:19:05 +0000
committerNeil Blakey-Milner <nbm@FreeBSD.org>2000-08-03 11:19:05 +0000
commit8936ab790f69cf9e1cb5c477b5735062f7710a06 (patch)
treecf031221acec8d83bcf6e386fea8c868df635ecb /www/mod_auth_mysql/Makefile
parent(1) Add new variable, XFREE86_VERSION, to specify which version of (diff)
Add mod_auth_mysql, allowing apache to authenticate against a mysql
database. PR: ports/18730 Submitted by: James Housley <jim@thehousleys.net>
Diffstat (limited to 'www/mod_auth_mysql/Makefile')
-rw-r--r--www/mod_auth_mysql/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/www/mod_auth_mysql/Makefile b/www/mod_auth_mysql/Makefile
new file mode 100644
index 000000000000..150d91d6b431
--- /dev/null
+++ b/www/mod_auth_mysql/Makefile
@@ -0,0 +1,54 @@
+# New ports collection makefile for: apache mod_auth_mysql
+# Date created: 2000/05/19
+# Whom: jim@thehouselys.net
+#
+# $FreeBSD$
+
+PORTNAME= mod_auth_mysql
+PORTVERSION= 2.20
+CATEGORIES= www
+MASTER_SITES= http://bourbon.netvision.net.il/mysql/mod_auth_mysql/ \
+ http://web.mysql.com/Contrib/
+
+MAINTAINER= ports@freebsd.org
+
+BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/${AP_PORT}
+LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
+RUN_DEPENDS= ${LOCALBASE}/sbin/${AP_TARGET}:${PORTSDIR}/www/${AP_PORT}
+
+.include <bsd.port.pre.mk>
+
+APXS= ${LOCALBASE}/sbin/apxs
+
+AP_PORT?= apache13
+.if exists(${APXS})
+AP_TARGET!= ${APXS} -q TARGET
+AP_SYSCONF!= ${APXS} -q SYSCONFDIR
+AP_INCLUDE!= ${APXS} -q INCLUDEDIR
+AP_LIBEXEC!= ${APXS} -q LIBEXECDIR
+.else
+AP_TARGET?= httpd
+AP_SYSCONF?= ${PREFIX}/etc/apache
+AP_INCLUDE?= ${PREFIX}/include/apache
+AP_LIBEXEC?= ${PREFIX}/libexec/apache
+.endif
+
+AUTH_MYSQL_DOCS= apache/manual/mod/mod_auth_mysql
+
+PLIST_SUB= AUTH_MYSQL_DOCS="${AUTH_MYSQL_DOCS}"
+
+PKGMESSAGE= ${WRKSRC}/.install_notes
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --with-mysql=${PREFIX} \
+ --with-apxs=${APXS}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/${AUTH_MYSQL_DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${AUTH_MYSQL_DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/USAGE ${PREFIX}/share/doc/${AUTH_MYSQL_DOCS}
+ @@(cd ${PREFIX}/share/doc && ${LN} -sf ${AUTH_MYSQL_DOCS} mod_auth_mysql)
+.endif
+
+.include <bsd.port.post.mk>