2000-08-03 11:19:05 +00:00
|
|
|
# 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
|
2004-02-24 11:00:07 +00:00
|
|
|
PORTREVISION= 3
|
2000-08-03 11:19:05 +00:00
|
|
|
CATEGORIES= www
|
2001-12-21 18:17:09 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= mod-auth-mysql
|
2000-08-03 11:19:05 +00:00
|
|
|
|
2000-10-02 03:10:28 +00:00
|
|
|
MAINTAINER= jeh@FreeBSD.org
|
2003-03-03 04:00:46 +00:00
|
|
|
COMMENT= Allows users to use MySQL databases for user authentication
|
2000-08-03 11:19:05 +00:00
|
|
|
|
2003-11-07 09:12:58 +00:00
|
|
|
BUILD_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT}
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/${AP_TARGET}:${PORTSDIR}/${APACHE_PORT}
|
2000-08-03 11:19:05 +00:00
|
|
|
|
2003-09-29 10:12:15 +00:00
|
|
|
USE_MYSQL= yes
|
|
|
|
|
2000-08-03 11:19:05 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${APXS})
|
2000-08-30 23:09:34 +00:00
|
|
|
APXS_WORKS!= ${APXS} -q TARGET 2>/dev/null || echo no
|
|
|
|
.endif
|
|
|
|
.if exists(${APXS}) && ${APXS_WORKS} != no
|
2000-08-03 11:19:05 +00:00
|
|
|
AP_TARGET!= ${APXS} -q TARGET
|
|
|
|
AP_SYSCONF!= ${APXS} -q SYSCONFDIR
|
|
|
|
AP_INCLUDE!= ${APXS} -q INCLUDEDIR
|
|
|
|
AP_LIBEXEC!= ${APXS} -q LIBEXECDIR
|
|
|
|
.else
|
2001-01-16 17:33:20 +00:00
|
|
|
AP_TARGET?= httpd
|
|
|
|
AP_SYSCONF?= ${PREFIX}/etc/apache
|
|
|
|
AP_INCLUDE?= ${PREFIX}/include/apache
|
|
|
|
AP_LIBEXEC?= ${PREFIX}/libexec/apache
|
2000-08-03 11:19:05 +00:00
|
|
|
.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>
|