- 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: ubuntu-jammy
- impacted_process: seafile-applet,seaf-daemon
- architecture: x64
- signature_date:
- size: 1.98 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 : ubuntu-jammy
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 : 85b2de0f-e2d0-41e8-afda-f712ee843c2a
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:01:16.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 : UeYfrjkD5IIHIAKA7BtEF1foCD7c6BjNFlyzclUvsmLcEwoZ3Y4KkefZkUxmnd1qRpXi0EON0iEPqMawUFZu8nEXAmDvZ11+liSC/8y4H9DCK3x20QAxe8o9378dPkMSKjuyR98mInBcw6fjomsVLYHXkTHGn1Arzrnvn993njGlfQL4lZMaswmlh/H7kGN9Ar/J7Q8O8csluCm6VDfN2S3PHutvWICUM/B+jbaljpw9pS2VVU7Jta2nI7gxDI9nbn4VQMH3QmjdcHdZSl5HqvaZV4IaPuI0tKuCp2IsioVtifAfdQoEUB3+rp7WE2kX9KF3Phvf/9gDTJeJL2sYfA==
# -*- 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
7e2943a0773176182687d6830cdcff1b64ec6c97436768ce14f59593f913323f : WAPT/control
2fa8a089ab65b8b5746bf57908d847606256cde5d7da32929a132f18fb7df741 : WAPT/icon.png
fd20cf3cac0cf8502c7a4aebde5ede406200b35523e2f94451bd6b0e2603f8e4 : libseafile0_9.0.6_amd64.deb
e96593d19fa201c0676dc0b152bb605778b1bda42ef9d2a8bd5d3569481d708a : libsearpc1_3.2.0_amd64.deb
767f7eb9850513e744e161465534ac62a1065fdc87cca6a5557c6837aed38cbb : luti.json
c7b8381691ce10161e344146c85ac955396ec6bd42ee3f0e1ae5b4c5c4a1f508 : seafile-daemon_9.0.6_amd64.deb
ec5981656bdf940a557575ed38d0bcdbded08b286848d1c573204db916e36f2d : seafile-gui_9.0.6_amd64.deb
334cab5ed7ac7d540e8f0410e1a54b051f1f60138a302dba304977a5286caaa1 : setup.py
7dad28e5745375a92b65249b65c36e4ba064ccf69d241616bbb7e7f1c90d05a7 : update_package.py