Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SambaEdu
sambaedu-wpkg
Commits
59be959f
Commit
59be959f
authored
Oct 10, 2021
by
Denis Bonnenfant
Browse files
reoganisation des dépendances
parent
58b453a5
Changes
4
Hide whitespace changes
Inline
Side-by-side
build/build.sh
View file @
59be959f
#!/bin/bash
version
=
"4.
3
."
version
=
"4.
4
."
SSH
=
"ssh -p 2222 root@deb.sambaedu.org"
...
...
sources/debian/changelog
View file @
59be959f
sambaedu-wpkg (4.
3
.1
7
) UNRELEASED; urgency=medium
sambaedu-wpkg (4.
6
.1) UNRELEASED; urgency=medium
[ Denis Bonnenfant ]
* Paquets stables
* Nouvelle version stable
* Nouvelle version stable
* Nouvelle version stable
* Nouvelle version stable avec support Bullseye
--
d
enis
<denis@bureau> Thu, 01 Apr 2021 21:31:2
6 +0200
--
D
enis
Bonnenfant <denis.bonnenfant@sambaedu.org> Fri, 03 Sep 2021 12:34:3
6 +0200
sambaedu-wpkg (4.0.0~beta69) UNRELEASED; urgency=medium
...
...
sources/debian/files
View file @
59be959f
sambaedu-wpkg_4.
3
.1
7
_all.deb net extra
sambaedu-wpkg_4.
3
.1
7
_amd64.buildinfo net extra
sambaedu-wpkg_4.
6
.1_all.deb net extra
sambaedu-wpkg_4.
6
.1_amd64.buildinfo net extra
sources/var/www/sambaedu/wpkg/winget_out.php
0 → 100644
View file @
59be959f
<?php
/*
* génère la liste des paquets winget à installer sur le poste.
* le xml de l'application doit contenir le resultat de winget export pour l'application
* destiné à winget import
* aucune vérification n'est faite, on considère que winget sait faire...
*/
include
"config.inc.php"
;
include
(
"wpkg_lib.php"
);
include
(
"wpkg_libsql.php"
);
include
(
"ldap.inc.php"
);
$nom_poste
=
$_GET
[
"poste"
]
??
$_POST
[
"poste"
]
??
""
;
if
(
empty
(
$nom_poste
))
{
exit
();
}
$liste_applications
=
array_map
(
'strtolower'
,
array_column
(
array_column
(
info_poste_applications
(
$config
,
$nom_poste
),
"info_app"
),
"id_nom_app"
));
$xml
=
new
DOMDocument
();
$xml
->
formatOutput
=
true
;
$xml
->
preserveWhiteSpace
=
false
;
$xml
->
load
(
$url_packages
);
$packages
=
$xml
->
documentElement
->
getElementsByTagName
(
'package'
);
$liste
=
[];
foreach
(
$packages
as
$package
)
{
if
(
is_int
(
array_search
(
strtolower
(
$package
->
getAttribute
(
'id'
)),
$liste_applications
)))
{
$variables
=
$package
->
getElementsByTagName
(
"windows"
);
foreach
(
$variables
as
$variable
)
{
if
(
$variable
->
getAttribute
(
'type'
)
==
"winget"
)
{
$liste
[]
=
$variable
->
getAttribute
(
'package'
);
}
}
}
}
echo
header
(
'Content-type: text/json'
);
echo
implode
(
" "
,
$liste
);
?>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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