summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-07-27 16:59:57 +0000
committerjoerg <joerg@pkgsrc.org>2008-07-27 16:59:57 +0000
commit69fe38e70b2207aed1d34d49f97ac0e824b8b7f5 (patch)
tree6d6631dd01fde8e873ec7e823ce6c485a81610e5
parent59312ff4fca417401d69c5031f31baa37bbfdb68 (diff)
downloadpkgsrc-69fe38e70b2207aed1d34d49f97ac0e824b8b7f5.tar.gz
Fix Apache 2.2 build.
-rw-r--r--www/ap2-xslt2/Makefile74
1 files changed, 50 insertions, 24 deletions
diff --git a/www/ap2-xslt2/Makefile b/www/ap2-xslt2/Makefile
index 7e31f2cdd0b..b9f02ae5066 100644
--- a/www/ap2-xslt2/Makefile
+++ b/www/ap2-xslt2/Makefile
@@ -1,34 +1,60 @@
-# $NetBSD: Makefile,v 1.7 2008/07/27 16:41:34 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2008/07/27 16:59:57 joerg Exp $
#
-DISTNAME= modxslt-${DIST_VER}
-PKGNAME= ${APACHE_PKG_PREFIX}-xslt2-${DIST_VER}
-PKGREVISION= 1
-CATEGORIES= www
-MASTER_SITES= http://www.mod-xslt2.com/software/archive/${DIST_VER}/
+DISTNAME= libapache-mod-auth-mysql_4.3.1
+PKGNAME= ${APACHE_PKG_PREFIX}-auth-mysql-4.3.1
+WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
+CATEGORIES= www databases security
+MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/liba/libapache-mod-auth-mysql/}
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://www.mod-xslt2.com/
-COMMENT= Apache module able to apply stylesheets to XML data on the fly
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://packages.debian.org/unstable/net/libapache-mod-auth-mysql.html
+COMMENT= Module to allow apache authentication against a MySQL database
-GNU_CONFIGURE= yes
-USE_LIBTOOL= yes
-USE_TOOLS+= gmake bash:run
+PKG_DESTDIR_SUPPORT= user-destdir
-APACHE_MODULE= yes
-DIST_VER= 2004112100
+CONFLICTS= ap-auth-mysql-[0-9]*
-PKG_APACHE_ACCEPTED= apache2
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
-CONFIGURE_ARGS+= --enable-fallback-wraparound
-CONFIGURE_ARGS+= --enable-libxslt-hack
-CONFIGURE_ARGS+= --with-apxs=${PREFIX}/sbin/apxs
+CONFIGURE_ARGS+= --with-mysql-includes=${BUILDLINK_PREFIX.mysql-client}/include/mysql \
+ --with-mysql-libs=${BUILDLINK_PREFIX.mysql-client}/lib/mysql
+LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql
-REPLACE_BASH= utils/modxslt-config.pre.in
-
-.include "../../devel/pcre/buildlink3.mk"
-.include "../../textproc/libxml2/buildlink3.mk"
-.include "../../textproc/libxslt/buildlink3.mk"
.include "../../mk/apache.mk"
-.include "../../mk/pthread.buildlink3.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
+
+INSTALLATION_DIRS= lib/httpd share/doc/mod_auth_mysql
+
+do-install:
+ if [ -f ${WRKSRC}/.libs/apache2_mod_auth_mysql.so ]; then \
+ ${INSTALL_DATA} \
+ ${WRKSRC}/.libs/apache2_mod_auth_mysql.so \
+ ${DESTDIR}${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 \
+ ${DESTDIR}${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 \
+ ${DESTDIR}${PREFIX}/lib/httpd/mod_auth_mysql.so; \
+ elif [ -f ${WRKSRC}/${PKG_APACHE}_mod_auth_mysql.so ]; then \
+ ${INSTALL_DATA} \
+ ${WRKSRC}/${PKG_APACHE}_mod_auth_mysql.so \
+ ${DESTDIR}${PREFIX}/lib/httpd/mod_auth_mysql.so; \
+ fi
+ ${INSTALL_DATA} ${WRKSRC}/DIRECTIVES ${DESTDIR}${PREFIX}/share/doc/mod_auth_mysql
+ ${INSTALL_DATA} ${WRKSRC}/USAGE ${DESTDIR}${PREFIX}/share/doc/mod_auth_mysql
+
+.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"