aboutsummaryrefslogtreecommitdiffstats
path: root/packages/test_package
diff options
context:
space:
mode:
Diffstat (limited to 'packages/test_package')
-rw-r--r--packages/test_package/test_package.xml99
1 files changed, 50 insertions, 49 deletions
diff --git a/packages/test_package/test_package.xml b/packages/test_package/test_package.xml
index 66b3816d..192a2d54 100644
--- a/packages/test_package/test_package.xml
+++ b/packages/test_package/test_package.xml
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE packagegui SYSTEM "../schema/packages.dtd">
<?xml-stylesheet type="text/xsl" href="../xsl/package.xsl"?>
<packagegui>
<copyright>
@@ -44,15 +45,48 @@
<description>Describe your package here</description>
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
- <title>Services: Snort</title>
<name>Snort</name>
<version>2.6.0.2</version>
+ <title>Services: Snort</title>
+ <include_file>/usr/local/pkg/snort.inc</include_file>
<menu>
<name>Snort</name>
<tooltiptext>Setup snort specific settings</tooltiptext>
<section>Services</section>
<url>/pkg_edit.php?xml=snort.xml&amp;id=0</url>
</menu>
+ <service>
+ <name>snort</name>
+ <rcfile>snort.sh</rcfile>
+ <executable>snort</executable>
+ </service>
+ <tabs>
+ <tab>
+ <text>Snort Settings</text>
+ <url>/pkg_edit.php?xml=snort.xml&amp;id=0</url>
+ <active/>
+ </tab>
+ <tab>
+ <text>Update Snort Rules</text>
+ <url>/snort_download_rules.php</url>
+ </tab>
+ <tab>
+ <text>Snort Rulesets</text>
+ <url>/snort_rulesets.php</url>
+ </tab>
+ <tab>
+ <text>Snort Blocked</text>
+ <url>/snort_blocked.php</url>
+ </tab>
+ <tab>
+ <text>Snort Whitelist</text>
+ <url>/pkg.php?xml=snort_whitelist.xml</url>
+ </tab>
+ <tab>
+ <text>Snort Alerts</text>
+ <url>/snort_alerts.php</url>
+ </tab>
+ </tabs>
<additional_files_needed>
<prefix>/usr/local/pkg/</prefix>
<chmod>077</chmod>
@@ -98,48 +132,15 @@
<chmod>077</chmod>
<item>http://www.pfsense.com/packages/config/snort/snort_dynamic_ip_reload.php</item>
</additional_files_needed>
- <service>
- <name>snort</name>
- <rcfile>snort.sh</rcfile>
- <executable>snort</executable>
- </service>
- <include_file>/usr/local/pkg/snort.inc</include_file>
- <tabs>
- <tab>
- <text>Snort Settings</text>
- <url>/pkg_edit.php?xml=snort.xml&amp;id=0</url>
- <active/>
- </tab>
- <tab>
- <text>Update Snort Rules</text>
- <url>/snort_download_rules.php</url>
- </tab>
- <tab>
- <text>Snort Rulesets</text>
- <url>/snort_rulesets.php</url>
- </tab>
- <tab>
- <text>Snort Blocked</text>
- <url>/snort_blocked.php</url>
- </tab>
- <tab>
- <text>Snort Whitelist</text>
- <url>/pkg.php?xml=snort_whitelist.xml</url>
- </tab>
- <tab>
- <text>Snort Alerts</text>
- <url>/snort_alerts.php</url>
- </tab>
- </tabs>
<fields>
<field>
<fielddescr>Interface</fielddescr>
<fieldname>iface_array</fieldname>
<description>Select all WAN type interfaces</description>
+ <type>interfaces_selection</type>
+ <size>3</size>
<value>lan</value>
<multiple>true</multiple>
- <size>3</size>
- <type>interfaces_selection</type>
</field>
<field>
<fielddescr>Performance</fielddescr>
@@ -148,33 +149,33 @@
<type>select</type>
<options>
<option>
- <value>lowmem</value>
<name>lowmem</name>
+ <value>lowmem</value>
</option>
<option>
- <value>ac-std</value>
<name>ac-std</name>
+ <value>ac-std</value>
</option>
<option>
- <value>ac</value>
<name>ac</name>
+ <value>ac</value>
</option>
<option>
- <value>ac-banded</value>
<name>ac-banded</name>
+ <value>ac-banded</value>
</option>
<option>
- <value>ac-sparsebands</value>
<name>ac-sparsebands</name>
+ <value>ac-sparsebands</value>
</option>
<option>
- <value>mwm</value>
<name>mwm</name>
+ <value>mwm</value>
</option>
<option>
- <value>acs</value>
<name>acs</name>
+ <value>acs</value>
</option>
</options>
</field>
@@ -182,9 +183,9 @@
<fielddescr>Oinkmaster code</fielddescr>
<fieldname>oinkmastercode</fieldname>
<description>Obtain a snort.org Oinkmaster code and paste here.</description>
- <value></value>
<type>input</type>
<size>60</size>
+ <value></value>
</field>
<field>
<fielddescr>Block offenders</fielddescr>
@@ -200,13 +201,13 @@
<type>checkbox</type>
</field>
</fields>
- <custom_php_install_command>
- sync_package_snort_reinstall();
- </custom_php_install_command>
<custom_add_php_command>
sync_package_snort();
</custom_add_php_command>
- <custom_php_resync_command>
+ <custom_php_resync_config_command>
sync_package_snort();
- </custom_php_resync_command>
+ </custom_php_resync_config_command>
+ <custom_php_install_command>
+ sync_package_snort_reinstall();
+ </custom_php_install_command>
</packagegui> \ No newline at end of file