From f33a58171fced03272598e5ff94a9c18a9fa5222 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 30 Nov 2006 18:51:21 +0000 Subject: Update frickin PPTP Proxy package --- packages/frickin/frickin.inc | 51 ++++++++++++++++++++++++++++++++++++++++++++ packages/frickin/frickin.xml | 28 ++++++++++-------------- 2 files changed, 62 insertions(+), 17 deletions(-) create mode 100644 packages/frickin/frickin.inc diff --git a/packages/frickin/frickin.inc b/packages/frickin/frickin.inc new file mode 100644 index 00000000..9a5d9f05 --- /dev/null +++ b/packages/frickin/frickin.inc @@ -0,0 +1,51 @@ + 127.0.0.1\n"; + $rules .= "rdr on $iface proto gre from any to !($iface) -> 127.0.0.1\n"; + } + break; + case 'filter': + break; + default: + break; + } + + return $rules; +} + +?> \ No newline at end of file diff --git a/packages/frickin/frickin.xml b/packages/frickin/frickin.xml index f3974a55..b507649e 100644 --- a/packages/frickin/frickin.xml +++ b/packages/frickin/frickin.xml @@ -3,27 +3,21 @@ frickin 1.2 installedpackages->package->$packagename->configuration->settings + + /usr/local/pkg/ + 077 + http://www.pfsense.com/packages/config/frickin/frickin.inc + /usr/local/bin/ - 0755 - http://www.pfsense.com/packages/All/frickin - + 077 + http://www.pfsense.com/packages/config/frickin/bin/frickin + - $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, "# PACKAGE: Frickin Proxy\n"); - fwrite($fout, "# EXECUTABLE: frickin\n"); - fwrite($fout, "/usr/local/bin/frickin"); - fwrite($fout, " -s 127.0.0.1"); - fwrite($fout, " -c 20"); - fwrite($fout, " &\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"); + frickin_custom_php_install_command(); - unlink_if_exists("/usr/local/etc/rc.d/frickin.sh"); - unlink_if_exists("/usr/local/bin/frickin"); + frickin_custom_php_deinstall_command(); + /usr/local/pkg/frickin.inc -- cgit v1.2.3