diff options
author | Daniel Stefan Haischt <dsh@pfsense.org> | 2007-09-01 04:10:13 +0000 |
---|---|---|
committer | Daniel Stefan Haischt <dsh@pfsense.org> | 2007-09-01 04:10:13 +0000 |
commit | 9f2521ca8351e454e03193ddccbf5eb2166ec1fd (patch) | |
tree | 2df2d2ba5cf8123d90bb81b1039c3cec071330e0 /packages/test_package | |
parent | 188234df1c9d986f8a7fc80d0f57cbd91125fb14 (diff) | |
download | pfsense-packages-9f2521ca8351e454e03193ddccbf5eb2166ec1fd.tar.gz pfsense-packages-9f2521ca8351e454e03193ddccbf5eb2166ec1fd.tar.bz2 pfsense-packages-9f2521ca8351e454e03193ddccbf5eb2166ec1fd.zip |
* added copyright header to each file
* added XSL stylesheet to each file
* added DTD to some files (TODO: Add DTD to the remaining files and validate them against the DTD)
* added a Document Type Definition which allows to validate package files
Diffstat (limited to 'packages/test_package')
-rw-r--r-- | packages/test_package/test_package.xml | 99 |
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&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&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&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 |