aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2011-12-19 16:42:54 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-12-19 16:42:54 -0200
commit8ec00fa736f9e1c09a4ad8682ad0d20d6e034c13 (patch)
tree63940c53520da1b8546bcc517324e1e8ef09f07d /config
parent0c5584867b3e73ddce11b0ee1b3769e4fdca1b57 (diff)
downloadpfsense-packages-8ec00fa736f9e1c09a4ad8682ad0d20d6e034c13.tar.gz
pfsense-packages-8ec00fa736f9e1c09a4ad8682ad0d20d6e034c13.tar.bz2
pfsense-packages-8ec00fa736f9e1c09a4ad8682ad0d20d6e034c13.zip
openvpn-client-export - add menu and file permission
Diffstat (limited to 'config')
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.xml13
-rw-r--r--config/openvpn-client-export/openvpnexport.inc11
2 files changed, 23 insertions, 1 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.xml b/config/openvpn-client-export/openvpn-client-export.xml
index d3816e14..8e0927c3 100755
--- a/config/openvpn-client-export/openvpn-client-export.xml
+++ b/config/openvpn-client-export/openvpn-client-export.xml
@@ -1,12 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<packagegui>
<name>OpenVPN Client Export</name>
- <version>0.9</version>
+ <version>0.9.1</version>
<title>OpenVPN Client Export</title>
<include_file>/usr/local/pkg/openvpn-client-export.inc</include_file>
<backup_file></backup_file>
<aftersaveredirect></aftersaveredirect>
<configpath></configpath>
+ <menu>
+ <name>OpenVPN Client Export</name>
+ <tooltiptext>OpenVPN Client Export Utility</tooltiptext>
+ <section>VPN</section>
+ <url>vpn_openvpn_export.php</url>
+ </menu>
<tabs>
<tab>
<name>Client Export</name>
@@ -39,6 +45,11 @@
<chmod>077</chmod>
<item>http://www.pfsense.com/packages/config/openvpn-client-export/vpn_openvpn_export_shared.php</item>
</additional_files_needed>
+ <additional_files_needed>
+ <prefix>/etc/inc/priv/</prefix>
+ <chmod>077</chmod>
+ <item>http://www.pfsense.com/packages/config/openvpn-client-export/openvpnexport.inc</item>
+ </additional_files_needed>
<custom_php_install_command>
openvpn_client_export_install();
</custom_php_install_command>
diff --git a/config/openvpn-client-export/openvpnexport.inc b/config/openvpn-client-export/openvpnexport.inc
new file mode 100644
index 00000000..93046364
--- /dev/null
+++ b/config/openvpn-client-export/openvpnexport.inc
@@ -0,0 +1,11 @@
+<?php
+
+global $priv_list;
+
+$priv_list['page-openvpn-client-export'] = array();
+$priv_list['page-openvpn-client-export']['name'] = "WebCfg - OpenVPN: Client Export Utility";
+$priv_list['page-openvpn-client-export']['descr'] = "Allow access to the OpenVPN: Client Export Utility page.";
+$priv_list['page-openvpn-client-export']['match'] = array();
+$priv_list['page-openvpn-client-export']['match'][] = "vpn_openvpn_export.php*";
+
+?>