Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
resinfo-gt
swmb
resinfo-swmb
Commits
281e4e3b
Commit
281e4e3b
authored
May 04, 2022
by
Gabriel Moreau
Browse files
Add WAPT compatibility
parent
80352372
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
8 deletions
+86
-8
dists/uninstall-kaspersky/Makefile
dists/uninstall-kaspersky/Makefile
+9
-8
dists/uninstall-kaspersky/README.md
dists/uninstall-kaspersky/README.md
+5
-0
dists/uninstall-kaspersky/control
dists/uninstall-kaspersky/control
+43
-0
dists/uninstall-kaspersky/setup.py
dists/uninstall-kaspersky/setup.py
+29
-0
No files found.
dists/uninstall-kaspersky/Makefile
View file @
281e4e3b
...
...
@@ -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
$@
...
...
dists/uninstall-kaspersky/README.md
View file @
281e4e3b
...
...
@@ -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.
...
...
dists/uninstall-kaspersky/control
0 → 100644
View file @
281e4e3b
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
:
dists/uninstall-kaspersky/setup.py
0 → 100644
View file @
281e4e3b
#!/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'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment