summaryrefslogtreecommitdiff
path: root/security/base/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/base/Makefile')
-rw-r--r--security/base/Makefile74
1 files changed, 74 insertions, 0 deletions
diff --git a/security/base/Makefile b/security/base/Makefile
new file mode 100644
index 00000000000..f96bdfc8486
--- /dev/null
+++ b/security/base/Makefile
@@ -0,0 +1,74 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/01/03 21:09:44 adrianp Exp $
+#
+
+DISTNAME= base-1.2.1
+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.3.0dev4:../../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" \
+ -e "s|@DBTYPE@|${DBTYPE}|g" \
+ -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"