Commit d0b5491d authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

Updated firewall scripts to have their require statements elsewhere so...

Updated firewall scripts to have their require statements elsewhere so manpages can be generated without having extra packages installed.
parent ef652de3
......@@ -10,7 +10,6 @@ Package: symbiosis-firewall
Architecture: any
Depends: iptables, ruby, ruby1.8, symbiosis-common (>= 2011:1214), libruby1.8, libsqlite3-ruby1.8, ${shlibs:Depends}, ${misc:Depends}
Replaces: bytemark-vhost-ssh-protection, bytemark-vhost-firewall
Conflicts: bytemark-vhost-firewall, bytemark-vhost-ssh-protection (<< 20081110153344)
Description: A simple firewall generator for the Bytemark vhost system
This package contains a firewall generator which makes it simple to restrict
the incoming and outgoing connections a machine is permitted to accept or
......
#!/usr/bin/ruby
# NAME
# symbiosis-firewall -- Symbioisis firewall management
# symbiosis-firewall - Symbioisis firewall management
#
# SYNOPSIS
# symbiosis-firewall [ -h | --help ] [-m | --manual] [ -v | --verbose ]
......@@ -117,8 +117,6 @@
require 'getoptlong'
require 'tempfile'
require 'fileutils'
require 'symbiosis/firewall/directory'
require 'symbiosis/firewall/template'
def verbose(s)
puts s if $VERBOSE
......@@ -214,6 +212,12 @@ if File.exists?(File.join(base_dir, "disabled"))
exit 0
end
#
# These requires are here to avoid dependency failures when generating manpages.
#
require 'symbiosis/firewall/directory'
require 'symbiosis/firewall/template'
#
# Set the action
#
......
#! /usr/bin/ruby1.8
#
# NAME
# symbiosis-firewall-blacklist -- Automatically blacklist IP addresses.
# symbiosis-firewall-blacklist - Automatically blacklist IP addresses.
#
# SYNOPSIS
# symbiosis-firewall-blacklist [ -h | --help ] [-m | --manual]
......@@ -69,12 +69,6 @@
require 'getoptlong'
require 'tempfile'
require 'fileutils'
require 'symbiosis/ipaddr'
require 'symbiosis/firewall/blacklist'
require 'symbiosis/firewall/directory'
require 'symbiosis/firewall/template'
require 'symbiosis/firewall/logtail'
require 'symbiosis/firewall/pattern'
#
# The options set by the command line.
......@@ -164,6 +158,16 @@ if manual or help
exit 0
end
#
# These requires are here to prevent dependency failures when generating manpages.
#
require 'symbiosis/ipaddr'
require 'symbiosis/firewall/blacklist'
require 'symbiosis/firewall/directory'
require 'symbiosis/firewall/template'
require 'symbiosis/firewall/logtail'
require 'symbiosis/firewall/pattern'
#
# Exit if we've been disabled
#
......
#! /usr/bin/ruby1.8
#
# NAME
# symbiosis-firewall-whitelist -- Automatically whitelist IP addresses.
# symbiosis-firewall-whitelist - Automatically whitelist IP addresses.
#
# SYNOPSIS
# symbiosis-firewall-whitelist [ -h | --help ] [-m | --manual]
......@@ -61,10 +61,6 @@
require 'getoptlong'
require 'tempfile'
require 'fileutils'
require 'symbiosis/utmp'
require 'symbiosis/firewall/directory'
require 'symbiosis/firewall/template'
require 'symbiosis/ipaddr'
#
......@@ -155,6 +151,15 @@ if manual or help
exit 0
end
#
# These requires are here to prevent un-needed dependencies when just making
# manpages.
#
require 'symbiosis/utmp'
require 'symbiosis/firewall/directory'
require 'symbiosis/firewall/template'
require 'symbiosis/ipaddr'
#
# Exit if we've been disabled
#
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment