Browse Source

openvpn: removed obsolete code for building plugins

Note:

Starting with openvpn 2.3.0 there seem to be changes how plugins are enabled
and there are configure switches now for disabling the shipped plugins.
user/chris/wip/linux37
Christian Wiese 12 years ago
parent
commit
b80586f1ba
  1. 29
      network/openvpn/openvpn.conf

29
network/openvpn/openvpn.conf

@ -12,29 +12,6 @@
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
plugin_libdir="${libdir}/openvpn"
plugins_enabled=''
build_plugin() {
local plugin=$1; shift
echo "Building openvpn plugin $plugin..."
cd plugin/$plugin
eval $MAKE $makeopt
cp *.so ${root}${plugin_libdir}
cd ../..
}
build_plugins() {
install -d ${root}${plugin_libdir}
for plugin in $plugins_enabled; do
build_plugin $plugin
done
}
# allow passwords to be read from a file
var_append confopt ' ' "--enable-password-save"
@ -56,9 +33,3 @@ fi
if ! pkginstalled -f pam; then
var_append extraconfopt ' ' "--disable-plugin-auth-pam"
fi
# build plugins when $plugins_enabled is not empty
if [ ! -z "$plugins_enabled" ]; then
echo_warning "Enabling OpenVPN plugins: $plugins_enabled"
hook_add postmake 3 build_plugins
fi

Loading…
Cancel
Save