summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorben <ben@pkgsrc.org>2006-02-02 05:00:02 +0000
committerben <ben@pkgsrc.org>2006-02-02 05:00:02 +0000
commit80dfef3c4d7047158f12047e544f509867574417 (patch)
tree073125145bf1ef3263a970fb26abd98630217fb3 /www
parent89a0aadb5f4c9c72196b40415820d205fb98b2b8 (diff)
downloadpkgsrc-80dfef3c4d7047158f12047e544f509867574417.tar.gz
Make ap-auth-mysql build with apache2. This addresses PR#32685 and PR#32686.
Diffstat (limited to 'www')
-rw-r--r--www/ap-auth-mysql/Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/www/ap-auth-mysql/Makefile b/www/ap-auth-mysql/Makefile
index e88a97115c7..65c5d4a9794 100644
--- a/www/ap-auth-mysql/Makefile
+++ b/www/ap-auth-mysql/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/01/24 07:32:41 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2006/02/02 05:00:02 ben Exp $
#
DISTNAME= libapache-mod-auth-mysql_4.3.1
@@ -21,15 +21,30 @@ LDFLAGS+= -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql \
-lmysqlclient \
${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql
+.include "../../mk/apache.mk"
+
+.if ${PKG_APACHE} == "apache13"
+CONFIGURE_ARGS+= --enable-apache13 --disable-apache2
+.else
+CONFIGURE_ARGS+= --disable-apache13 --enable-apache2
+.endif
+
APACHE_MODULE= YES
APACHE_MODULE_NAME= mod_auth_mysql.so
-post-install:
+do-install:
+ if [ -f ${WRKSRC}/.libs/${PKG_APACHE}_mod_auth_mysql.so ]; then \
+ ${INSTALL_DATA} \
+ ${WRKSRC}/.libs/${PKG_APACHE}_mod_auth_mysql.so \
+ ${PREFIX}/lib/httpd/mod_auth_mysql.so; \
+ elif [ -f ${WRKSRC}/libs/${PKG_APACHE}_mod_auth_mysql.so ]; then \
+ ${INSTALL_DATA} \
+ ${WRKSRC}/libs/${PKG_APACHE}_mod_auth_mysql.so \
+ ${PREFIX}/lib/httpd/mod_auth_mysql.so; \
+ fi
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_auth_mysql
${INSTALL_DATA} ${WRKSRC}/DIRECTIVES ${PREFIX}/share/doc/mod_auth_mysql
${INSTALL_DATA} ${WRKSRC}/USAGE ${PREFIX}/share/doc/mod_auth_mysql
.include "../../mk/mysql.buildlink3.mk"
-.include "../../mk/apache.mk"
-.include "../../www/apache/module.mk"
.include "../../mk/bsd.pkg.mk"