aboutsummaryrefslogtreecommitdiffstats
path: root/packages/stunnel.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-02 22:02:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-02 22:02:12 +0000
commit1f130ffa225a59f29f1e155ed8ebf1166775f108 (patch)
treef50a429908ec7779f7deffc58f35bae34a3ca0bf /packages/stunnel.xml
parentcb022d511ac2971a8fec4037e715d0f8f2b4d56c (diff)
downloadpfsense-packages-1f130ffa225a59f29f1e155ed8ebf1166775f108.tar.gz
pfsense-packages-1f130ffa225a59f29f1e155ed8ebf1166775f108.tar.bz2
pfsense-packages-1f130ffa225a59f29f1e155ed8ebf1166775f108.zip
Rename the sync_package function to sync_package_filename()
Diffstat (limited to 'packages/stunnel.xml')
-rw-r--r--packages/stunnel.xml58
1 files changed, 29 insertions, 29 deletions
diff --git a/packages/stunnel.xml b/packages/stunnel.xml
index c07eea0e..253da369 100644
--- a/packages/stunnel.xml
+++ b/packages/stunnel.xml
@@ -72,38 +72,38 @@
</field>
</fields>
<custom_php_install_command>
- system("mkdir /usr/local/etc/stunnel 2>/dev/null");
- system("mkdir /var/tmp/stunnel 2>/dev/null");
- system("/usr/bin/openssl req -new -x509 -days 365 -nodes -out /usr/local/etc/stunnel/stunnel.pem -keyout /usr/local/etc/stunnel/stunnel.pem 2>/dev/null");
- system("chmod a-r /usr/local/etc/stunnel/stunnel.pem");
- system("chmod u+r /usr/local/etc/stunnel/stunnel.pem");
- system("mkdir -p /var/tmp/stunnel/var/tmp");
- system("chmod a+rw /var/tmp/stunnel/var/tmp/.");
- system("mv /usr/local/etc/rc.d/stunnel.sh.sample /usr/local/etc/rc.d/stunnel.sh");
- system("chmod 555 /usr/local/etc/rc.d/stunnel.sh");
+ system("mkdir /usr/local/etc/stunnel 2>/dev/null");
+ system("mkdir /var/tmp/stunnel 2>/dev/null");
+ system("/usr/bin/openssl req -new -x509 -days 365 -nodes -out /usr/local/etc/stunnel/stunnel.pem -keyout /usr/local/etc/stunnel/stunnel.pem 2>/dev/null");
+ system("chmod a-r /usr/local/etc/stunnel/stunnel.pem");
+ system("chmod u+r /usr/local/etc/stunnel/stunnel.pem");
+ system("mkdir -p /var/tmp/stunnel/var/tmp");
+ system("chmod a+rw /var/tmp/stunnel/var/tmp/.");
+ system("mv /usr/local/etc/rc.d/stunnel.sh.sample /usr/local/etc/rc.d/stunnel.sh");
+ system("chmod 555 /usr/local/etc/rc.d/stunnel.sh");
</custom_php_install_command>
<custom_php_deinstall_command>
- system("rm -rf /var/tmp/stunnel 2>/dev/null");
- system("rm -rf /usr/local/etc/stunnel*");
+ system("rm -rf /var/tmp/stunnel 2>/dev/null");
+ system("rm -rf /usr/local/etc/stunnel*");
</custom_php_deinstall_command>
<custom_add_php_command_late>
- conf_mount_rw();
- config_lock();
- $fout = fopen("/usr/local/etc/stunnel/stunnel.conf","w");
- fwrite($fout, "cert = /usr/local/etc/stunnel/mail.pem \n");
- fwrite($fout, "chroot = /var/tmp/stunnel \n");
- fwrite($fout, "setuid = stunnel \n");
- fwrite($fout, "setgid = stunnel \n");
- foreach($config['installedpackages']['stunnel']['config'] as $pkgconfig) {
- fwrite($fout, "\n[" . $pkgconfig['description'] . "]\n");
- fwrite($fout, "accept = " . $pkgconfig['localip'] . ":" . $pkgconfig['localport'] . "\n");
- fwrite($fout, "connect = " . $pkgconfig['redirectip'] . ":" . $pkgconfig['redirectport'] . "\n");
- fwrite($fout, "TIMEOUTclose = 0\n\n");
- }
- fclose($fout);
- conf_mount_ro();
- config_unlock();
- system("/usr/bin/killall stunnel 2>/dev/null");
- system("/usr/local/etc/rc.d/stunnel.sh start 2>/dev/null");
+ conf_mount_rw();
+ config_lock();
+ $fout = fopen("/usr/local/etc/stunnel/stunnel.conf","w");
+ fwrite($fout, "cert = /usr/local/etc/stunnel/mail.pem \n");
+ fwrite($fout, "chroot = /var/tmp/stunnel \n");
+ fwrite($fout, "setuid = stunnel \n");
+ fwrite($fout, "setgid = stunnel \n");
+ foreach($config['installedpackages']['stunnel']['config'] as $pkgconfig) {
+ fwrite($fout, "\n[" . $pkgconfig['description'] . "]\n");
+ fwrite($fout, "accept = " . $pkgconfig['localip'] . ":" . $pkgconfig['localport'] . "\n");
+ fwrite($fout, "connect = " . $pkgconfig['redirectip'] . ":" . $pkgconfig['redirectport'] . "\n");
+ fwrite($fout, "TIMEOUTclose = 0\n\n");
+ }
+ fclose($fout);
+ conf_mount_ro();
+ config_unlock();
+ system("/usr/bin/killall stunnel 2>/dev/null");
+ system("/usr/local/etc/rc.d/stunnel.sh start 2>/dev/null");
</custom_add_php_command_late>
</packagegui>