From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. a9129668595a3e9e93ee8ea313fc63b33a455628 Date: Tue, 06 Apr 2021 10:19:11 +0000 Message-ID: <4FF3R42FXDz2xLY@people01.haj.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4056623596804275456==" List-Id: --===============4056623596804275456== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via a9129668595a3e9e93ee8ea313fc63b33a455628 (commit) via 4d622b7ebe9f3e049961afb3ad5b6f65a6ef47c7 (commit) via cc41f7a09b45aa41ef2bf94a099728d2e667d46f (commit) via 9c6a0ce12d01e8b2cab28d7061e18f905ae3b38c (commit) via 62206605d7c08d831a706caa4361d9b581e99e43 (commit) via 9064bc724251908b6edb3d0d0a07268dd10cc5f4 (commit) via 4b63a0322dad81b852583f603760006cd3fa408c (commit) via 910f1e8494a0c5bc323feb100a3666ed857fa0d3 (commit) via abd8ff79e6519e6f5bf4c3f7c1abeab1d00cce1a (commit) via b62f3673173c8d970ab683740822598599887655 (commit) via cdfbef5de73400be3648b82ecf88a6fe6370e962 (commit) via be2be8f0d72f13d19d6914d84007bdf7b166cac2 (commit) via 5ae118858924b3ca909f907e9448350cc7089cc0 (commit) via 33d18031fde998ee38d3be2acf1cbe47338f2c90 (commit) via daa75b2f8774096e1c84d5ba9f35395e9e36f9fd (commit) via 4e537e29e97f1129743f73815c4179c6a2b5035a (commit) via 54d4873de09162ea8798b2f43ddff0636add2ea4 (commit) via 5ce0e24ed4d416b316c09953eb5902615cba4e30 (commit) via 2131d81637c50afc3a8a955d550490b31d3c7e3e (commit) via 6fbfe9d7714e29216a7d2fa7cad07e4537d4c035 (commit) via 5abd6d3ea2a1fee8f148f4796e5de8a39734255d (commit) via 001b9d5379c5c3aeb42fcaf605c7bce3ab6a270b (commit) from 8ea513191b0820340cab6b36bb8f6e3efe4db47d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit a9129668595a3e9e93ee8ea313fc63b33a455628 Author: Michael Tremer Date: Tue Apr 6 10:15:00 2021 +0000 core156: Ship and reload sysctl.conf =20 Signed-off-by: Michael Tremer commit 4d622b7ebe9f3e049961afb3ad5b6f65a6ef47c7 Author: Michael Tremer Date: Tue Apr 6 10:13:38 2021 +0000 sysctl.conf: prevent autoloading of TTY line disciplines =20 This reverts commit a9d90b1b3f76a76b96a169e91cf3902e4cc0835b. =20 Signed-off-by: Michael Tremer commit cc41f7a09b45aa41ef2bf94a099728d2e667d46f Author: Michael Tremer Date: Tue Apr 6 10:06:46 2021 +0000 core156: Ship even more RRD graph stuff =20 Signed-off-by: Michael Tremer commit 9c6a0ce12d01e8b2cab28d7061e18f905ae3b38c Author: Leo-Andres Hofmann Date: Thu Apr 1 15:35:16 2021 +0200 rrdimage: Switch graphs.pl to the new graph scripts =20 "makegraphbox" is modified to remove the old iframe method and output a modern div container instead. Graph errors are now returned, to be displayed by getrrdimage.cgi. =20 entropy.cgi and netovpnsrv.cgi are modified to ensure compatibility. =20 Add cache control HTTP header to image output. =20 Signed-off-by: Leo-Andres Hofmann Signed-off-by: Michael Tremer commit 62206605d7c08d831a706caa4361d9b581e99e43 Author: Michael Tremer Date: Tue Apr 6 10:04:51 2021 +0000 core156: Ship more RRD graph stuff =20 Signed-off-by: Michael Tremer commit 9064bc724251908b6edb3d0d0a07268dd10cc5f4 Author: Leo-Andres Hofmann Date: Thu Apr 1 15:35:15 2021 +0200 rrdimage: Add CSS and Javascript to ipfire theme =20 This patch adds styling for the new graph time range buttons and loads the Javascript in the HTML head. =20 Signed-off-by: Leo-Andres Hofmann Signed-off-by: Michael Tremer commit 4b63a0322dad81b852583f603760006cd3fa408c Author: Michael Tremer Date: Tue Apr 6 10:03:29 2021 +0000 core156: Ship RRD graph stuff =20 Signed-off-by: Michael Tremer commit 910f1e8494a0c5bc323feb100a3666ed857fa0d3 Author: Leo-Andres Hofmann Date: Thu Apr 1 15:35:14 2021 +0200 rrdimage: Add scripts for new graph display method =20 This patch adds two scripts which will later be used to display graphs: =20 -> getrrdimage.cgi: Generates PNG images for graphs. Until now, each CGI with embedded graphs had to be able to output images. These functions are now gathered in this new script. The additional parameter handling can be removed and the CGIs can be simplified. This makes it easier to use and output the graphs. =20 -> rrdimage.js: Interactive Javascript functions This allows the user to select time ranges without reloading the page. In addition, the graphs are now periodically updated, allowing users to live monitor the data. =20 Signed-off-by: Leo-Andres Hofmann Signed-off-by: Michael Tremer commit abd8ff79e6519e6f5bf4c3f7c1abeab1d00cce1a Author: Michael Tremer Date: Tue Apr 6 09:58:50 2021 +0000 core156: Ship nettle =20 Signed-off-by: Michael Tremer commit b62f3673173c8d970ab683740822598599887655 Author: Michael Tremer Date: Tue Apr 6 09:57:28 2021 +0000 core156: Ship ids.dat =20 Signed-off-by: Michael Tremer commit cdfbef5de73400be3648b82ecf88a6fe6370e962 Author: Stefan Schantl Date: Mon Apr 5 15:42:48 2021 +0200 logs.cgi/ids.dat: Change url to sid documentation site. =20 Fixes #12596. =20 Signed-off-by: Stefan Schantl Reviewed-by: Peter M=C3=BCller Signed-off-by: Michael Tremer commit be2be8f0d72f13d19d6914d84007bdf7b166cac2 Author: Michael Tremer Date: Tue Apr 6 09:56:59 2021 +0000 core156: Ship showrequestfromcountry.dat =20 Signed-off-by: Michael Tremer commit 5ae118858924b3ca909f907e9448350cc7089cc0 Author: Stefan Schantl Date: Mon Apr 5 15:36:12 2021 +0200 logs.cgi/showrequestfromcountry.dat: Proper lookup country code. =20 Seems to be a code fragment has been left while switching to libloc. Now call the right function from location-functions.pl. =20 Fixes #12599. =20 Signed-off-by: Stefan Schantl Reviewed-by: Peter M=C3=BCller Signed-off-by: Michael Tremer commit 33d18031fde998ee38d3be2acf1cbe47338f2c90 Author: Matthias Fischer Date: Mon Apr 5 14:28:00 2021 +0200 Fix typo in 'de.pl' =20 Triggered by: https://community.ipfire.org/t/where-can-i-place-a-ticket-with-an-error-i= n-the-german-wui/5104 =20 Signed-off-by: Matthias Fischer Reviewed-by: Peter M=C3=BCller Signed-off-by: Michael Tremer commit daa75b2f8774096e1c84d5ba9f35395e9e36f9fd Author: Matthias Fischer Date: Sun Apr 4 10:30:47 2021 +0200 nettle: Update to 3.7.2 =20 For details see: https://lists.gnu.org/archive/html/info-gnu/2021-03/msg00005.html =20 "This is a bugfix release, fixing a bug in ECDSA signature verification that could lead to a denial of service attack (via an assertion failure) or possibly incorrect results. It also fixes a few related problems where scalars are required to be canonically reduced modulo the ECC group order, but in fact may be slightly larger. =20 Upgrading to the new version is strongly recommended." =20 Signed-off-by: Matthias Fischer Signed-off-by: Michael Tremer commit 4e537e29e97f1129743f73815c4179c6a2b5035a Author: Matthias Fischer Date: Sat Apr 3 18:27:13 2021 +0200 tcpdump: Update to 4.99.0 =20 For details see: https://www.tcpdump.org/tcpdump-changes.txt =20 Signed-off-by: Matthias Fischer Signed-off-by: Michael Tremer commit 54d4873de09162ea8798b2f43ddff0636add2ea4 Author: Michael Tremer Date: Tue Apr 6 09:55:21 2021 +0000 core156: Ship libpcap =20 Signed-off-by: Michael Tremer commit 5ce0e24ed4d416b316c09953eb5902615cba4e30 Author: Matthias Fischer Date: Sat Apr 3 18:25:50 2021 +0200 libpcap: Update to 1.10.0 =20 For details see: https://www.tcpdump.org/libpcap-changes.txt =20 Signed-off-by: Matthias Fischer Signed-off-by: Michael Tremer commit 2131d81637c50afc3a8a955d550490b31d3c7e3e Author: Michael Tremer Date: Tue Apr 6 09:54:29 2021 +0000 core156: Ship libcap =20 Signed-off-by: Michael Tremer commit 6fbfe9d7714e29216a7d2fa7cad07e4537d4c035 Author: Matthias Fischer Date: Sat Apr 3 18:23:24 2021 +0200 libcap: Update to 2.49 =20 For details see: https://git.kernel.org/pub/scm/libs/libcap/libcap.git/ =20 Signed-off-by: Matthias Fischer Signed-off-by: Michael Tremer commit 5abd6d3ea2a1fee8f148f4796e5de8a39734255d Author: Matthias Fischer Date: Sat Apr 3 18:21:41 2021 +0200 poppler 0.89.0: Update for lfs =20 'cmake 3.20' complained about an "unknown option". =20 Signed-off-by: Matthias Fischer Signed-off-by: Michael Tremer commit 001b9d5379c5c3aeb42fcaf605c7bce3ab6a270b Author: Matthias Fischer Date: Sat Apr 3 18:18:38 2021 +0200 cmake: Update to 3.20 =20 For details see: https://cmake.org/cmake/help/v3.20/release/3.20.html =20 Signed-off-by: Matthias Fischer Signed-off-by: Michael Tremer ----------------------------------------------------------------------- Summary of changes: config/cfgroot/graphs.pl | 96 ++++---- config/etc/sysctl.conf | 4 + config/rootfiles/common/libcap | 42 +++- config/rootfiles/common/libpcap | 3 +- config/rootfiles/common/nettle | 4 +- config/rootfiles/common/web-user-interface | 2 + config/rootfiles/core/156/filelists/files | 9 + .../{oldcore/104 =3D> core/156}/filelists/libcap | 0 .../{oldcore/109 =3D> core/156}/filelists/libpcap | 0 .../{oldcore/101 =3D> core/156}/filelists/nettle | 0 config/rootfiles/core/156/update.sh | 3 + html/cgi-bin/entropy.cgi | 2 +- html/cgi-bin/getrrdimage.cgi | 245 +++++++++++++++++++= ++ html/cgi-bin/logs.cgi/ids.dat | 2 +- html/cgi-bin/logs.cgi/showrequestfromcountry.dat | 2 +- html/cgi-bin/netovpnsrv.cgi | 2 +- html/html/include/rrdimage.js | 122 ++++++++++ html/html/themes/ipfire/include/css/style.css | 37 +++- html/html/themes/ipfire/include/functions.pl | 1 + langs/de/cgi-bin/de.pl | 2 +- lfs/cmake | 6 +- lfs/libcap | 6 +- lfs/libpcap | 6 +- lfs/nettle | 4 +- lfs/poppler | 2 +- lfs/tcpdump | 9 +- 26 files changed, 542 insertions(+), 69 deletions(-) copy config/rootfiles/{oldcore/104 =3D> core/156}/filelists/libcap (100%) copy config/rootfiles/{oldcore/109 =3D> core/156}/filelists/libpcap (100%) copy config/rootfiles/{oldcore/101 =3D> core/156}/filelists/nettle (100%) create mode 100644 html/cgi-bin/getrrdimage.cgi create mode 100644 html/html/include/rrdimage.js Difference in files: diff --git a/config/cfgroot/graphs.pl b/config/cfgroot/graphs.pl index e4c3613fb..cf4a30de3 100644 --- a/config/cfgroot/graphs.pl +++ b/config/cfgroot/graphs.pl @@ -24,11 +24,18 @@ package Graphs; =20 use strict; use RRDs; +use experimental 'smartmatch'; =20 require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; require "${General::swroot}/header.pl"; =20 +# Graph image size in pixel +our %image_size =3D ('width' =3D> 910, 'height' =3D> 300); + +# List of all available time ranges +our @time_ranges =3D ("hour", "day", "week", "month", "year"); + my $ERROR; =20 my @GRAPH_ARGS =3D ( @@ -48,8 +55,8 @@ my @GRAPH_ARGS =3D ( "-W www.ipfire.org", =20 # Default size - "-w 910", - "-h 300", + "-w $image_size{'width'}", + "-h $image_size{'height'}", =20 # Use alternative grid "--alt-y-grid", @@ -93,26 +100,35 @@ foreach (@sensorsdir){ &General::readhash("${General::swroot}/sensors/settings", \%sensorsettings); =20 # Generate a nice box for selection of time range in graphs -# this will generate a nice iframe for the cgi every klick for -# the graph will be handled inside the iframe +# this will generate a nice div box for the cgi every klick for +# the graph will be handled by javascript # 0 is the cgi refering to # 1 is the graph name -# 2 is the time range for the graph -# 3 if given is the height of the iframe default if nothing is given +# 2 is the time range for the graph (optional) =20 sub makegraphbox { - print "
"; - print "".$L= ang::tr{'hour'}.""; - print " - "; - print "".$La= ng::tr{'day'}.""; - print " - "; - print "".$L= ang::tr{'week'}.""; - print " - "; - print "".$= Lang::tr{'month'}.""; - print " - "; - print "".$L= ang::tr{'year'}.""; - print "
"; - print "