aboutsummaryrefslogtreecommitdiffstats
path: root/packages/frickin.xml
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-02 22:42:22 +0000
committerColin Smith <colin@pfsense.org>2005-04-02 22:42:22 +0000
commit550fd77c1350d2e0e0489b037b35f4447fb8df56 (patch)
tree2bcff11e48ac529445a39b427e3c8e0019508c0e /packages/frickin.xml
parentc7b94e0ae6fce3c5ea11685a2ed7a9473f96095a (diff)
downloadpfsense-packages-550fd77c1350d2e0e0489b037b35f4447fb8df56.tar.gz
pfsense-packages-550fd77c1350d2e0e0489b037b35f4447fb8df56.tar.bz2
pfsense-packages-550fd77c1350d2e0e0489b037b35f4447fb8df56.zip
Remove unnecessary tags (GUI no longer used, menu entry no longer needed, syncing functions no longer needed).
Diffstat (limited to 'packages/frickin.xml')
-rw-r--r--packages/frickin.xml42
1 files changed, 0 insertions, 42 deletions
diff --git a/packages/frickin.xml b/packages/frickin.xml
index bc3c7683..3b182121 100644
--- a/packages/frickin.xml
+++ b/packages/frickin.xml
@@ -2,54 +2,12 @@
<packagegui>
<name>frickin</name>
<version>1.2</version>
- <title>Services: Frickin</title>
- <aftersaveredirect>pkg_edit.php?xml=frickin.xml&amp;id=0</aftersaveredirect>
- <menu>
- <name>Frickin</name>
- <tooltiptext>Modify settings for the Frickin PPTP proxy.</tooltiptext>
- <section>Services</section>
- <configfile>frickin.xml</configfile>
- <url>/pkg_edit.php?xml=frickin.xml&amp;id=0</url>
- </menu>
<configpath>installedpackages->package->$packagename->configuration->settings</configpath>
<additional_files_needed>
<prefix>/usr/local/bin/</prefix>
<chmod>a+rx</chmod>
<item>http://www.pfsense.com/packages/All/frickin</item>
</additional_files_needed>
- <fields>
- <field>
- <fielddescr>PPTP Server Address</fielddescr>
- <fieldname>serveraddress</fieldname>
- <description>Enter the PPTP server's IP address.</description>
- <type>input</type>
- </field>
- <field>
- <fielddescr>Maximum Concurrent Tunnels</fielddescr>
- <fieldname>maxtunnels</fieldname>
- <description>Enter the maximum number of concurrent tunnels to allow at any given time.</description>
- <type>input</type>
- </field>
- </fields>
- <custom_php_global_functions>
- function sync_package_frickin() {
- global $config;
- $frickin_config = $config['installedpackages']['frickin']['config'][0];
- $fout = fopen("/usr/local/etc/rc.d/frickin.sh", "w");
- fwrite($fout, "#!/bin/sh\n# This package was automatically generated\n# by the pfSense package system.\n\n");
- fwrite($fout, "/usr/local/bin/frickin");
- if($frickin_config['serveraddress'] != "") fwrite($fout, " -s " . $frickin_config['serveraddress']);
- if($frickin_config['maxtunnels'] != "") fwrite($fout, " -c " . $frickin_config['maxtunnels']);
- fwrite($fout, " &amp;\n");
- fclose($fout);
- mwexec("/usr/bin/killall frickin");
- mwexec("chmod a+rx /usr/local/etc/rc.d/frickin.sh");
- mwexec("/usr/local/etc/rc.d/frickin.sh");
- }
- </custom_php_global_functions>
- <custom_add_php_command>
- sync_package_frickin();
- </custom_add_php_command>
<custom_php_install_command>
$fout = fopen("/usr/local/etc/rc.d/frickin.sh", "w");
fwrite($fout, "#!/bin/sh\n# This package was automatically generated\n# by the pfSense package system.\n\n");