aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-11-19 22:57:35 -0500
committerChris Buechler <cmb@pfsense.org>2009-11-19 22:57:35 -0500
commit0c64f868993e3e277ca292d5ca516278dc8676eb (patch)
tree20a32a663cf1c53d4251f0c7d72cf742c2fe072a
parent607a3926f3efbc1f675696423448ef4591676332 (diff)
downloadpfsense-packages-0c64f868993e3e277ca292d5ca516278dc8676eb.tar.gz
pfsense-packages-0c64f868993e3e277ca292d5ca516278dc8676eb.tar.bz2
pfsense-packages-0c64f868993e3e277ca292d5ca516278dc8676eb.zip
add openospfd package for my testing (which probably is completely broken right now)
disable the frickin Frickin package since it's never worked
-rw-r--r--config/openospfd/openospfd.xml137
-rwxr-xr-xpkg_config.7.xml20
2 files changed, 154 insertions, 3 deletions
diff --git a/config/openospfd/openospfd.xml b/config/openospfd/openospfd.xml
new file mode 100644
index 00000000..e583b31c
--- /dev/null
+++ b/config/openospfd/openospfd.xml
@@ -0,0 +1,137 @@
+<packagegui>
+ <name>ospfd</name>
+ <version>0.1</version>
+ <title>ospfd: Settings</title>
+ <aftersaveredirect>pkg_edit.php?xml=ospfd.xml&amp;id=0</aftersaveredirect>
+ <menu>
+ <name>ospfd</name>
+ <tooltiptext>Modify ospfd settings.</tooltiptext>
+ <section>Services</section>
+ <configfile>ospfd.xml</configfile>
+ <url>/pkg_edit.php?xml=ospfd.xml&amp;id=0</url>
+ </menu>
+ <service>
+ <name>ospfd</name>
+ <rcfile>ospfd.sh</rcfile>
+ <executable>ospfd</executable>
+ </service>
+ <configpath>installedpackages->package->$packagename->configuration->settings</configpath>
+ <fields>
+ <field>
+ <fielddescr>Router ID</fielddescr>
+ <fieldname>Router ID</fieldname>
+ <description>Specify the Router ID.</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Area</fielddescr>
+ <fieldname>Area</fieldname>
+ <description>OSPF area for this instance of OSPFd.</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Update FIB (Routing table)</fielddescr>
+ <fieldname>enable</fieldname>
+ <description>Enables the updating of the host routing table</description>
+ <type>checkbox</type>
+ </field>
+ <field>
+ <fielddescr>Listening Interface</fielddescr>
+ <fieldname>interface</fieldname>
+ <description>Enter the desired participating interface here.</description>
+ <type>interfaces_selection</type>
+ </field>
+ <field>
+ <fielddescr>Metric</fielddescr>
+ <fieldname>Metric</fieldname>
+ <description>Metric for this OSPF interface (leave blank for default).</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Enable MD5 password for this OSPFd interface (default no)</fielddescr>
+ <fieldname>enable</fieldname>
+ <description>Enables the use of an MD5 password to on this instance</description>
+ <type>checkbox</type>
+ </field>
+ <field>
+ <fielddescr>Password</fielddescr>
+ <fieldname>Password</fieldname>
+ <description>Password for this OSPF interface.</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Redistribute connected subnets</fielddescr>
+ <fieldname>enable</fieldname>
+ <description>Enables the redistribution of connected networks (Default no)</description>
+ <type>checkbox</type>
+ </field>
+ <field>
+ <fielddescr>Redistribute default route</fielddescr>
+ <fieldname>enable</fieldname>
+ <description>Enables the redistribution of a default route to this device (Default no)</description>
+ <type>checkbox</type>
+ </field>
+ <field>
+ <fielddescr>Router Priority</fielddescr>
+ <fieldname>Router priority for DR elections</fieldname>
+ <description>Router priority when participating in elections for DR (Default 1) Valid range is 0-255. 0 will cause the router to not participate in election.</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Hello Interval</fielddescr>
+ <fieldname>Hello Interval in seconds</fieldname>
+ <description>Hello Interval this OSPF interface in seconds (Default 10).</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Retransmit Interval</fielddescr>
+ <fieldname>Retransmit Interval</fieldname>
+ <description>Retransmit Interval this OSPF interface in seconds (Default 5).</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Dead Timer</fielddescr>
+ <fieldname>Dead Timer</fieldname>
+ <description>Dead Timer for this OSPF interface in seconds (Default 40).</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Redistribute static</fielddescr>
+ <fieldname>enable</fieldname>
+ <description>Enables the redistribution of static routes</description>
+ <type>checkbox</type>
+ </field>
+ </fields>
+ <custom_php_global_functions>
+ function sync_package_ospfd() {
+ conf_mount_rw();
+ config_lock();
+ global $config;
+ foreach($config['installedpackages']['ospfd']['config'] as $cf) {
+ if($cf['host'] != "") {
+ $start .= "/usr/local/sbin/ospfd ";
+ $start .= " -n {$cf['host']}";
+ if($cf['port'] != "")
+ $start .= ":{$cf['port']}";
+ if($cf['direction'] != "")
+ $start .= " -S {$cf['direction']}";
+ if($cf['version'] != "")
+ $start .= " -v {$cf['version']}";
+ write_rcfile(array(
+ "file" => "ospfd.sh",
+ "start" => $start,
+ "stop" => "/usr/bin/killall ospfd"
+ )
+ );
+ restart_service("ospfd");
+ break;
+ }
+ }
+ conf_mount_ro();
+ config_unlock();
+ }
+ </custom_php_global_functions>
+ <custom_add_php_command>
+ sync_package_ospfd();
+ </custom_add_php_command>
+</packagegui>
diff --git a/pkg_config.7.xml b/pkg_config.7.xml
index 8292db4b..f6ce2675 100755
--- a/pkg_config.7.xml
+++ b/pkg_config.7.xml
@@ -46,12 +46,12 @@
</package>
<package>
<name>frickin</name>
- <descr>The Frickin PPTP Proxy allows a Point-to-Point Tunneling Protocol (PPTP) client to connect to a PPTP server through Network Address Translation.</descr>
+ <descr>The BROKEN Frickin PPTP Proxy DOES NOT allows a Point-to-Point Tunneling Protocol (PPTP) client to connect to a PPTP server through Network Address Translation.</descr>
<website>http://www.placid.tv</website>
<category>Services</category>
<version>2.0</version>
- <status>ALPHA</status>
- <required_version>1.2.3</required_version>
+ <status>BROKEN</status>
+ <required_version>2.3</required_version>
<config_file>http://www.pfsense.com/packages/config/frickin/frickin.xml</config_file>
<configurationfile>frickin.xml</configurationfile>
<after_install_info>Please visit the Frickin PPTP settings tab and press save after setting the service up to start.</after_install_info>
@@ -486,6 +486,20 @@
<configurationfile>nmap.xml</configurationfile>
</package>
<package>
+ <name>OpenOSPFD</name>
+ <descr>OSPF routing protocol</descr>
+ <maintainer>cmb@pfsense.org</maintainer>
+ <version>0.1</version
+ <category>Routing</category>
+ <status>ALPHA ALPHA</status>
+ <depends_on_package_base_url>http://files.pfsense.org/packages/7/All/</depends_on_package_base_url>
+ <depends_on_package>openospfd-4.3.tbz</depends_on_package>
+ <config_file>http://www.pfsense.com/packages/config/openospfd/openospfd.xml</config_file>
+ <pkginfolink></pkginfolink>
+ <required_version>1.2.1</required_version>
+ <configurationfile>openospfd.xml</configurationfile>
+ </package>
+ <package>
<name>imspector</name>
<descr>IMSpector is an Instant Messenger transparent proxy with logging capabilities. Currently it supports MSN, AIM, ICQ, Yahoo and IRC to different degrees.</descr>
<website>http://www.imspector.org/</website>