freebsd-ports/security/base/Makefile
Sergei Kolobov a2ff10abd4 Add security/base:
BASE is the Basic Analysis and Security Engine. It is based on the code
from the ACID project. This application provides a PHP-based web front-end
to query and analyze the alerts coming from a Snort IDS system.

BASE is a web interface to perform analysis of intrusions that Snort has
detected on your network. It uses a user authentication and role-base
system, so that you as the security admin can decide what and how much
information each user can see. It also has a simple to use, web-based
setup program for people not comfortable with editing files directly.

WWW:	http://secureideas.sourceforge.net/

PR:		ports/74492 [1], ports/77103 [2]
Submitted by:	Linh Pham <question+fbsdports@closedsrc.org> [1],
		Paul Schmhel <pauls@utdallas.edu> [2]
2005-02-21 00:17:25 +00:00

54 lines
1.5 KiB
Makefile

# New ports collection makefile for: base
# Date created: 2004-11-29
# Whom: Linh Pham <question+fbsdports@closedsrc.org>
#
# $FreeBSD$
#
PORTNAME= base
PORTVERSION= 1.0.2
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= secureideas
MAINTAINER= question+fbsdports@closedsrc.org
COMMENT= Basic Analysis and Security Engine - analyzing Snort alerts
RUN_DEPENDS= ${LOCALBASE}/bin/snort:${PORTSDIR}/security/snort \
${ADODB_DIR}/adodb.inc.php:${PORTSDIR}/databases/adodb \
${JPGRAPH_DIR}/jpgraph.php:${PORTSDIR}/graphics/jpgraph
USE_PHP= yes
USE_REINPLACE= yes
ADODB_DIR= ${LOCALBASE}/share/adodb
JPGRAPH_DIR= ${LOCALBASE}/share/jpgraph
SUB_FILES= pkg-message
DOCS= docs/CHANGELOG docs/CREDITS docs/README docs/TODO docs/UPGRADE
do-build:
@${REINPLACE_CMD} -e 's,DBlib_path = "",DBlib_path = "${ADODB_DIR}",' \
-e 's,ChartLib_path = "",ChartLib_path = "${JPGRAPH_DIR}",' \
${WRKSRC}/base_conf.php.dist
do-install:
@${MKDIR} ${PREFIX}/www/base/includes/templates/default
${INSTALL_DATA} ${WRKSRC}/*.php ${WRKSRC}/*.dist ${PREFIX}/www/base
.for dir in admin help includes languages setup
@${MKDIR} ${PREFIX}/www/base/${dir}
${INSTALL_DATA} ${WRKSRC}/${dir}/*.php ${PREFIX}/www/base/${dir}
.endfor
.for dir in images sql styles
@${MKDIR} ${PREFIX}/www/base/${dir}
${INSTALL_DATA} ${WRKSRC}/${dir}/* ${PREFIX}/www/base/${dir}
.endfor
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>