mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
35a3256787
use Mk/bsd.php.mk. Approved by: nork (mentor/implicitly)
59 lines
1.7 KiB
Makefile
59 lines
1.7 KiB
Makefile
# New ports collection makefile for: snortreport
|
|
# Date created: 18 Jan 2004
|
|
# Whom: Andrea Venturoli <a.ventu@flashnet.it>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= snortreport
|
|
PORTVERSION= 1.2
|
|
CATEGORIES= security www
|
|
MASTER_SITES= http://www.circuitsmaximus.com/snortreport/
|
|
|
|
MAINTAINER= a.ventu@flashnet.it
|
|
COMMENT= Add-on module for snort to generate real-time web reports
|
|
|
|
.if !defined(WITHOUT_JPGRAPH)
|
|
RUN_DEPENDS= ${LOCALBASE}/share/jpgraph/jpgraph.php:${PORTSDIR}/graphics/jpgraph
|
|
.endif
|
|
|
|
USE_PHP= yes
|
|
WANT_PHP_WEB= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
NO_BUILD= yes
|
|
|
|
pre-everything::
|
|
@${ECHO} ""
|
|
@${ECHO} "You have to configure PHP either with MySQL or PostgreSQL"
|
|
@${ECHO} "support in order to let snortreport collect its data."
|
|
@${ECHO} "Is is also suggested to compile support for GD in"
|
|
@${ECHO} "and have Jpgraph installed in order to view the charts."
|
|
@${ECHO} ""
|
|
|
|
pre-patch:
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g' \
|
|
${PKGDIR}/pkg-message > ${PKGMESSAGE}
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/www/snortreport
|
|
${CP} -p ${WRKSRC}/*.php ${PREFIX}/www/snortreport
|
|
${CP} -p ${WRKSRC}/*.css ${PREFIX}/www/snortreport
|
|
${CP} -p ${WRKSRC}/*.png ${PREFIX}/www/snortreport
|
|
${CP} -p ${WRKSRC}/*.html ${PREFIX}/www/snortreport
|
|
${CP} -p ${WRKSRC}/*.phps ${PREFIX}/www/snortreport
|
|
${CP} -p ${WRKSRC}/*.js ${PREFIX}/www/snortreport
|
|
${CHOWN} -R www:www ${PREFIX}/www/snortreport
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Performance.txt ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/create_indexes.sql ${DOCSDIR}
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|