- package: tis-seafile
- name: Seafile
- version: 9.0.6-2
- categories: Office
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Hubert TOUVET,Amelie LE JEUNE
- editor: HaiWenHuZhi ltd.
- licence: opensource_free,wapt_public,cpe:/a:gnu:gpl_v2
- locale: all
- target_os: debian-bullseye
- impacted_process: seafile-applet,seaf-daemon
- architecture: x64
- signature_date:
- size: 1.82 Mo
- installed_size: 282.63 Mo
- homepage : https://www.seafile.com/
package : tis-seafile
version : 9.0.6-2
architecture : x64
section : base
priority : optional
name : Seafile
categories : Office
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Hubert TOUVET,Amelie LE JEUNE
description : Seafile is an open source file storage and sharing solution
depends :
conflicts :
maturity : PROD
locale : all
target_os : debian-bullseye
min_wapt_version : 2.3
sources : https://www.seafile.com/en/download/
installed_size : 282629518
impacted_process : seafile-applet,seaf-daemon
description_fr : Seafile est une solution de stockage et de partage de fichiers open source
description_pl : Seafile to rozwiązanie open source do przechowywania i udostępniania plików
description_de : Seafile ist eine Open-Source-Lösung zur Speicherung und gemeinsamen Nutzung von Dateien
description_es : Seafile es una solución de código abierto para almacenar y compartir archivos
description_pt : O Seafile é uma solução de armazenamento e partilha de ficheiros de código aberto
description_it : Seafile è una soluzione open source per l'archiviazione e la condivisione di file
description_nl : Seafile is een open source oplossing voor het opslaan en delen van bestanden
description_ru : Seafile - это решение для хранения и обмена файлами с открытым исходным кодом
audit_schedule :
editor : HaiWenHuZhi ltd.
keywords : seafile,cloud,file,storage,sharing,solution,client
licence : opensource_free,wapt_public,cpe:/a:gnu:gpl_v2
homepage : https://www.seafile.com/
package_uuid : 40e30c29-bef1-4859-9f79-9b64b7dc58df
valid_from :
valid_until :
forced_install_on :
changelog : https://download.seafile.com/published/seafile-manual/changelog/client-changelog.md
min_os_version :
max_os_version :
icon_sha256sum : 2fa8a089ab65b8b5746bf57908d847606256cde5d7da32929a132f18fb7df741
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2024-09-25T00:02:29.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 : TX2AxuQ78q7++kxYkpLBFdLIQdeGk9CsDa2Zh+YmRzLovwWfiQiNJEoDFXvtaopUXbzy6Y+TqZc4jJMzPh5Uipq9g/BI2CG+t4bc/PHuWOt4tbRfNoIRq4qgA8y61jTP7nVe0a8GF/IWA5X0iMaGxVqqwmsTtgwLVTqECVz71Kb68SZMNgfAE2sfFqIg5dPY22u8UZ93jXNddWPVJb2BHVMHde7EtnX5r6lZ7W/+YREHNVvgT4tbdKta8fsQay+NCySCZCxHopBFTbml25QZLnNKzRJfR0ae4TOBjP+/Um+kWQpD3a/DPIIKjArXNw0y3SKClKRM/uw3pPzlbQUW9Q==
# -*- 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 ./seafile*.deb -y")
except:
run("LANG=C DEBIAN_FRONTEND=noninteractive apt-get install ./*.deb -y")
def uninstall():
for u in installed_softwares('seafile'):
if 'seafile' 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/seafile-deb/' + control.target_os.split('-')[1]
dist = "stable"
arch = dict_arch[control.architecture]
package_name_list = ["seafile-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
3bd73d87a7c190afba747df30d293dab28177fa5cebfff812469eb0dc0084e77 : WAPT/control
2fa8a089ab65b8b5746bf57908d847606256cde5d7da32929a132f18fb7df741 : WAPT/icon.png
b62a518d0f1e8039d2676b63e947d3218e4419f40902976f9f5b7fec1bf7feee : libseafile0_9.0.6_amd64.deb
e5e05415cf1f2f42c04b89c7ff459b6ccdfa9231a70acb94f720b6ced4548578 : libsearpc1_3.2.0_amd64.deb
620c1e6ebb3ed0c8f79cac72a756df6db5dbabb0232816db2f78c1af58fa06ef : luti.json
57692ed72de2660ecaad9a74adf360e650960034a3733312be130e949c94155b : seafile-daemon_9.0.6_amd64.deb
aac882c5faaa34b1808a104f1adf50803d807ee33690feaa39aa94d750073ee4 : seafile-gui_9.0.6_amd64.deb
334cab5ed7ac7d540e8f0410e1a54b051f1f60138a302dba304977a5286caaa1 : setup.py
7dad28e5745375a92b65249b65c36e4ba064ccf69d241616bbb7e7f1c90d05a7 : update_package.py