blob: a6b7bbc3d194b8d1823dabeebe0a76f7296a5ec4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.9 2005/04/11 21:45:10 tv Exp $
#
DISTNAME= acid-0.9.6b23
PKGREVISION= 1
CATEGORIES= databases www
MASTER_SITES= http://www.andrew.cmu.edu/~rdanyliw/snort/
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.andrew.cmu.edu/~rdanyliw/snort/snortacid.html
COMMENT= Analysis engine to process a database of security events
DEPENDS+= adodb>=1.2:../../databases/adodb
DEPENDS+= php-jpgraph>=1.8:../../graphics/php-jpgraph
DEPENDS+= php-gd>=4.0.4:../../graphics/php-gd
DEPENDS+= php-sockets>=4.0.4:../../net/php-sockets
NO_BUILD= yes
WRKSRC= ${WRKDIR}/acid
.include "../../mk/bsd.prefs.mk"
# This package will default to using MySQL. If you want to use
# postgresql set USE_PGSQL=YES in /etc/mk.conf or pass it to
# make. ie. make install USE_PGSQL=YES
#
.if defined(USE_PGSQL) && ${USE_PGSQL} == YES
DEPENDS+= php-pgsql>=4.0.4:../../databases/php-pgsql
DBTYPE= postgres
.else
DEPENDS+= php-mysql>=4.0.4:../../databases/php-mysql
DBTYPE= mysql
.endif
BUILD_DEFS+= USE_PGSQL
DOC_FILES= CHANGELOG CREDITS README README.mssql TODO
ACID_DIR= ${PREFIX}/share/acid
EXDIR= ${PREFIX}/share/examples/acid
MESSAGE_SUBST+= EXDIR=${EXDIR} ACID_DIR=${ACID_DIR}
pre-install:
@${SED} -e 's#@ACID_DIR@#${ACID_DIR}#g' ${FILESDIR}/acid.conf \
>${WRKDIR}/acid.conf
@${CP} ${WRKSRC}/acid_conf.php ${WRKSRC}/acid_conf.php.orig
@${SED} -e 's#@PREFIX@#${PREFIX}#g' \
-e 's#@DBTYPE@#${DBTYPE}#g' \
${WRKSRC}/acid_conf.php.orig >${WRKSRC}/acid_conf.php
do-install:
${INSTALL_DATA_DIR} ${ACID_DIR}
${INSTALL_DATA_DIR} ${EXDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/acid
${INSTALL_SCRIPT} ${WRKSRC}/*.php ${ACID_DIR}
${INSTALL_DATA} ${WRKSRC}/*.inc ${ACID_DIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${ACID_DIR}
${INSTALL_DATA} ${WRKSRC}/*.sql ${ACID_DIR}
${INSTALL_DATA} ${WRKSRC}/*.css ${ACID_DIR}
for FILE in ${DOC_FILES}; do \
${INSTALL_DATA} ${WRKSRC}/$$FILE ${PREFIX}/share/doc/acid; \
done
${INSTALL_DATA} ${WRKDIR}/acid.conf ${EXDIR}
.include "../../mk/bsd.pkg.mk"
|