blob: d43eae5347b4f9644f61d8c400e4c0e9657dbab6 (
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
69
70
71
72
73
74
75
|
# $NetBSD: Makefile,v 1.5 2006/03/13 12:25:29 adrianp Exp $
#
DISTNAME= base-1.2.1
PKGREVISION= 3
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=secureideas/}
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://secureideas.sourceforge.net/
COMMENT= Analysis engine to process a database of security events
DEPENDS+= adodb>=1.2:../../databases/adodb
DEPENDS+= ap-php>=4.0.4:../../www/ap-php
DEPENDS+= php-gd>=4.0.4:../../graphics/php-gd
DEPENDS+= php-sockets>=4.0.4:../../net/php-sockets
DEPENDS+= php-mysql>=4.0.4:../../databases/php-mysql
DEPENDS+= pear-Log-[0-9]*:../../sysutils/pear-Log
DEPENDS+= pear-Numbers_Words-[0-9]*:../../math/pear-Numbers_Words
DEPENDS+= pear-Numbers_Roman-[0-9]*:../../math/pear-Numbers_Roman
DEPENDS+= pear-Image_Color-[0-9]*:../../graphics/pear-Image_Color
DEPENDS+= pear-Image_Graph-[0-9]*:../../graphics/pear-Image_Graph
NO_BUILD= YES
USE_PKGINSTALL= YES
DOC_FILES= CHANGELOG CREDITS README README.mssql TODO UPGRADE base_faq.rtf
BASE_DIR= ${PREFIX}/share/base
EGDIR= ${PREFIX}/share/examples/base
MESSAGE_SUBST+= EGDIR=${EGDIR:Q} BASE_DIR=${BASE_DIR:Q}
PAX_DIRS= admin help images includes languages scripts setup sql styles
WWW_USER?= ${APACHE_USER}
WWW_GROUP?= ${APACHE_GROUP}
BUILD_DEFS+= WWW_USER WWW_GROUP
USE_TOOLS+= perl:run
REPLACE_PERL+= scripts/base_maintenance.pl
CONF_FILES= ${EGDIR}/base.conf ${PKG_SYSCONFDIR}/base.conf
CONF_FILES_PERMS= ${EGDIR}/base_conf.php ${BASE_DIR}/base_conf.php \
${WWW_USER} ${WWW_GROUP} 0600
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_FILES.conf= base.conf base_conf.php.dist
SUBST_SED.conf= -e "s|@BASE_DIR@|${BASE_DIR}|g"
SUBST_SED.conf+= -e "s|@DBTYPE@|${DBTYPE}|g"
SUBST_SED.conf+= -e "s|@PREFIX@|${PREFIX}|g"
SUBST_MESSAGE.conf= Fixing configuration files.
.include "options.mk"
post-extract:
@${CP} ${FILESDIR}/base.conf ${WRKSRC}/base.conf
do-install:
${INSTALL_DATA_DIR} ${BASE_DIR}
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/base
${INSTALL_DATA} ${WRKSRC}/base.conf ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/base_conf.php.dist ${EGDIR}/base_conf.php
${INSTALL_SCRIPT} ${WRKSRC}/*.php ${BASE_DIR}
. for f in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/docs/${f} ${PREFIX}/share/doc/base
. endfor
. for i in ${PAX_DIRS}
cd ${WRKSRC}/${i} && ${PAX} -rw . ${BASE_DIR}/${i}
. endfor
@${CHOWN} ${WWW_USER} ${BASE_DIR}
.include "../../mk/bsd.pkg.mk"
|