- package: tis-seadrive
- name: SeaDrive
- version: 2.0.28-34
- categories: Utilities
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
- editor: Seafile Ltd.
- licence: GPLv2
- locale: all
- target_os: debian-bullseye
- impacted_process: seadrive,seadrive-gui
- architecture: x64
- signature_date:
- size: 942.27 Ko
- installed_size: 271.18 Mo
- homepage : https://www.seafile.com/
package : tis-seadrive
version : 2.0.28-34
architecture : x64
section : base
priority : optional
name : SeaDrive
categories : Utilities
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
description : SeaDrive enables you to access files on the server without syncing to local disk. It works like a network drive.
depends :
conflicts :
maturity : PROD
locale : all
target_os : debian-bullseye
min_wapt_version : 2.0
sources : https://www.seafile.com/en/download/
installed_size : 271183872
impacted_process : seadrive,seadrive-gui
description_fr : SeaDrive vous permet d'accéder aux fichiers sur le serveur sans synchronisation avec le disque local. Il fonctionne comme un lecteur réseau
description_pl : SeaDrive umożliwia dostęp do plików na serwerze bez konieczności synchronizacji na dysku lokalnym. Działa jak dysk sieciowy
description_de : Mit SeaDrive können Sie auf Dateien auf dem Server zugreifen, ohne sie mit der lokalen Festplatte zu synchronisieren. Es funktioniert wie ein Netzlaufwerk
description_es : SeaDrive permite acceder a los archivos del servidor sin necesidad de sincronizarlos con el disco local. Funciona como una unidad de red
description_pt : SeaDrive permite o acesso a ficheiros no servidor sem sincronização com o disco local. Funciona como uma unidade de rede
description_it : SeaDrive consente di accedere ai file sul server senza sincronizzare il disco locale. Funziona come un'unità di rete
description_nl : Met SeaDrive hebt u toegang tot bestanden op de server zonder ze naar de lokale schijf te synchroniseren. Het werkt als een netwerkschijf
description_ru : SeaDrive позволяет получить доступ к файлам на сервере без синхронизации с локальным диском. Он работает как сетевой диск
audit_schedule :
editor : Seafile Ltd.
keywords : sharing,file,seafile,drive,sea
licence : GPLv2
homepage : https://www.seafile.com/
package_uuid : 1677f039-12fa-45bf-b6be-f72404e8d113
valid_from :
valid_until :
forced_install_on :
changelog : https://manual.seafile.com/changelog/drive-client-changelog/
min_os_version :
max_os_version :
icon_sha256sum : 095bf254df112880418ca67754fab61e3d80467a8218bf911530a9a9aeade66b
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2024-09-25T00:00:51.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 : VhdtIKti8BcQkSySDMt8khdkPVbYxQj/eU7rFgwpSlatx2/bnA0xYbr/1mJJGE/q9/aC7iKWwtGkv5eHmMeyJae2gDBJ+A/gDBtl0GXNfOb2k5WObzQi9GSRmENELDQzwinW1w7vKNMxYXlA/r6gA3WUQFkXtAW+MU0BwBE9EkKFmt5Ou2P/rNPibcVWzdFeLeptHbC1zGUCSELevssEzTtoBsfnVmlDo0ooAqMxOWHvb2iH9HYcAg+1cVH/VpIBydOaPFSn7mwHuQgs0XPukDRU3HDLzj9tOcUk9QDQXO5eFRvsC3gsh0gXzCJgnfQer0LoCNtcSwn9d5/XsyRvbA==
# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *
def install():
try:
run("LANG=C DEBIAN_FRONTEND=noninteractive apt-get install ./seadrive*.deb -y")
except:
run("LANG=C DEBIAN_FRONTEND=noninteractive apt-get install ./*.deb -y")
def uninstall():
for u in installed_softwares('seadrive'):
if 'seadrive' in u['key'] :
if not [l for l in installed_softwares() if l['key'] == u['key']]:
continue
uninstall_apt(u['key'],autoremove=True)
# -*- coding: utf-8 -*-
from setuphelpers import *
import gzip
from io import BytesIO
from setuphelpers import Version,wgets
from setupdevhelpers import *
def update_package():
# Declaring local variables
result = False
proxies = get_proxies_from_wapt_console()
if not proxies:
proxies = get_proxies()
dict_arch = {"x64": "amd64","x86":"i386","arm":"armhf","arm64":"arm64"}
urldepot = 'https://linux-clients.seafile.com/seadrive-deb/' + control.target_os.split('-')[1]
dist = "stable"
arch = dict_arch[control.architecture]
package_name_list = ["seadrive-gui"]
with gzip.open(BytesIO(wgets('%s/dists/%s/main/binary-%s/Packages.gz' % (urldepot,dist,arch),proxies=proxies))) as f:
data = f.read().decode('utf-8')
list_package = listcontrol_to_dict_data(data,'\nPackage: ')
all_dep=[]
last_version= None
list_deb = []
for package_name in package_name_list :
last_package = sorted([u for u in list_package if u['package'] == package_name], key=lambda p: (Version(p['version'].split(':',1)[-1].split('+')[0])), reverse=True)[0]
if not last_version:
last_version = last_package['version'].split(':',1)[-1].split('+')[0]
all_dep.append(last_package)
for s in last_package.get('depends','').split(','):
for p in s.split('|'):
get_all_dep_version_pacakge(list_package,p.split('(')[0].strip(),all_dep,already_check={})
for u in all_dep:
list_deb.append(urldepot + '/' + u['filename'])
list_all_file = []
for f in list_deb:
filename = f.split('/')[-1]
list_all_file.append(filename)
if not isfile(filename):
wget(f,filename,proxies=proxies)
for f in glob.glob('*.deb'):
if not f in list_all_file:
remove_file(f)
control.set_software_version(last_version)
control.save_control_to_wapt()
def listcontrol_to_dict_data(data=None, first_entry=None):
list_package = '\n' + data
list_control=[]
for i in list_package.split(first_entry):
if not i.strip('\n'):
continue
list_control.append(first_entry.replace('\n','') + i)
list_package = []
for pkg in list_control:
entry = {}
gpg = False
for l in pkg.split('\n'):
if '-----BEGIN PGP PUBLIC KEY BLOCK-----' in l:
gpg = True
continue
if '-----END PGP PUBLIC KEY BLOCK-----' in l:
gpg = False
continue
if gpg :
continue
if not l:
continue
if (':' in l) and (not '::' in l) and (not l.startswith(' ')) :
key = l.split(':',1)[0].strip().lower()
value = l.split(':',1)[1].strip()
entry[key] = value.strip('\n')
else:
entry[key] = entry[key].strip('\n') + ' ' if entry[key].strip() else "" + l.strip()
list_package.append(entry)
return list_package
def get_all_dep_version_pacakge(list_package,package_name,all_dep,already_check):
if package_name in already_check:
return
already_check[package_name]=None
last_package = sorted([u for u in list_package if u['package'] == package_name], key=lambda p: (Version(p['version'].split(':',1)[-1].split('+')[0])), reverse=True)
if last_package:
last_package = last_package[0]
all_dep.append(last_package)
else:
return
for k in last_package.get('depends','').split('|'):
for p in k.split(','):
get_all_dep_version_pacakge(list_package,p.split('(')[0].strip(),all_dep,already_check)
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
22b4550abc7e463761d62fcb94c2ba432f0563dc882b223e0fd3602766e0ab5e : WAPT/control
095bf254df112880418ca67754fab61e3d80467a8218bf911530a9a9aeade66b : WAPT/icon.png
e5e05415cf1f2f42c04b89c7ff459b6ccdfa9231a70acb94f720b6ced4548578 : libsearpc1_3.2.0_amd64.deb
18a57539eb749335fa21cf26f1a848bf0a43123730a75ffaa41baa9b62aa8d67 : luti.json
1bc9b7d5c379690cc827204c264a292d1c389c26a15d23212bb67e502068cd31 : seadrive-daemon_2.0.28_amd64.deb
b13ec085bf1f6e25c5e835f1da80f6b527bc32a6d0335b04d1c7de740cf5a00d : seadrive-gui_2.0.28_amd64.deb
1afb8890a77d90585790206c55d5bf648f75b4a07dcc39d483dc6b2b506019ba : setup.py
fd77a2c2873fc2ba0578a318ba39e184b9908d95c929a1af8b5dfcb49e623a7a : update_package.py