pkgsrc/www/ap-auth-mysql/Makefile
joerg 337c6b1297 Rename all PHP 4 packages to php4-*, all PHP 5 packages to php5-*,
all PEAR packages to php?-pear-* and all Apache packages to ap13-* or
ap2-* respectively. Add new variables to simplify the Makefile
handling. Add CONFLICTS on the old names. Reset revisions of bumped
packages. ap-php will now depend on the default Apache and PHP version.
All programs using it have an implicit option of the Apache version
as well.

OK from jlam@ and adrianp@.
2006-06-02 18:27:54 +00:00

53 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.17 2006/06/02 18:27:58 joerg Exp $
#
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://packages.debian.org/unstable/web/libapache-mod-auth-mysql.html
COMMENT= Module to allow apache authentication against a MySQL database
CONFLICTS= ap-auth-mysql-[0-9]*
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
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
.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
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; \
elif [ -f ${WRKSRC}/${PKG_APACHE}_mod_auth_mysql.so ]; then \
${INSTALL_DATA} \
${WRKSRC}/${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/bsd.pkg.mk"