Commit 80d4ef6e authored by Denis Bonnenfant's avatar Denis Bonnenfant
Browse files

configuration complete de wine

parent 20dad7b3
File mode changed from 100644 to 100755
sambaedu-wpkg (4.8.7) UNRELEASED; urgency=medium
sambaedu-wpkg (4.8.11) UNRELEASED; urgency=medium
[ Denis Bonnenfant ]
* Paquets stables
......@@ -11,7 +11,7 @@ sambaedu-wpkg (4.8.7) UNRELEASED; urgency=medium
* Nouvelle version stable avec support DC secondaire
* Nouvelle version stable avec support DC secondaire
-- denis <denis@bureau> Thu, 10 Feb 2022 14:16:09 +0100
-- denis <denis@bureau> Sat, 05 Mar 2022 19:22:41 +0100
sambaedu-wpkg (4.0.0~beta69) UNRELEASED; urgency=medium
......
/usr/share/sambaedu/scripts/
/usr/share/sambaedu/applications/
/var/sambaedu/unattended/install/packages/
/var/sambaedu/unattended/install/wpkg
/var/sambaedu/unattended/install/wpkg/tmp
......
sambaedu-wpkg_4.8.7_all.deb net extra
sambaedu-wpkg_4.8.7_amd64.buildinfo net extra
sambaedu-wpkg_4.8.11_all.deb net extra
sambaedu-wpkg_4.8.11_amd64.buildinfo net extra
!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
echo "Installation des logiciels via wine"
if [ -x "/usr/share/sambaedu/scripts/wine_repos.sh" ]; then
set_config se4install_name ###_SE4INSTALL_NAME_###
/usr/share/sambaedu/scripts/wine_repos.sh || true
fi
#
......@@ -10,18 +10,20 @@ include ("wpkg_lib.php");
include ("wpkg_libsql.php");
include ("ldap.inc.php");
$nom_poste = $_GET["poste"] ?? $_POST["poste"] ?? "";
if (empty($nom_poste)) {
$id = $_GET["id"] ?? $_POST["id"] ?? "";
if (empty($id)) {
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');
$winget = $_POST["winget"] ?? $_GET["winget"] ?? "";
$local_packages = json_decode($winget, true);
if ($info = apcu_fetch("apps." . $id)) {
$liste_applications = $info['liste_applications'];
$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))) {
......@@ -35,6 +37,7 @@ foreach ($packages as $package) {
}
}
}
}
echo header('Content-type: text/json');
echo implode(" ", $liste);
......
Supports Markdown
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