2012-12-17 03:15:13 +01:00
|
|
|
# Created by: Linh Pham <question+fbsdports@closedsrc.org>
|
2005-02-21 01:17:25 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= base
|
2010-05-09 13:22:35 +02:00
|
|
|
PORTVERSION= 1.4.5
|
2005-02-21 01:17:25 +01:00
|
|
|
CATEGORIES= security
|
2009-08-22 02:35:32 +02:00
|
|
|
MASTER_SITES= SF/secureideas/BASE/${PORTNAME}-${PORTVERSION}
|
2005-02-21 01:17:25 +01:00
|
|
|
|
2008-09-06 23:13:27 +02:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2005-02-21 01:17:25 +01:00
|
|
|
COMMENT= Basic Analysis and Security Engine - analyzing Snort alerts
|
|
|
|
|
2010-05-09 13:22:35 +02:00
|
|
|
RUN_DEPENDS= ${ADODB_DIR}/adodb.inc.php:${PORTSDIR}/databases/adodb5 \
|
2008-09-06 23:13:27 +02:00
|
|
|
${LOCALBASE}/share/pear/Image/Graph.php:${PORTSDIR}/graphics/pear-Image_Graph \
|
|
|
|
${LOCALBASE}/share/pear/Mail.php:${PORTSDIR}/mail/pear-Mail \
|
|
|
|
${LOCALBASE}/share/pear/Mail/mime.php:${PORTSDIR}/mail/pear-Mail_Mime
|
|
|
|
|
2008-09-11 13:39:03 +02:00
|
|
|
USE_PHP= gd gettext pcre session zlib ctype
|
2005-02-21 01:17:25 +01:00
|
|
|
|
|
|
|
ADODB_DIR= ${LOCALBASE}/share/adodb
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
2007-05-27 12:00:08 +02:00
|
|
|
DOCS= docs/CHANGELOG docs/CREDITS docs/README docs/README.mssql \
|
|
|
|
docs/TODO docs/UPGRADE docs/GPL docs/base_faq.rtf
|
2005-02-21 01:17:25 +01:00
|
|
|
|
2012-12-17 03:15:13 +01:00
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL PDF DOCS
|
2006-05-16 14:10:36 +02:00
|
|
|
|
2012-12-17 03:15:13 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-05-16 14:10:36 +02:00
|
|
|
|
2012-12-17 03:15:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2006-05-16 14:10:36 +02:00
|
|
|
USE_MYSQL= yes
|
|
|
|
USE_PHP+= mysql
|
|
|
|
.endif
|
2012-12-17 03:15:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2006-05-16 14:10:36 +02:00
|
|
|
USE_PGSQL= yes
|
|
|
|
USE_PHP+= pgsql
|
|
|
|
.endif
|
2012-12-17 03:15:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MPDF}
|
2006-05-16 14:10:36 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/fpdf/fpdf.php:${PORTSDIR}/print/fpdf
|
|
|
|
.endif
|
|
|
|
|
2005-02-21 01:17:25 +01:00
|
|
|
do-build:
|
|
|
|
@${REINPLACE_CMD} -e 's,DBlib_path = "",DBlib_path = "${ADODB_DIR}",' \
|
|
|
|
${WRKSRC}/base_conf.php.dist
|
|
|
|
|
|
|
|
do-install:
|
2014-02-21 15:01:35 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/www/base/includes/templates/default
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.php ${WRKSRC}/*.dist ${STAGEDIR}${PREFIX}/www/base
|
2005-02-21 01:17:25 +01:00
|
|
|
.for dir in admin help includes languages setup
|
2014-02-21 15:01:35 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/www/base/${dir}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${dir}/*.php ${STAGEDIR}${PREFIX}/www/base/${dir}
|
2005-02-21 01:17:25 +01:00
|
|
|
.endfor
|
|
|
|
.for dir in images sql styles
|
2014-02-21 15:01:35 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/www/base/${dir}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${dir}/* ${STAGEDIR}${PREFIX}/www/base/${dir}
|
2005-02-21 01:17:25 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
2014-02-21 15:01:35 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
2005-02-21 01:17:25 +01:00
|
|
|
|
2012-12-17 03:15:13 +01:00
|
|
|
.include <bsd.port.mk>
|