pfsense/pfsense-packages — pull request #431 by bmeeks8 (2013-04-24 02:18:49+00:00)
Title: Add Uninstall Function to Snort Dashboard Widget

Widget-Snort Alerts
====================================================================
CHANGE LOG
====================================================================
1. Added an uninstall function to the Snort Alerts dashboard widget so that it can be gracefully uninstalled without leaving an error on Dashboard GUI page. Typical package deletion was not cleaning up the 'sequences' variable in the 'widgets' portion of the config.xml file, and the Dashboard would continue to attempt display of the Snort widget even with the package removed. Browser refresh attempts did not help. The new uninstall function present in the new include file locates the "snort_alerts-container" entry in the 'sequences' variable and removes it. It also deletes all associated Snort Widget files. This allows a clean and complete removal of the Snort dashboard widget.

2. Corrected the widget version in the package's XML file back to 0.3.3 to accurately reflect a minor revision bump from 0.3.2.

3. Bumped the Snort Alerts widget version number to 0.3.3 in the pkg_config.8.xml and pkg_config.8.xml.amd64 files.

4. Added an additional "widget-snort.inc" include file to the package. This file contains the uninstall function. The file was added to the widget-snort.xml manifest, and a reference to the include file and custom de-install function were also included in the package manifest.