pkgsrc/security/ap-modsecurity2/Makefile
seb f314c85754 Fix build problem on Solaris with PKGSRC_COMPILER=sunpro and 'db4'
in PKG_OPTIONS.apr-util/PKG_DEFAULT_OPTIONS.

USE_LANGUAGES should be set before including mk/apache.mk as it
(may) ends up including mk/compiler.mk.
This last file sets a default value of 'c' to USE_LANGUAGES and
then uses it to set PKG_CC, PKG_CXX and PKG_FC to "fail wrappers".
Hence the C++ compiler command ends up being wrapped by a "fail
script" thus breaks the build.
2009-08-31 07:19:44 +00:00

49 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2009/08/31 07:19:44 seb Exp $
DISTNAME= modsecurity-apache_2.5.9
PKGNAME= ${APACHE_PKG_PREFIX}-${DISTNAME:S/apache_//}
CATEGORIES= www security
MASTER_SITES= http://www.modsecurity.org/download/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.modsecurity.org/
COMMENT= Intrusion detection and prevention engine for web applications
PKG_APACHE_ACCEPTED= apache2 apache22
USE_LANGUAGES+= c++ c
.include "../../mk/apache.mk"
.include "options.mk"
GNU_CONFIGURE= YES
USE_TOOLS+= pax
USE_LIBTOOL= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/apache2
CONFIGURE_ARGS+= --with-apxs=${PREFIX}/sbin/apxs
CONFIGURE_ARGS+= --with-pcre=${PREFIX}
CONFIGURE_ARGS+= --with-libxml=${PREFIX}
SUBST_CLASSES+= config
SUBST_STAGE.config= post-patch
SUBST_FILES.config= configure
SUBST_SED.config= -e "s|@@PREFIX@@|${PREFIX}|g"
SUBST_MESSAGE.config= Fixing configuration files.
EGDIR= ${PREFIX}/share/examples/ap-modsecurity
CONF_FILES= ${EGDIR}/modsecurity.conf-minimal \
${PKG_SYSCONFDIR}/httpd/modsecurity.conf
BUILDLINK_API_DEPENDS.apache+= apache>=2.0.59nb2
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ap-modsecurity
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/modsecurity.conf-minimal ${EGDIR}
cd ${WRKDIR}/${DISTNAME}/doc && \
pax -rw . ${PREFIX}/share/doc/ap-modsecurity
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"