tis-virtualbox

6.1.26-9
Oracle VM VirtualBox (formerly VirtualBox) is a free virtualization software published by Oracle.
94090 downloads
Download
tis-virtualbox icon

  Description 

  • package : tis-virtualbox
  • version : 6.1.26-9
  • architecture : all
  • categories : System and network
  • maintainer : WAPT Team,Jimmy PELÉ,Simon Fonteneau
  • description : Oracle VM VirtualBox (formerly VirtualBox) is a free virtualization software published by Oracle.
  • locale : all
  • target_os : debian_based
  • min_wapt_version : 1.8.2
  • sources : https://www.virtualbox.org/wiki/Downloads
  • installed_size : 506540032
  • impacted_process : VirtualBox,VBoxWebSrv,VBoxSVC,VBoxAutostartSvc,VBoxBalloonCtrl,VBoxBugReport,VBoxDTrace,VBoxManage,VBoxSDS,VBoxExtPackHelperApp,VBoxTestOGL,VBoxNetDHCP,VBoxNetNAT,VirtualBoxVM,VBoxHeadless,VBoxSDL,vbox-img
  • description_fr : Oracle VM VirtualBox (anciennement VirtualBox) est un logiciel libre de virtualisation publié par Oracle.
  • description_pl : Oracle VM VirtualBox (dawniej VirtualBox) to darmowe oprogramowanie do wirtualizacji opublikowane przez Oracle.
  • description_de : Oracle VM VirtualBox (ehemals VirtualBox) ist eine von Oracle veröffentlichte kostenlose Virtualisierungssoftware.
  • description_es : Oracle VM VirtualBox (antes VirtualBox) es un software de virtualización libre publicado por Oracle.
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Oracle Corporation
  • licence : GPLv2
  • signature_date : 2021-10-26T10:37:50.764163
  • Homepage : https://www.virtualbox.org/

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
try:
    import bs4 as BeautifulSoup
except:
    import BeautifulSoup
import platform
import requests

# Defining variables
bin_contains = 'virtualbox'
bin_ext_name_string = 'Oracle_VM_VirtualBox_Extension_Pack-%s.vbox-extpack'
bin_ext_name_joker = '*.vbox-extpack'

def install():
    bin_name = glob.glob('*%s*.deb' % bin_contains)[0]

    # Installing the package
    print('Installing: %s' % bin_name)
    install_deb(bin_name)
    

    #Installing the VirtualBox Extension Pack
    for ext in glob.glob(bin_ext_name_joker):
        print('Installing: %s' % ext)
        try:
            run('echo y | VBoxManage extpack install --replace "%s"' % ext)
        except:
            run('VBoxManage extpack cleanup ')
            run('echo y | VBoxManage extpack install --replace "%s"' % ext)

def uninstall():
    package_name = 'virtualbox'

    # Uninstalling the package 
    print('Uninstalling: %s' % package_name)
    uninstall_apt(package_name)


def update_package():
    # Getting proxy informations from WAPT settings
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()

    # Specific app values
    url = 'https://www.virtualbox.org/wiki/Linux_Downloads'

    # Getting latest version from official website
    
    for u in bs_find_all(url,'a','class','ext-link', proxies=proxies):
        if '.deb' in str(u['href']) and 'buster' in str(u['href']):
            url_dl = u['href']
            latest_bin = url_dl.split('/')[-1]
            version = url_dl.split('/')[-2]
            latest_bin_ext = bin_ext_name_string % version
            url_dl_ext = url_dl.replace(latest_bin,latest_bin_ext)
          

    print('Latest Version %s' % version)

    for f in glob.glob('*.deb'):
        if f != latest_bin:
            remove_file(f)

    for f in glob.glob(bin_ext_name_joker):
        if f != latest_bin_ext:
            remove_file(f)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: ' + latest_bin)
        wget(url_dl,latest_bin,proxies=proxies)

    # Downloading extension
    if not isfile(latest_bin_ext):
        print("Downloading: %s" % latest_bin_ext)
        wget(url_dl_ext, latest_bin_ext, proxies=proxies)

    # Changing version of the package
    control.version = '%s-%s' % (version, control.version.split('-', 1)[-1])
    control.save_control_to_wapt()
    print("Changing package version to: %s in WAPT\\control" % control.version)


def bs_find_all(url, element, attribute=None, value=None, headers=None, proxies=None, features='html.parser', **kwargs):
    """"You may need to use a header for some websites. For example: headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0'}
    """
    page = requests.get(url, proxies=proxies, headers=headers, **kwargs).text
    try:
        import bs4 as BeautifulSoup
        soup = BeautifulSoup.BeautifulSoup(page, features=features)
    except:
        import BeautifulSoup
        soup = BeautifulSoup.BeautifulSoup(page)
    if value:
        return soup.findAll(element,{attribute:value})
    else:
        return soup.findAll(element)


def get_proxies_from_wapt_console():
    proxies = {}
    if platform.system() == 'Windows':
        waptconsole_ini_path = makepath(user_local_appdata(), 'waptconsole', 'waptconsole.ini')
    else:
        waptconsole_ini_path = makepath(user_home_directory(), '.config', 'waptconsole', 'waptconsole.ini')
    if isfile(waptconsole_ini_path):
        proxy_wapt = inifile_readstring(waptconsole_ini_path, 'global', 'http_proxy')
        if proxy_wapt:
            proxies = {'http': proxy_wapt, 'https': proxy_wapt}
    return proxies


def get_proxies():
    if platform.python_version_tuple()[0] == '3':
        from urllib.request import getproxies
    else:
        from urllib import getproxies
    return getproxies()
										

  Changelog 



Changelog software url : https://www.virtualbox.org/wiki/Changelog



No changelog.txt.
									
  manifest.sha256