aboutsummaryrefslogtreecommitdiffstats
path: root/security/base/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/base/Makefile')
-rw-r--r--security/base/Makefile27
1 files changed, 24 insertions, 3 deletions
diff --git a/security/base/Makefile b/security/base/Makefile
index 884916293328..e37b5871506e 100644
--- a/security/base/Makefile
+++ b/security/base/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= base
-PORTVERSION= 1.2.2
+PORTVERSION= 1.2.4
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= secureideas
@@ -18,13 +18,34 @@ RUN_DEPENDS= ${LOCALBASE}/bin/snort:${PORTSDIR}/security/snort \
${ADODB_DIR}/adodb.inc.php:${PORTSDIR}/databases/adodb \
${LOCALBASE}/share/pear/Image/Graph.php:${PORTSDIR}/graphics/pear-Image_Graph
-USE_PHP= yes
+USE_PHP= gd gettext pcre session zlib
ADODB_DIR= ${LOCALBASE}/share/adodb
SUB_FILES= pkg-message
DOCS= docs/CHANGELOG docs/CREDITS docs/README docs/TODO docs/UPGRADE
+OPTIONS= MYSQL "Enable MySQL support" off \
+ PGSQL "Enable PostgreSQL support" off \
+ PDF "Enable PDF support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MYSQL)
+USE_MYSQL= yes
+USE_PHP+= mysql
+.endif
+.if defined(WITH_PGSQL)
+USE_PGSQL= yes
+USE_PHP+= pgsql
+.endif
+.if defined(WITH_PDF)
+RUN_DEPENDS+= ${LOCALBASE}/share/fpdf/fpdf.php:${PORTSDIR}/print/fpdf
+.endif
+
+# we need this because we USE_PHP after bsd.port.pre.mk is included
+.include "${PORTSDIR}/Mk/bsd.php.mk"
+
do-build:
@${REINPLACE_CMD} -e 's,DBlib_path = "",DBlib_path = "${ADODB_DIR}",' \
${WRKSRC}/base_conf.php.dist
@@ -48,4 +69,4 @@ post-install:
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>