diff options
author | joerg <joerg> | 2008-07-27 16:59:57 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-07-27 16:59:57 +0000 |
commit | c1aedaf7a3b9592bb17f43336c53e792321dda75 (patch) | |
tree | 6d6631dd01fde8e873ec7e823ce6c485a81610e5 /www/ap2-xslt2 | |
parent | 24b97de8d02dce781869f79e7b30488c74697a5d (diff) | |
download | pkgsrc-c1aedaf7a3b9592bb17f43336c53e792321dda75.tar.gz |
Fix Apache 2.2 build.
Diffstat (limited to 'www/ap2-xslt2')
-rw-r--r-- | www/ap2-xslt2/Makefile | 74 |
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" |