tis-openvpn-connect icon

OpenVPN Connect

Silent install package for OpenVPN Connect

3.5.1-1

  • package: tis-openvpn-connect
  • name: OpenVPN Connect
  • version: 3.5.1-1
  • maintainer: Amel FRADJ
  • licence: OpenVPN 3 is distributed under GNU Affero General Public License version 3 with a special permission to link against OpenSSL
  • target_os: windows
  • architecture: x86
  • signature_date:
  • size: 91.49 Mo
  • homepage : https://openvpn.net/

package           : tis-openvpn-connect
version           : 3.5.1-1
architecture      : x86
section           : base
priority          : optional
name              : OpenVPN Connect
categories        : 
maintainer        : Amel FRADJ
description       : OpenVPN Connect is a free and full-featured VPN Client
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : OpenVPN Connect est un client VPN gratuit et complet
description_pl    : OpenVPN Connect to darmowy i w pełni funkcjonalny klient VPN
description_de    : OpenVPN Connect ist ein kostenloser und voll funktionsfähiger VPN-Client
description_es    : OpenVPN Connect es un cliente VPN completo y gratuito
description_pt    : O OpenVPN Connect é um cliente VPN gratuito e com todas as funcionalidades
description_it    : OpenVPN Connect è un client VPN gratuito e completo
description_nl    : OpenVPN Connect is een gratis en volledige VPN-client
description_ru    : OpenVPN Connect - бесплатный и полнофункциональный VPN-клиент
audit_schedule    : 
editor            : 
keywords          : 
licence           : OpenVPN 3 is distributed under GNU Affero General Public License version 3 with a special permission to link against OpenSSL
homepage          : https://openvpn.net/
package_uuid      : d438abac-e266-4eee-b023-84aa0e172f5b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 6a972bef440796530e09d50762042dd9846b0acc6f85f75f9e41346fb43a53bc
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-22T19:07:18.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : UN91SKfo2F6enE88wBmWAUeqErg6J2Cvms9Arq489TzwIsyhhIw6TC7R0EjbmRQEXzMGun2oFgYh0enCJtY+PbuJLlJiowz/1c2XqnEclP7igTLiyD+S0EWusTVNLD0MK8di0UL/xbVCNlzoFQbpbPSj1GS860awMD1oY6cdFPU8EAdAkephFmuJrA+30HhUnRJXVj4QJYWkn/U+L9Vd35t3Hsr3MScZcXq1WCQZI80zvWQwSpqUnSE4Pk3Slmg3quCzgYFvaMfy+pDNZnEhhAZNpUiHRxJSmGT7XN0/GPak1kQ+uXZWuF0MFfBP7xSdDW9+RptezU6Q6kn+xFtxGQ==

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob('openvpn-connect-*.msi')[0]
    # Installing the software
    
    install_msi_if_needed(bin_name)



# -*- coding: utf-8 -*-
from setuphelpers import *
import setupdevhelpers
from setupdevhelpers import *
import re
import requests

def update_package():
    # Déclaration des variables locales
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()

    architecture = control.architecture
    url = "https://openvpn.net/client/client-connect-vpn-for-windows/"
    divs = bs_find_all(url, 'div', "class", "row",proxies=proxies)

    msi_file = None
    for div in divs:
        links = div.find_all('a', href=True)
        for link in links:
            href = link['href']
            print(f"Found link: {href}")
            if href.endswith('.msi'):
                if architecture == 'x86' and 'windows-x86' in href:
                    msi_file = href
                    break
                elif architecture == 'x64' and 'windows' in href:
                    msi_file = href
                    break

    download_url = requests.head(msi_file,proxies=proxies,allow_redirects=True).url
    latest_bin = download_url.split('/')[-1]
    print("Download URL is: %s" % download_url)

    # Supprimer les anciens fichiers binaires
    for f in glob.glob("*.msi"):
        if f != latest_bin:
            remove_file(f)

    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Obtenir la version à partir du binaire
    version = get_version_from_binary(latest_bin)

    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
6436c3e4ce6374d846435a1c35020bd00215b776cb8c1aa074d0441bd2b6d42b : WAPT/control
6a972bef440796530e09d50762042dd9846b0acc6f85f75f9e41346fb43a53bc : WAPT/icon.png
4c858ea85f55a9ddabdd284225426c5c43724e3a1655fb893b47b43559e9f84c : luti.json
a3ec4ae45d960b9188174cc6184f192927419469e9f828d5669ccc66bc4bb724 : openvpn-connect-3.5.1.3946_signed_x86.msi
b1822362cfae6aea3775e578547a1596f462088f60c6a71af736d857a62b95aa : setup.py
79b9634b9838361c528675a793ff160bef374cc7b09fafba7b58acf046d3ed1c : update_package.py