diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-05 17:16:45 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-05 17:16:45 +0000 |
commit | f8addcb1c9b6e4f1a73af6a9f24b96fc756aabe7 (patch) | |
tree | c701774166ae4cc3df8a2e1179df299d3ce22b00 /packages/stunnel.xml | |
parent | 92485503241dddaafa85fc76c1d0256436147757 (diff) | |
download | pfsense-packages-f8addcb1c9b6e4f1a73af6a9f24b96fc756aabe7.tar.gz pfsense-packages-f8addcb1c9b6e4f1a73af6a9f24b96fc756aabe7.tar.bz2 pfsense-packages-f8addcb1c9b6e4f1a73af6a9f24b96fc756aabe7.zip |
* Add PACKAGE: $packagename
* Add EXECUTABLE: $executable-name
Diffstat (limited to 'packages/stunnel.xml')
-rw-r--r-- | packages/stunnel.xml | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/packages/stunnel.xml b/packages/stunnel.xml index 1fa6fbb3..35332bff 100644 --- a/packages/stunnel.xml +++ b/packages/stunnel.xml @@ -72,17 +72,23 @@ </field> </fields> <custom_php_install_command> - safe_mkdir("/usr/local/etc/stunnel"); - 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"); - chmod("/usr/local/etc/stunnel/stunnel.pem", 600); - make_dirs("/var/tmp/stunnel/var/tmp"); - chmod("/var/tmp/stunnel/var/tmp/", 1777); - copy("/usr/local/etc/rc.d/stunnel.sh.sample", "/usr/local/etc/rc.d/stunnel.sh"); - chmod("/usr/local/etc/rc.d/stunnel.sh", 0555); + safe_mkdir("/usr/local/etc/stunnel"); + 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"); + chmod("/usr/local/etc/stunnel/stunnel.pem", 600); + make_dirs("/var/tmp/stunnel/var/tmp"); + chmod("/var/tmp/stunnel/var/tmp/", 1777); + copy("/usr/local/etc/rc.d/stunnel.sh.sample", "/usr/local/etc/rc.d/stunnel.sh"); + $fout = fopen("/usr/local/etc/rc.d/stunnel.sh","w"); + fwrite($fout, "#!/bin/sh\n"); + fwrite($fout, "# PACKAGE: STunnel\n"); + fwrite($fout, "# EXECUTABLE: stunnel\n"); + fwrite($fout, "/usr/local/sbin/stunnel /usr/local/etc/stunnel/stunnel.conf\n\n"); + fclose($fout); + chmod("/usr/local/etc/rc.d/stunnel.sh", 0555); </custom_php_install_command> <custom_php_deinstall_command> - rmdir_recursive("/var/tmp/stunnel"); - rmdir_recursive("/usr/local/etc/stunnel*"); + rmdir_recursive("/var/tmp/stunnel"); + rmdir_recursive("/usr/local/etc/stunnel*"); </custom_php_deinstall_command> <custom_add_php_command_late> conf_mount_rw(); |