Détails du package
smp-fogclient
Revenir à la liste des packages
Fichier control :
package : smp-fogclient
version : 0.11.15-1
architecture : all
section : base
priority : optional
name :
categories :
maintainer : Simon Fonteneau
description : Fog Client ! Warning ! http://fogserver/fog should work, otherwise the installation will crash
depends :
conflicts :
maturity :
locale :
target_os : windows
min_os_version :
max_os_version :
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr : Client Fog Attention ! http://fogserveur/fog doit fonctionner, sinon l'installation va planter
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : 4d57d8f3-6645-4644-8204-3fe241f9d6a3
valid_from :
valid_until :
forced_install_on :
changelog :
signer : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature : hi2mT6w6rMt4+3Q9te0a0PxvIeC9AxNdpw/FVnBy05QaxNzjJOOmvpYwcXCoYr89FwqJiWVUo8iej1KxXMnqpdQGHuyradDhUEAfw16JFdj3iIJXgPAVeDKoHaMumuk3JPO+tV3ypqe3/aXTU27OdaeDczBN/G90mDGQrD4uWGV713JrrDP4UaZXC3U/gpyR9+DL72V09gkRr6f5+vIUT3CTGjlFlO9rChRcL8ER9bDv3oD+Biw7T3cg0MTzRMigUqaU7eRTavAl94YYVkudpqw217qHaUi1WjTG7A0Q45kp9QivyHiKr+bZLcse41CVf15vKgW7gY7syxJfPZSVtA==
signature_date : 2020-07-04T01:19:11.977615
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,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,signer,signer_fingerprint,signature_date,signed_attributes
Fichier setup.py :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
properties = {
'USETRAY':0,
'HTTPS':0,
'WEBADDRESS':'fogserveur',
'WEBROOT':'/fog',
'ROOTLOG':0,
}
def install():
for soft in installed_softwares('FOG Service'):
run(WAPT.uninstall_cmd(soft['key']))
print('installing Fog Client')
install_msi_if_needed('FOGService.msi',properties=properties)
def update_package():
for line in wgets('https://github.com/FOGProject/fog-client/releases').splitlines():
if 'fog-client/releases/tag/' in line :
lastversion = line[line.find('">') + 2 :line.find('</a>')]
break
for msi in glob.glob('*.msi'):
if Version(get_msi_properties(msi)['ProductVersion']) != Version(lastversion):
remove_file(msi)
if not isfile('FOGService.msi'):
print('Downloading FOGService.msi')
wget('https://github.com/FOGProject/fog-client/releases/download/%s/FOGService.msi' % (lastversion),'FOGService.msi')
else:
print('Already up to date, skipped')
os.chdir(os.path.dirname(__file__))
from waptpackage import PackageEntry
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = lastversion + '-0'
pe.save_control_to_wapt(os.getcwd())
if __name__ == '__main__':
update_package()