diff options
author | ben <ben> | 2006-02-02 05:00:02 +0000 |
---|---|---|
committer | ben <ben> | 2006-02-02 05:00:02 +0000 |
commit | 9705d2155f20f0e96bfd15de3ac31169389f2c3a (patch) | |
tree | 073125145bf1ef3263a970fb26abd98630217fb3 /www/ap-auth-mysql | |
parent | 0090534697284c38333834e514ec68d47da8ab1f (diff) | |
download | pkgsrc-9705d2155f20f0e96bfd15de3ac31169389f2c3a.tar.gz |
Make ap-auth-mysql build with apache2. This addresses PR#32685 and PR#32686.
Diffstat (limited to 'www/ap-auth-mysql')
-rw-r--r-- | www/ap-auth-mysql/Makefile | 23 |
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" |