tis-openvpn 2.3.10-11

  • package : tis-openvpn
  • version : 2.3.10-11
  • architecture : all
  • locale :
  • description : Client Openvpn et application GUI openvpn-mi-gui pour permettre la modification de routes sans droits privilégiés
  • maintainer : Hubert TOUVET
  • date : 2017-07-20 15:55:52
  • min_wapt_version :
  • min_os_version :
  • max_os_version :
  • impacted_process :

setup.py

# -*- coding: utf-8 -*-
import setuphelpers
import shutil
from setuphelpers import *
import glob,platform,os
import winshell

uninstallkey = []

def install():
    openvpn_dir = os.path.join(programfiles,'OpenVPN')
    openvpn_config = os.path.join(openvpn_dir,'config')
    openvpn_bin = os.path.join(openvpn_dir,'bin')

    print('Register OpenVPN as a trusted publisher')
    try:
        run(r'certutil.exe -addstore trustedpublisher openvpn-editor-cert.p7b')
    except:
        run(r'certutil\certutil.exe -addstore trustedpublisher openvpn-editor-cert.p7b')

    print('installing openvpn client')
    if windows_version() < Version('6.0.0'):
        variante = 'I002'
    else:
        variante = 'I602'

    # check firewall rules :
    """
    try:
        try:
            openvpn_fw = run('netsh advfirewall firewall show rule name="Openvpn daemon" verbose')
        except:
            run(r'netsh advfirewall firewall add rule name="OpenVPN daemon" dir=out  action=allow  description="OpenVPN Daemon" profile=any program="c:\Program Files\OpenVPN\bin\openvpn.exe"')
    except Exception as e:
        print('Erreur firewall: %s'%e)
    """
    if not installed_softwares(uninstallkey='TAP-Windows'):
        uninstallkey.append('TAP-Windows')

    if iswin64():
        install_exe_if_needed('openvpn-install-2.3.10-%s-x86_64.exe' % variante,'/S',key='OpenVPN',min_version='2.3.10-I602',killbefore=['openvpn','openvpn-gui'])
    else:
        install_exe_if_needed('openvpn-install-2.3.10-%s-i686.exe' % variante,'/S',key='OpenVPN',min_version='2.3.10-I602',killbefore=['openvpn','openvpn-gui'])
    # this need to be customized...
    #filecopyto('client.ovpn',openvpn_config)
    #filecopyto('client.p12',openvpn_config)
    print('A reboot of the computer may be needed to release the TAP adapter')

    

Changelog

No changelog
    

manifest.sha256

openvpn-install-2.3.10-I002-x86_64.exe c5bf47d761a7e8cdb1a20a0ecd565eaa2e2e4d3d0f72393f236f43c4ca051777
openvpn-editor-cert.p7b 9738ac185e39b1c8206acfa4569c8c95c96a140cd96602651727101df11285fb
openvpn-install-2.3.10-I602-i686.exe f995d96c8bc3e33116ea79c24d1067566376d64b46f907fa882a812a97d8949d
tap-windows.exe 02e1013ee8d548edc3fbafab672977ea8c677cf1f0b57018652fcf2a2411cbfb
certutil/readme.txt e0e46068dbc7156522bfc4526c81303ba1f8eb8b357c3a013da6792139125718
client.ovpn ec4ff36d2e523106545408fabd29aca8773029c23b65f378dc6d62995ec66e32
client.p12 c335ce7441ece24bc60dd6b3c758b9fdead7830ce2a488b75fed45a50d7cac9c
certutil/certcli.dll df08b70b34b9adcd0dba83cdac669c1625cdfa12a86ab052bad77078d3224c7c
WAPT/certificate.crt 20f25d6b242159077345379865f8e0d84bdc9e4764190f1aa6cb3816bcabd341
certutil/certutil.exe 75ddab1826f220eb36a9eea9cf8533c94c19bac89d961380f3a418f6eedb2b4e
certutil/certadm.dll bbba87bf62e8bdc11602f2a95712e5fe3fb1edbbcdeb28cbdcf191aeab286b04
setup.py d8bc2ae9954f634cb77e17e9cde7a95987ab419ccac6957bbfe80cbbf3981fb8
openvpn-install-2.3.10-I002-i686.exe 207eb78732c277d1c05197d34653e92a70b9e847457a5ae2a32d9b0fe566c623
WAPT/wapt.psproj beee9ceab59c54da78ced687ce5eb064eb73479fad949d47d72bffb33deb6f96
WAPT/control 84b2ff49350349ea0f31ac8907197b3993d5d897b232ed22707824ce95820a2f
openvpn-install-2.3.10-I602-x86_64.exe 6866bd849a226c6c3c1d9fb701284282528e988e65dde3c70f0415e44fc4853e