diff options
author | robiscool <robrob2626@yahoo.com> | 2009-12-20 13:52:30 -0800 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-12-20 13:52:30 -0800 |
commit | 8bfa4233a80998196b1c14e1750b63d386c91a1a (patch) | |
tree | 5b7dd7711483d5d1f65b76024daa71d2a9e3f232 | |
parent | 31e7345c7067d06107a51a7147cac040a3c8783c (diff) | |
download | pfsense-packages-8bfa4233a80998196b1c14e1750b63d386c91a1a.tar.gz pfsense-packages-8bfa4233a80998196b1c14e1750b63d386c91a1a.tar.bz2 pfsense-packages-8bfa4233a80998196b1c14e1750b63d386c91a1a.zip |
snort-dev, add paths, move xmls back
-rw-r--r-- | config/snort-dev/snort.inc | 33 | ||||
-rw-r--r-- | config/snort-dev/snort.xml | 67 |
2 files changed, 21 insertions, 79 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc index 95e9576b..bae2c384 100644 --- a/config/snort-dev/snort.inc +++ b/config/snort-dev/snort.inc @@ -143,19 +143,26 @@ function snort_postinstall() exec('/bin/mkdir -p /usr/local/www/snort/css'); exec('/bin/mkdir -p /usr/local/www/snort/images'); exec('/bin/mkdir -p /usr/local/www/snort/javascript'); - exec('/bin/mv /usr/local/www/snort/style.css /usr/local/www/snort/css/style.css'); - exec('/bin/mv /usr/local/www/snort/alert.jpg /usr/local/www/snort/images/alert.jpg'); - exec('/bin/mv /usr/local/www/snort/down.gif /usr/local/www/snort/images/down.gif'); - exec('/bin/mv /usr/local/www/snort/down2.gif /usr/local/www/snort/images/down2.gif'); - exec('/bin/mv /usr/local/www/snort/icon-table-sort.png /usr/local/www/snort/images/icon-table-sort.png'); - exec('/bin/mv /usr/local/www/snort/icon-table-sort-asc.png /usr/local/www/snort/images/icon-table-sort-asc.png'); - exec('/bin/mv /usr/local/www/snort/icon-table-sort-desc.png /usr/local/www/snort/images/icon-table-sort-desc.png'); - exec('/bin/mv /usr/local/www/snort/up.gif /usr/local/www/snort/images/up.gif'); - exec('/bin/mv /usr/local/www/snort/up2.gif /usr/local/www/snort/images/up2.gif'); - exec('/bin/mv /usr/local/www/snort/jquery.blockUI.js /usr/local/www/snort/javascript/jquery.blockUI.js'); - exec('/bin/mv /usr/local/www/snort/jquery-1.3.2.js /usr/local/www/snort/javascript/jquery-1.3.2.js'); - exec('/bin/mv /usr/local/www/snort/mootools.js /usr/local/www/snort/javascript/mootools.js'); - exec('/bin/mv /usr/local/www/snort/sortableTable.js /usr/local/www/snort/javascript/sortableTable.js'); + + chdir ("/usr/local/www/snort/css/"); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/css/style.css'); + chdir ("/usr/local/www/snort/images/"); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/images/alert.jpg'); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/images/down.gif'); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/images/down2.gif'); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/images/icon-table-sort.png'); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/images/icon-table-sort-asc.png'); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/images/icon-table-sort-desc.png'); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/images/up.gif'); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/images/up2.gif'); + chdir ("/usr/local/www/snort/javascript/"); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/javascript/jquery.blockUI.js'); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/javascript/jquery-1.3.2.js'); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/javascript/mootools.js'); + exec('/usr/bin/fetch http://www.pfsense.com/packages/config/snort-dev/javascript/sortableTable.js'); + + /* back to default */ + chdir ("/root/"); conf_mount_ro(); diff --git a/config/snort-dev/snort.xml b/config/snort-dev/snort.xml index e6f7fdc3..5dbbc693 100644 --- a/config/snort-dev/snort.xml +++ b/config/snort-dev/snort.xml @@ -99,78 +99,13 @@ <item>http://www.pfsense.com/packages/config/snort-dev/snort_dynamic_ip_reload.php</item> </additional_files_needed> <additional_files_needed> - <prefix>/usr/local/pkg/snort/</prefix> + <prefix>/usr/local/pkg/</prefix> <chmod>077</chmod> <item>http://www.pfsense.com/packages/config/snort-dev/snort_whitelist.xml</item> </additional_files_needed> <additional_files_needed> <prefix>/usr/local/www/snort/</prefix> <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/images/alert.jpg</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/images/down.gif</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/images/down2.gif</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/images/icon-table-sort.png</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/images/icon-table-sort-asc.png</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/images/icon-table-sort-desc.png</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/images/up.gif</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/images/up2.gif</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/javascript/jquery-1.3.2.js</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/javascript/jquery.blockUI.js</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/javascript/mootools.js</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/javascript/sortableTable.js</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/snort-dev/css/style.css</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/www/snort/</prefix> - <chmod>077</chmod> <item>http://www.pfsense.com/packages/config/snort-dev/snort_alerts.php</item> </additional_files_needed> <additional_files_needed> |