Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
The Basic Analysis and Security Engine (BASE) is a PHP-based analysis
engine to search and process a database of security events generated by
various IDSes, firewalls, and network monitoring tools. The features currently
include:
o Query-builder and search interface for finding alerts matching
on alert meta information (e.g. signature, detection time) as well as
the underlying network evidence (e.g. source/destination address, ports,
payload, or flags).
o Packet viewer (decoder) will graphically display the layer-3 and
layer-4 packet information of logged alerts
o Alert management by providing constructs to logically group alerts
to create incidents (alert groups), deleting the handled alerts or
false positives, exporting to email for collaboration, or archiving of
alerts to transfer them between alert databases.
o Chart and statistic generation based on time, sensor, signature, protocol,
IP address, TCP/UDP ports, or classification
+17
View File
@@ -0,0 +1,17 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2006/01/03 21:09:44 adrianp Exp $
You will need to make BASE accessible through your HTTP server.
If you are running Apache and ap-php, then you will need to
add the following line to your httpd.conf:
Include ${PKG_SYSCONFDIR}/base.conf
to make BASE accessible through:
http://localhost/base/
You will need to customise ${BASE_DIR}/base_conf.php before
BASE will work. This includes setting up database access.
===========================================================================
+90
View File
@@ -0,0 +1,90 @@
# $NetBSD: Makefile,v 1.33 2013/05/31 12:41:50 wiz Exp $
#
DISTNAME= base-1.4.3.1
PKGREVISION= 7
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=secureideas/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://secureideas.sourceforge.net/
COMMENT= Analysis engine to process a database of security events
PKG_DESTDIR_SUPPORT= destdir
.include "../../mk/apache.mk"
.include "../../lang/php/phpversion.mk"
DEPENDS+= adodb>=4.96a:../../databases/adodb
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.0.4:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-sockets>=4.0.4:../../net/php-sockets
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.0.4:../../databases/php-mysql
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Log-[0-9]*:../../sysutils/pear-Log
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Numbers_Words-[0-9]*:../../math/pear-Numbers_Words
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Numbers_Roman-[0-9]*:../../math/pear-Numbers_Roman
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Image_Color-[0-9]*:../../graphics/pear-Image_Color
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Image_Graph-[0-9]*:../../graphics/pear-Image_Graph
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail-[0-9]*:../../mail/pear-Mail
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_Mime-[0-9]*:../../mail/pear-Mail_Mime
DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=4.0.4:../../www/ap-php
NO_BUILD= YES
#WRKSRC= ${WRKDIR}/base-php4
.include "../../mk/bsd.prefs.mk"
DOC_FILES= CHANGELOG CREDITS README README.mssql TODO \
UPGRADE base_faq.rtf INSTALL INSTALL.rtf \
README.country_support README.graph_alert_data
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}
USE_TOOLS+= pax perl:run
REPLACE_PERL+= scripts/base_maintenance.pl
PKG_GROUPS_VARS+= WWW_GROUP
PKG_USERS_VARS+= WWW_USER
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
BUILD_DEFS+= APACHE_USER APACHE_GROUP
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.
INSTALLATION_DIRS= ${BASE_DIR} ${EGDIR} share/doc/base
.include "options.mk"
post-extract:
${CP} ${FILESDIR}/base.conf ${WRKSRC}/base.conf
${FIND} ${WRKSRC} -name *.php | ${XARGS} ${CHMOD} ${SHAREMODE}
do-install:
${INSTALL_DATA} ${WRKSRC}/base.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/base_conf.php.dist ${DESTDIR}${EGDIR}/base_conf.php
${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${BASE_DIR}
. for f in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/docs/${f:Q} ${DESTDIR}${PREFIX}/share/doc/base
. endfor
. for i in ${PAX_DIRS}
cd ${WRKSRC}/${i:Q} && pax -rw . ${DESTDIR}${BASE_DIR}/${i:Q}
. endfor
${CHOWN} ${WWW_USER} ${DESTDIR}${BASE_DIR}
.include "../../mk/bsd.pkg.mk"
+124
View File
@@ -0,0 +1,124 @@
@comment $NetBSD: PLIST,v 1.11 2009/06/14 21:21:16 joerg Exp $
share/base/admin/base_roleadmin.php
share/base/admin/base_useradmin.php
share/base/admin/index.php
share/base/base_ag_common.php
share/base/base_ag_main.php
share/base/base_common.php
share/base/base_db_common.php
share/base/base_db_setup.php
share/base/base_denied.php
share/base/base_footer.php
share/base/base_graph_common.php
share/base/base_graph_display.php
share/base/base_graph_form.php
share/base/base_graph_main.php
share/base/base_hdr1.php
share/base/base_hdr2.php
share/base/base_main.php
share/base/base_maintenance.php
share/base/base_local_rules.php
share/base/base_logout.php
share/base/base_payload.php
share/base/base_qry_alert.php
share/base/base_qry_common.php
share/base/base_qry_form.php
share/base/base_qry_main.php
share/base/base_qry_sqlcalls.php
share/base/base_stat_alerts.php
share/base/base_stat_class.php
share/base/base_stat_common.php
share/base/base_stat_ipaddr.php
share/base/base_stat_iplink.php
share/base/base_stat_ports.php
share/base/base_stat_sensor.php
share/base/base_stat_time.php
share/base/base_stat_uaddr.php
share/base/base_user.php
share/base/help/base_app_faq.php
share/base/help/base_help.php
share/base/help/base_setup_help.php
share/base/images/button_delete.png
share/base/images/button_edit.png
share/base/images/button_exclamation.png
share/base/images/greencheck.gif
share/base/images/greencheck.png
share/base/images/redcheck.gif
share/base/includes/base_action.inc.php
share/base/includes/base_auth.inc.php
share/base/includes/base_cache.inc.php
share/base/includes/base_capabilities.php
share/base/includes/base_constants.inc.php
share/base/includes/base_db.inc.php
share/base/includes/base_include.inc.php
share/base/includes/base_iso3166.inc.php
share/base/includes/base_log_error.inc.php
share/base/includes/base_log_timing.inc.php
share/base/includes/base_net.inc.php
share/base/includes/base_output_html.inc.php
share/base/includes/base_output_query.inc.php
share/base/includes/base_setup.inc.php
share/base/includes/base_signature.inc.php
share/base/includes/base_state_citems.inc.php
share/base/includes/base_state_common.inc.php
share/base/includes/base_state_criteria.inc.php
share/base/includes/base_state_query.inc.php
share/base/includes/base_template.php
share/base/includes/base_user.inc.php
share/base/index.php
share/base/languages/chinese.lang.php
share/base/languages/czech.lang.php
share/base/languages/danish.lang.php
share/base/languages/english.lang.php
share/base/languages/finnish.lang.php
share/base/languages/french.lang.php
share/base/languages/german.lang.php
share/base/languages/index.php
share/base/languages/indonesian.lang.php
share/base/languages/italian.lang.php
share/base/languages/japanese.lang.php
share/base/languages/norwegian.lang.php
share/base/languages/polish.lang.php
share/base/languages/portuguese-PT.lang.php
share/base/languages/portuguese.lang.php
share/base/languages/russian.lang.php
share/base/languages/simplified_chinese.lang.php
share/base/languages/spanish.lang.php
share/base/languages/swedish.lang.php
share/base/languages/turkish.lang.php
share/base/scripts/base_maintenance.pl
share/base/setup/base_conf_contents.php
share/base/setup/index.php
share/base/setup/setup_db.inc.php
share/base/setup/setup1.php
share/base/setup/setup2.php
share/base/setup/setup3.php
share/base/setup/setup4.php
share/base/setup/setup5.php
share/base/sql/acid2base_tbls_mssql.sql
share/base/sql/acid2base_tbls_mysql.sql
share/base/sql/acid2base_tbls_pgsql.sql
share/base/sql/create_base_tbls_mssql.sql
share/base/sql/create_base_tbls_mssql_extra.sql
share/base/sql/create_base_tbls_mysql.sql
share/base/sql/create_base_tbls_oracle.sql
share/base/sql/create_base_tbls_pgsql.sql
share/base/sql/create_base_tbls_pgsql_extra.sql
share/base/sql/upgrade_0.9.x_to_1.0-mysql.sql
share/base/styles/acid_style.css
share/base/styles/base_black_style.css
share/base/styles/base_red_style.css
share/base/styles/base_style.css
share/doc/base/CHANGELOG
share/doc/base/CREDITS
share/doc/base/INSTALL
share/doc/base/INSTALL.rtf
share/doc/base/README
share/doc/base/README.mssql
share/doc/base/README.country_support
share/doc/base/README.graph_alert_data
share/doc/base/TODO
share/doc/base/UPGRADE
share/doc/base/base_faq.rtf
share/examples/base/base.conf
share/examples/base/base_conf.php
+6
View File
@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.11 2009/06/06 11:26:19 adrianp Exp $
SHA1 (base-1.4.3.1.tar.gz) = bf0a9bbc7131eb84d4b85d25e2fe878da31582c4
RMD160 (base-1.4.3.1.tar.gz) = e12ec80997df17f4bf3e8ea016da6fc0414044c1
Size (base-1.4.3.1.tar.gz) = 968771 bytes
SHA1 (patch-aa) = e51e3b97c0dbba659fb628c3105ff46a93f13bc4
+28
View File
@@ -0,0 +1,28 @@
# $NetBSD: base.conf,v 1.1.1.1 2006/01/03 21:09:44 adrianp Exp $
#
# BASE configuration file fragment for Apache
<IfModule mod_alias.c>
Alias /base/ "@BASE_DIR@/"
</IfModule>
<Directory "@BASE_DIR@">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#
# For security, dont serve pages from certain directories
#
<Directory "@BASE_DIR@/scripts">
Order deny,allow
Deny from all
</Directory>
<Directory "@BASE_DIR@/sql">
Order deny,allow
Deny from all
</Directory>
+24
View File
@@ -0,0 +1,24 @@
# $NetBSD: options.mk,v 1.1.1.1 2006/01/03 21:09:44 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.base
PKG_OPTIONS_REQUIRED_GROUPS= db
PKG_OPTIONS_GROUP.db= mysql pgsql
PKG_SUGGESTED_OPTIONS= mysql
.include "../../mk/bsd.options.mk"
###
### Use PostgreSQL for storing BASE raw data
###
.if !empty(PKG_OPTIONS:Mpgsql)
. include "../../mk/pgsql.buildlink3.mk"
DBTYPE= postgres
.elif !empty(PKG_OPTIONS:Mmysql)
###
### Use MySQL for storing BASE raw data
###
. include "../../mk/mysql.buildlink3.mk"
DBTYPE= mysql
.endif
+31
View File
@@ -0,0 +1,31 @@
$NetBSD: patch-aa,v 1.3 2009/06/06 11:26:19 adrianp Exp $
--- base_conf.php.dist.orig 2009-05-31 03:06:08.000000000 +0100
+++ base_conf.php.dist
@@ -47,7 +47,7 @@ $BASE_display_sig_links = 1;
set this to /base
*/
-$BASE_urlpath = '';
+$BASE_urlpath = '/base';
/* Unique BASE ID. The below variable, if set, will append its value to the
* title bar of the browser. This is for people who manage multiple installs
@@ -69,7 +69,7 @@ $base_custom_footer = '';
* $foo = 'c:\tmp' [OK]
* $foo = 'c:\tmp\' [WRONG]
*/
-$DBlib_path = '';
+$DBlib_path = '@PREFIX@/share/adodb';
/* The type of underlying alert database
@@ -79,7 +79,7 @@ $DBlib_path = '';
* MS SQL Server : 'mssql'
* Oracle : 'oci8'
*/
-$DBtype = 'mysql';
+$DBtype = '@DBTYPE@';
/* Alert DB connection parameters
* - $alert_dbname : MySQL database name of Snort alert DB