diff --git a/security/Makefile b/security/Makefile index d6bb69b428a5..3d9f848529c5 100644 --- a/security/Makefile +++ b/security/Makefile @@ -469,6 +469,7 @@ SUBDIR += snort-rep SUBDIR += snort_inline SUBDIR += snortreport + SUBDIR += snortsms SUBDIR += snortsnarf SUBDIR += spike-proxy SUBDIR += srm diff --git a/security/snortsms/Makefile b/security/snortsms/Makefile new file mode 100644 index 000000000000..ef1d5b91a5ab --- /dev/null +++ b/security/snortsms/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: snortsms +# Date created: Mon May 28 16:05:01 CST 2005 +# Whom: J Randolph +# +# $FreeBSD$ +# + +PORTNAME= snortsms +PORTVERSION= 0.11.3 +CATEGORIES= security www +MASTER_SITES= http://snortsms.servangle.net/dnloads/ +EXTRACT_SUFX= .tgz + +MAINTAINER= snortsms@servangle.net +COMMENT= A Snort Sensor Management System web interface and monitoring console + +RUN_DEPENDS= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB \ + ${LOCALBASE}/bin/curl:${PORTSDIR}/ftp/curl + +USE_PHP= mysql pcre pcntl +NO_BUILD= yes + +SUB_FILES= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message + +do-install: +# Create directory structure + @${MKDIR} ${PREFIX}/www/snortsms +# copy files + ${CP} -R ${WRKSRC}/* ${PREFIX}/www/snortsms + ${RM} ${PREFIX}/www/snortsms/COPYING +# correct permissions + ${CHMOD} 775 ${PREFIX}/www/snortsms/conf + ${CHOWN} :${WWWGRP} ${PREFIX}/www/snortsms/conf + +post-install: + @${CAT} ${PKGMESSAGE} + +.include diff --git a/security/snortsms/distinfo b/security/snortsms/distinfo new file mode 100644 index 000000000000..526b2f85a3a4 --- /dev/null +++ b/security/snortsms/distinfo @@ -0,0 +1,2 @@ +MD5 (snortsms-0.11.3.tgz) = 1e9eac271e447283f6a7290ed884fb36 +SIZE (snortsms-0.11.3.tgz) = 292834 diff --git a/security/snortsms/files/pkg-message.in b/security/snortsms/files/pkg-message.in new file mode 100644 index 000000000000..35b47493db2c --- /dev/null +++ b/security/snortsms/files/pkg-message.in @@ -0,0 +1,28 @@ +************************************************************ + +First time installations: +-You must configure SnortSMS. + +Please browse to the SnortSMS web console and edit the +"Global Settings" in the SnortSMS Settings menu. +SnortSMS uses the following configuration file: +%PREFIX%%/www/snortsms/conf/conf.php +which (if missing) will be automatically created - never +edit this file directly. + + +* NOTE: SnortSMS requires a local or remote database (MySQL +recommended) connection. + + +For how to configure SnortSMS, please read the setup guide +located at: +http:///contrib/snortsms_install.html +-or- +%%PREFIX%%/www/snortsms/contrib/snortsms_install.html + + +Thank you for using SnortSMS! + + +************************************************************ diff --git a/security/snortsms/pkg-descr b/security/snortsms/pkg-descr new file mode 100644 index 000000000000..02228d24ecaf --- /dev/null +++ b/security/snortsms/pkg-descr @@ -0,0 +1,6 @@ +SnortSMS is a highly configurable sensor management system that +provides the ability to remotely manage Snort [and Barnyard] based +intrusion detection systems, push configuration files, and monitor +system health and statistics all from a simple Web console. + +WWW: http://snortsms.servangle.net/ diff --git a/security/snortsms/pkg-plist b/security/snortsms/pkg-plist new file mode 100644 index 000000000000..8f6221288a68 --- /dev/null +++ b/security/snortsms/pkg-plist @@ -0,0 +1,274 @@ +www/snortsms/DefaultLayout.php +www/snortsms/barnctrl/act_Save-Update.php +www/snortsms/barnctrl/act_action.php +www/snortsms/barnctrl/dsp_AddEdit.php +www/snortsms/barnctrl/dsp_home.php +www/snortsms/barnctrl/fbx_Switch.php +www/snortsms/barnctrl/index.php +www/snortsms/barnctrl/qry_barnctrl.php +www/snortsms/barnctrl/qry_barnctrls.php +www/snortsms/barnyard/act_AddRemove.php +www/snortsms/barnyard/act_Save-Update.php +www/snortsms/barnyard/act_action.php +www/snortsms/barnyard/dsp_AddEdit.php +www/snortsms/barnyard/dsp_home.php +www/snortsms/barnyard/dsp_import.php +www/snortsms/barnyard/dsp_selected.php +www/snortsms/barnyard/fbx_Switch.php +www/snortsms/barnyard/index.php +www/snortsms/barnyard/qry_barnyard.php +www/snortsms/barnyard/qry_barnyards.php +www/snortsms/barnyard/qry_selected.php +www/snortsms/changelog +www/snortsms/classifications/act_AddRemove.php +www/snortsms/classifications/act_Save-Update.php +www/snortsms/classifications/act_action.php +www/snortsms/classifications/dsp_AddEdit.php +www/snortsms/classifications/dsp_home.php +www/snortsms/classifications/dsp_import.php +www/snortsms/classifications/dsp_selected.php +www/snortsms/classifications/fbx_Switch.php +www/snortsms/classifications/index.php +www/snortsms/classifications/qry_classification.php +www/snortsms/classifications/qry_classifications.php +www/snortsms/classifications/qry_selected.php +www/snortsms/conf/act_init_vars.php +www/snortsms/conf/act_read_conf.php +www/snortsms/conf/act_save_conf.php +www/snortsms/conf/act_verify_install.php +www/snortsms/conf/dsp_conf.php +www/snortsms/conf/dsp_save_conf.php +www/snortsms/conf/fbx_Switch.php +www/snortsms/conf/index.php +www/snortsms/contrib/snortsms_install.html +www/snortsms/contrib/SNORTSMS.mysql +www/snortsms/contrib/snortsms-agent-0.7.0.tgz.gz +www/snortsms/css/default.css +www/snortsms/docs/snortsms_install.html +www/snortsms/dsp_main.php +www/snortsms/dsp_menu.php +www/snortsms/fbx_Circuits.php +www/snortsms/fbx_Fusebox3.0_PHP4.0.6.php +www/snortsms/fbx_Fusebox3.0_PHP4.1.x.php +www/snortsms/fbx_Layouts.php +www/snortsms/fbx_ListFunctions.php +www/snortsms/fbx_SaveContent.php +www/snortsms/fbx_Settings.php +www/snortsms/fbx_Switch.php +www/snortsms/images/btn_add.gif +www/snortsms/images/btn_delete.gif +www/snortsms/images/btn_preview.gif +www/snortsms/images/btn_save.gif +www/snortsms/images/btn_submit.gif +www/snortsms/images/btn_update.gif +www/snortsms/images/check-0.png +www/snortsms/images/check-1.png +www/snortsms/images/check-2.png +www/snortsms/images/conf-0.png +www/snortsms/images/conf-1.png +www/snortsms/images/conf-3.png +www/snortsms/images/db-0.png +www/snortsms/images/db-1.png +www/snortsms/images/db-2.png +www/snortsms/images/draft-1.png +www/snortsms/images/hdd-1.gif +www/snortsms/images/hdd-2.gif +www/snortsms/images/hdd-3.gif +www/snortsms/images/led-0.gif +www/snortsms/images/led-1.gif +www/snortsms/images/led-2.gif +www/snortsms/images/led-3.gif +www/snortsms/images/led2-0.gif +www/snortsms/images/led2-1.gif +www/snortsms/images/led2-2.gif +www/snortsms/images/led2-3.gif +www/snortsms/images/logo_1.png +www/snortsms/images/note-1.gif +www/snortsms/images/snortpanel.gif +www/snortsms/images/snortpanel2.gif +www/snortsms/images/trash-1.gif +www/snortsms/images/view.png +www/snortsms/import/act_extract_process.php +www/snortsms/import/act_process_rawtext.php +www/snortsms/import/act_receive_rulefile.php +www/snortsms/import/act_receive_snapshot.php +www/snortsms/import/dsp_home.php +www/snortsms/import/fbx_Switch.php +www/snortsms/import/index.php +www/snortsms/index.php +www/snortsms/java/cssmenu.js +www/snortsms/lib/func_DrawRepHeader.php +www/snortsms/lib/func_GenBarnConf.php +www/snortsms/lib/func_GenSnortConf.php +www/snortsms/lib/func_GenToken.php +www/snortsms/lib/func_Log.php +www/snortsms/lib/func_ReserveNextID.php +www/snortsms/lib/func_Rules.php +www/snortsms/lib/func_curl_error.php +www/snortsms/lib/func_date.php +www/snortsms/lib/func_gen_sid-msg.php +www/snortsms/lib/obj_Rule.php +www/snortsms/main/dsp_home.php +www/snortsms/main/fbx_Switch.php +www/snortsms/main/index.php +www/snortsms/monitor/act_stats.php +www/snortsms/monitor/fbx_Switch.php +www/snortsms/monitor/index.php +www/snortsms/monitor/query_sensor.php +www/snortsms/outputs/act_AddRemove.php +www/snortsms/outputs/act_Save-Update.php +www/snortsms/outputs/act_action.php +www/snortsms/outputs/dsp_AddEdit.php +www/snortsms/outputs/dsp_home.php +www/snortsms/outputs/dsp_selected.php +www/snortsms/outputs/fbx_Switch.php +www/snortsms/outputs/index.php +www/snortsms/outputs/qry_output.php +www/snortsms/outputs/qry_outputs.php +www/snortsms/outputs/qry_selected.php +www/snortsms/policies/act_AddRemove.php +www/snortsms/policies/act_Save-Update.php +www/snortsms/policies/act_action.php +www/snortsms/policies/act_delete.php +www/snortsms/policies/dsp_AddEdit.php +www/snortsms/policies/dsp_home.php +www/snortsms/policies/dsp_pagenate.php +www/snortsms/policies/dsp_policy.php +www/snortsms/policies/dsp_rulecats.php +www/snortsms/policies/dsp_select.php +www/snortsms/policies/dsp_selected.php +www/snortsms/policies/fbx_Switch.php +www/snortsms/policies/index.php +www/snortsms/policies/qry_policies.php +www/snortsms/policies/qry_policy.php +www/snortsms/policies/qry_rulecats.php +www/snortsms/policies/qry_rules.php +www/snortsms/policies/qry_selected.php +www/snortsms/preprocessors/act_AddRemove.php +www/snortsms/preprocessors/act_Save-Update.php +www/snortsms/preprocessors/act_action.php +www/snortsms/preprocessors/dsp_AddEdit.php +www/snortsms/preprocessors/dsp_home.php +www/snortsms/preprocessors/dsp_import.php +www/snortsms/preprocessors/dsp_selected.php +www/snortsms/preprocessors/fbx_Switch.php +www/snortsms/preprocessors/index.php +www/snortsms/preprocessors/qry_preprocessor.php +www/snortsms/preprocessors/qry_preprocessors.php +www/snortsms/preprocessors/qry_selected.php +www/snortsms/references/act_AddRemove.php +www/snortsms/references/act_Save-Update.php +www/snortsms/references/act_action.php +www/snortsms/references/dsp_AddEdit.php +www/snortsms/references/dsp_home.php +www/snortsms/references/dsp_import.php +www/snortsms/references/dsp_selected.php +www/snortsms/references/fbx_Switch.php +www/snortsms/references/index.php +www/snortsms/references/qry_reference.php +www/snortsms/references/qry_references.php +www/snortsms/references/qry_selected.php +www/snortsms/rules/act_Save-Update.php +www/snortsms/rules/act_action.php +www/snortsms/rules/dsp_edit.php +www/snortsms/rules/dsp_home.php +www/snortsms/rules/dsp_import.php +www/snortsms/rules/dsp_pagenate.php +www/snortsms/rules/dsp_queryform.php +www/snortsms/rules/dsp_recycle.php +www/snortsms/rules/dsp_results.php +www/snortsms/rules/dsp_view.php +www/snortsms/rules/fbx_Switch.php +www/snortsms/rules/index.php +www/snortsms/rules/qry_rule.php +www/snortsms/rules/qry_rulecats.php +www/snortsms/rules/qry_rules.php +www/snortsms/ruletypes/act_AddRemove.php +www/snortsms/ruletypes/act_Save-Update.php +www/snortsms/ruletypes/act_delete.php +www/snortsms/ruletypes/dsp_AddEdit.php +www/snortsms/ruletypes/dsp_home.php +www/snortsms/ruletypes/dsp_selected.php +www/snortsms/ruletypes/fbx_Switch.php +www/snortsms/ruletypes/index.php +www/snortsms/ruletypes/qry_ruletype.php +www/snortsms/ruletypes/qry_ruletypes.php +www/snortsms/ruletypes/qry_selected.php +www/snortsms/ruletypes/qry_selectedouts.php +www/snortsms/sensorconf/act_clone.php +www/snortsms/sensorconf/act_delete_sensor.php +www/snortsms/sensorconf/act_getstats.php +www/snortsms/sensorconf/act_save_update.php +www/snortsms/sensorconf/act_sensor_control.php +www/snortsms/sensorconf/control_sensor.php +www/snortsms/sensorconf/dsp_clone.php +www/snortsms/sensorconf/dsp_genbarnconf.php +www/snortsms/sensorconf/dsp_gensnortconf.php +www/snortsms/sensorconf/dsp_header.php +www/snortsms/sensorconf/dsp_tab_agent.php +www/snortsms/sensorconf/dsp_tab_barn.php +www/snortsms/sensorconf/dsp_tab_main.php +www/snortsms/sensorconf/dsp_tab_sensor.php +www/snortsms/sensorconf/dsp_tab_snort.php +www/snortsms/sensorconf/dsp_tab_status.php +www/snortsms/sensorconf/fbx_Switch.php +www/snortsms/sensorconf/index.php +www/snortsms/sensorconf/qry_assignments.php +www/snortsms/sensorconf/qry_barn_ctrls.php +www/snortsms/sensorconf/qry_sensor.php +www/snortsms/sensorconf/qry_sensor_ctrls.php +www/snortsms/sensorconf/qry_sensor_lite.php +www/snortsms/sensorconf/qry_sensors.php +www/snortsms/sensorconf/qry_snort_ctrls.php +www/snortsms/sensors/act_delete.php +www/snortsms/sensors/dsp_home.php +www/snortsms/sensors/dsp_monitor.php +www/snortsms/sensors/fbx_Switch.php +www/snortsms/sensors/index.php +www/snortsms/sensors/qry_barn_ctrls.php +www/snortsms/sensors/qry_sensor.php +www/snortsms/sensors/qry_sensors_active.php +www/snortsms/sensors/qry_snort_ctrl.php +www/snortsms/snortctrl/act_Save-Update.php +www/snortsms/snortctrl/act_action.php +www/snortsms/snortctrl/dsp_AddEdit.php +www/snortsms/snortctrl/dsp_home.php +www/snortsms/snortctrl/fbx_Switch.php +www/snortsms/snortctrl/index.php +www/snortsms/snortctrl/qry_snortctrl.php +www/snortsms/snortctrl/qry_snortctrls.php +www/snortsms/variables/act_AddRemove.php +www/snortsms/variables/act_Save-Update.php +www/snortsms/variables/act_action.php +www/snortsms/variables/dsp_AddEdit.php +www/snortsms/variables/dsp_home.php +www/snortsms/variables/dsp_selected.php +www/snortsms/variables/fbx_Switch.php +www/snortsms/variables/index.php +www/snortsms/variables/qry_selected.php +www/snortsms/variables/qry_variable.php +www/snortsms/variables/qry_variables.php +@dirrm www/snortsms/variables +@dirrm www/snortsms/snortctrl +@dirrm www/snortsms/sensors +@dirrm www/snortsms/sensorconf +@dirrm www/snortsms/ruletypes +@dirrm www/snortsms/rules +@dirrm www/snortsms/references +@dirrm www/snortsms/preprocessors +@dirrm www/snortsms/policies +@dirrm www/snortsms/outputs +@dirrm www/snortsms/monitor +@dirrm www/snortsms/main +@dirrm www/snortsms/lib +@dirrm www/snortsms/java +@dirrm www/snortsms/import +@dirrm www/snortsms/images +@dirrm www/snortsms/docs +@dirrm www/snortsms/css +@dirrm www/snortsms/contrib +@unexec rmdir %D/www/snortsms/conf 2>/dev/null || true +@dirrm www/snortsms/classifications +@dirrm www/snortsms/barnyard +@dirrm www/snortsms/barnctrl +@unexec rmdir %D/www/snortsms 2>/dev/null || true