Commit 281e4e3b authored by Gabriel Moreau's avatar Gabriel Moreau
Browse files

Add WAPT compatibility

parent 80352372
......@@ -32,18 +32,19 @@ key:
zip: $(SOFT)-$(VERSION)-$(PATCH).zip
%.zip: Makefile
mkdir -p tmp
mkdir -p ./tmp/WAPT
perl -p -e ' \
s/^(SET\ssoftversion=)\d[\.\d]+/$${1}$(VERSION)/; \
s/^(SET\ssoftpatch=)\d+/$${1}$(PATCH)/;' install.bat > tmp/install.bat
@perl -p -e ' \
s/__VERSION__/$(VERSION)/; \
s/__PATCH__/$(PATCH)/;' control > ./tmp/WAPT/control
@cp ../../Modules/SWMB.psm1 ../../Modules/SWMB/Custom.psm1 ../../Modules/SWMB/Custom-VarDefault.psm1 ../../Modules/SWMB/Experimental.psm1 ./tmp/; \
cp ./README.md ./get-password-cleartext.ps1 ./set-password-encrypted.ps1 ./Custom-VarAutodel.psm1 ./*.key ./tmp/; \
cp ./uninstall-kaspersky-standalone.ps1 ./tmp/uninstall-kaspersky.ps1; \
cp -f ../../LICENSE.md ./setup.py ./tmp/
rm -f $@
(cd tmp; \
cp ../../../Modules/SWMB.psm1 ../../../Modules/SWMB/Custom.psm1 ../../../Modules/SWMB/Custom-VarDefault.psm1 ../../../Modules/SWMB/Experimental.psm1 ./; \
cp ../README.md ../get-password-cleartext.ps1 ../set-password-encrypted.ps1 ./; \
cp ../uninstall-kaspersky-standalone.ps1 ./uninstall-kaspersky.ps1; \
cp ../Custom-VarAutodel.psm1 ../*.key ./; \
zip -r ../$@ install.bat README.md *.ps1 *.psm1 *.key \
)
(cd tmp; zip -r ../$@ install.bat README.md *.ps1 *.psm1 *.key setup.py LICENSE.md WAPT)
chmod ugo+rw $@
......
......@@ -53,6 +53,11 @@ but also under MacOSX or GNU/Linux OSes by installing
[PowerShell](https://docs.microsoft.com/fr-fr/powershell/scripting/install/installing-powershell)
(command `pwsh`).
*WAPT*: The Zip archive is also compatible with a [WAPT](https://www.wapt.fr) package system
(there are `setup.py` and `control` files inside).
So it is possible to push this package on your WAPT package server
(if you configure it as explained above).
## Configuration module
Therefore, you need a password to ensure this operation.
......
package : swmb-kaspersky-uninstall
version : __VERSION__-__PATCH__
architecture : x64
section :
priority : optional
name : SWMB-Kaspersky-Uninstall
categories : system
maintainer : RESINFO <swmb-gt@listes.resinfo.org>
description : SWMB - Remove kaspersky Endpoint (standalone package)
depends :
conflicts :
maturity : PROD
locale :
target_os :
min_os_version :
max_os_version :
min_wapt_version :
sources : https://resinfo-gt.pages.in2p3.fr/swmb/resinfo-swmb/
installed_size :
impacted_process :
description_fr : SWMB - Supprime Kaspersky Endpoint (paquet indépendant)
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor : CNRS France, RESINFO / GT SWMB
keywords :
licence : MIT License
homepage : https://gitlab.in2p3.fr/resinfo-gt/swmb/resinfo-swmb/-/tree/master/dists/uninstall-kaspersky
package_uuid :
valid_from :
valid_until :
forced_install_on :
changelog :
signer :
signer_fingerprint:
signature :
signature_date :
signed_attributes :
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# ----------------------------------------------------------------------
#
# This file is part of project CNRS RESINFO SWMB
# Copyright (c) 2017-2020, Disassembler <disassembler@dasm.cz>
# Copyright (C) 2020-2022, CNRS, France
#
# License: MIT License (Same as project Win10-Initial-Setup-Script)
# Homepage: https://gitlab.in2p3.fr/resinfo-gt/swmb/resinfo-swmb
#
# Kasperky-Uninstall is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# MIT License for more details.
#
# Authors:
# 2022 - Gabriel Moreau (CNRS / LEGI)
#
# ----------------------------------------------------------------------
from setuphelpers import *
uninstallkey = []
def install():
print('executing remote command')
run(r'.\install.bat')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment