Commit Graph

9554 Commits

Author SHA1 Message Date
Michael Tremer
5cee82ee5c Config: Fix the path for the stripper
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:21 +00:00
Michael Tremer
9dcb759f19 flash-images: Fix argument order for copying files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:21 +00:00
Michael Tremer
75d3cb0626 Config: Build packages with the new macros
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
79f9af395c core-updates: Don't line-break make macros
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
bde9073d0c Config: Show the transformed paths when creating tarballs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
a8892acefe Config: Make the ARCHIVE_* variables generally available
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
3e41d45e7b Config: Remove ./ from filenames in archives
I am not sure if this would actually create any problems, but it looks
ugly and is inconsistent with the older code.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
18a4a1f27b Config: Don't quote arguments in Makefiles
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
c166e83f1d Config: Reorganise the arguments for COPY_FILES
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
e410a35a84 intel-microcode: Hardlink all files to save space
This will save about 3 MiB.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
708f26352a core-updates: Refactor how we package the archive
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
7908cca79b core-updates: Remove importing the meta file
We don't use these any more and even if we did, we cannot import any
variables into a make script just like that.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
162bb72ad9 flash-images: Fix typo
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
dbfa2c38b3 gcc: Build libstdc++ in parallel
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
7d1e1a5b91 gcc: Fix limits.h in first toolchain pass
This is necessary so that the compiler is using the correct glibc
headers.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
c6043558fb Config: Unexport lots of environment variables
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
c08841bb49 make.sh: Export BUILD_DIR and LOG_DIR
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
a59e8abb1e cdrom: Fix typo
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
61cb600a13 flash-images: Create the base image as a sparse file
This will be much faster as it creates less IO.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
4830e79f3c make.sh: Rewrite how we are looking for rootfiles
No function changes, just performance.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
3e9cb47e0e flash-images: Don't mess with depmod
This file could not be created anyways as the directory did not exist.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
20280ed337 images: Ensure that all mount points are created
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
d4ad987a5d make.sh: Drop stripping
This will massively improve the build process because we will only strip
the files that we need. The build system will remain as is.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
8f1c5b617d make.sh: Correctly pass ZSTD_OPT
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
de44376208 flash-images: Collect files again instead of relying on the tarball
This has always been an ugly hack.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
1a9127ca54 flash-images: There is no need to for the mount check any more
We always start with a fresh mount namespace, so there cannot be
anything left.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
f8aa7ceda3 Config: Create common functions to create archives
The compression code is very messy because it has changed so many times.
This cleans this up and creates common functions that can be used for
the ISO images as well as packages.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
abfebe255c cdrom: Fix syntax error
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
15b38c6387 Config: Remove debugging code
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
20e4920621 make.sh: Refactor building packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
e9fcb8c36d cdrom+flash-images: Write images to the images directory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
a4578c6928 flash-images: No need to sleep for automount any more
I am not sure whether automount is being used at all any more, but since
we are now running in our own namespace, it certainly has no business
here.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:19 +00:00
Michael Tremer
6b4cb7d793 make.sh: Don't generate any documentation in the source directory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:19 +00:00
Michael Tremer
03c51a4e67 Config: Drop toolchain URL
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:19 +00:00
Michael Tremer
9773290176 make.sh: Refactor uploading sources
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:18 +00:00
Michael Tremer
1801c2419d perl-Device-SerialPort: Use /dev/null as test port
The build failed with the new minimal /dev it is looking for some TTY
devices which are no longer present. This patch fixes the build.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:17 +00:00
Michael Tremer
bf8abf549e samba: Fix rootfiles
The CGI script, the misc-progs helper and the menu entry were removed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-10 14:28:48 +00:00
Matthias Fischer
a96514a265 apache: Update to 2.4.61
For details see:
https://dlcdn.apache.org/httpd/CHANGES_2.4.61

"Changes with Apache 2.4.61

  *) SECURITY: CVE-2024-39884: Apache HTTP Server: source code
     disclosure with handlers configured via AddType (cve.mitre.org)
     A regression in the core of Apache HTTP Server 2.4.60 ignores
     some use of the legacy content-type based configuration of
     handlers.   "AddType" and similar configuration, under some
     circumstances where files are requested indirectly, result in
     source code disclosure of local content. For example, PHP
     scripts may be served instead of interpreted.
     Users are recommended to upgrade to version 2.4.61, which fixes
     this issue."

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-08 15:31:17 +00:00
Adolf Belka
b5befbc045 samba: Update to version 4.20.2
- Update from version 4.20.1 to 4.20.2
- Update of rootfile for both x86_64 and aarch64
- After doing a grep into the config directories I realised that the xxxMACHINExxx phrase
   is only added into rootfiles in the main common or package directories and not in the
   x86_64 and aarch64
- In the past I have submitted the samba rootfile with x86_64 replaced by xxxMACHINExxx.
   It seems to have worked, so the replacement probably occurs even in the architecture
   specific directories but it doesn't need to be used there as the directory is clearly
   only for that one architecture.
- Changelog
    4.20.2
	   * BUG 15662: vfs_widelinks with DFS shares breaks case insensitivity.
	   * BUG 13213: Samba build is not reproducible.
	   * BUG 15569: ldb qsort might r/w out of bounds with an intransitive compare
	     function.
	   * BUG 15625: Many qsort() comparison functions are non-transitive, which can
	     lead to out-of-bounds access in some circumstances.
	   * BUG 15638: Need to change gitlab-ci.yml tags in all branches to avoid CI
	     bill.
	   * BUG 15654: We have added new options --vendor-name and --vendor-patch-
	     revision arguments to ./configure to allow distributions and packagers to
	     put their name in the Samba version string so that when debugging Samba the
	     source of the binary is obvious.
	   * BUG 15665: CTDB RADOS mutex helper misses namespace support.
	   * BUG 13019: Dynamic DNS updates with the internal DNS are not working.
	   * BUG 14981: netr_LogonSamLogonEx returns NR_STATUS_ACCESS_DENIED with
	     SysvolReady=0.
	   * BUG 15412: Anonymous smb3 signing/encryption should be allowed (similar to
	     Windows Server 2022).
	   * BUG 15573: Panic in dreplsrv_op_pull_source_apply_changes_trigger.
	   * BUG 15620: s4:nbt_server: does not provide unexpected handling, so winbindd
	     can't use nmb requests instead cldap.
	   * BUG 15642: winbindd, net ads join and other things don't work on an ipv6
	     only host.
	   * BUG 15659: Segmentation fault when deleting files in vfs_recycle.
	   * BUG 15664: Panic in vfs_offload_token_db_fetch_fsp().
	   * BUG 15666: "client use kerberos" and --use-kerberos is ignored for the
	     machine account.
	   * BUG 15435: Regression DFS not working with widelinks = true.
	   * BUG 15633: samba-gpupdate - Invalid NtVer in netlogon_samlogon_response.
	   * BUG 15653: idmap_ad creates an incorrect local krb5.conf in case of trusted
	     domain lookups.
	   * BUG 15660: The images don't build after the git security release and CentOS
	     8 Stream is EOL.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-08 15:31:13 +00:00
Michael Tremer
3085c95994 vectorscan: Build as a fat library
The build system defaults to building the library for the host system
and therefore uses instructions that might not be available on the
target system.

This patch changes that we will build the library so that it will choose
the most optimised functions at runtime.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-04 15:39:10 +00:00
Matthias Fischer
2c23602bc4 apache: Update to 2.4.60
Fixed:
CVE-2024-39573, CVE-2024-38477, CVE-2024-38476, CVE-2024-38475, CVE-2024-38474,
CVE-2024-38473, CVE-2024-38472, CVE-2024-36387.

For details see:
https://dlcdn.apache.org/httpd/CHANGES_2.4.60

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:26:17 +00:00
Adolf Belka
0a574ab660 openssh: Update to version 9.8p1
- Update from version 9.7p1 to 9.8p1
- Update of rootfile
- Changelog
    9.8p1
	-There is a fix for CVE-2024-6387
	-The number of changes is too large to show all here. As well as the CVE fix and
	 another security related fix there are a log of bug fixes as well. The details can
         seen at https://www.openssh.com/txt/release-9.8

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:19:48 +00:00
Matthias Fischer
4d87fba16c suricata: Update to 7.0.6
Excerpt from changelog:
"7.0.6 -- 2024-06-26

Security #7042: defrag: id reuse can lead to invalid reassembly (7.0.x backport)(CVE 2024-37151)
Security #7105: http2: oom from duplicate headers (7.0.x backport)
Security #7033: http/range: segv when http.memcap is reached (7.0.x backport)
Security #6988: modbus: txs without responses are never freed (7.0.x backport)
Bug #7107: packet: app-layer-events incorrectly used on recycled packets (7.0.x backport)
Bug #7064: util/radix-tree: Possible dereference of nullptr in case of unsuccess allocation of memory for node (7.0.x backport)
Bug #7063: smtp/mime: data command rejected by pipelining server does not reset data mode (7.0.x backport)
Bug #7060: smtp: split name logged as 2 names (7.0.x backport)
Bug #7050: af-packet: failure to start up on many threads plus high load (7.0.x backport)
Bug #7043: Crasher in HTTP chunked / StreamingBuffer (7.0.x backport)
Bug #7038: pcap/log: MacOS rotates file well before limit is reached (7.0.x backport)
Bug #7035: time: in offline mode, time can stay behind at pcap start (7.0.x backport)
Bug #7023: unix-socket: iface-bypassed-stat crash (7.0.x backport)
Bug #7021: unix-socket: hostbit commands don't properly release host (7.0.x backport)
Bug #7015: rust: build with rust 1.78 with slice::from_raw_parts now requiring the pointer to be non-null (7.0.x backport)
Bug #6990: tls.random buffers don't work as expected (7.0.x backport)
Bug #6986: iprep: rule with '=,0' can't match (7.0.x backport)
Bug #6975: detect: log relevant frames app-layer metdata (7.0.x backport)
Bug #6950: decode/ppp: decoder.event.ppp.wrong_type on valid packet (7.0.x backport)
Bug #6897: detect/port: upper boundary ports are not correctly handled (7.0.x backport)
Bug #6895: detect/port: port grouping does not happen correctly if gap between a single and range port (7.0.x backport)
Bug #6862: Lightweight rules profiling: crash when profiling ends (7.0.x backport)
Bug #6848: alerts: wrongly using tx id 0 when there is no tx (7.0.x backport)
Bug #6845: coverity: warning in port grouping code (7.0.x backport)
Bug #6844: detect/port: port ranges are incorrect when a port is single as well as a part of range (7.0.x backport)
Bug #6690: Ethernet src should match src ip (7.0.x backport)
Bug #6520: detect-engine/port: recursive DetectPortInsert calls are expensive (7.0.x backport)
Optimization #6830: detect/port: port grouping is quite slow in worst cases (7.0.x backport)
Optimization #6829: detect/port: PortGroupWhitelist fn takes a lot of processing time (7.0.x backport)
Feature #7010: JA4 support for TLS and QUIC (7.0.x backport)
Feature #6557: Capability to have rules profiling on pcap run (7.0.x backport)
Documentation #6910: userguide: document how to verify tar.gz signature (7.0.x backport)
Documentation #6687: docs: port userguide build instruction changes from master-6.0.x (7.0.x backport)
Documentation #6601: docs: update eBPF installation instructions (7.0.x backport)"

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:18:57 +00:00
Matthias Fischer
7dbff1f446 nano: Update to 8.0
For details see:
https://www.nano-editor.org/news.php

"2024 May 1 - GNU nano 8.0 "Grus grus"

    By default ^F is bound to starting a forward search, and ^B to
    starting a backward search, while M-F and M-B repeat the search
    in the corresponding direction. (See the documentation if you
    want the old bindings back.)
    Command-line option --modernbindings (-/) makes ^Q quit, ^X cut,
    ^C copy, ^V paste, ^Z undo, ^Y redo, ^O open a file, ^W write a file,
    ^R replace, ^G find again, ^D find again backwards, ^A set the mark,
    ^T jump to a line, ^P show the position, and ^E execute.
    Above modern bindings are activated also when the name of
    nano's executable (or a symlink to it) starts with the letter "e".
    To open a file at a certain line number, one can now use also
    nano filename:number, besides nano +number filename.
    <Alt+Home> and <Alt+End> put the cursor on the first and last
    row in the viewport, while retaining the horizontal position.
    When the three digits in an #RGB color code are all the same,
    the code is mapped to the xterm grey scale, giving access to
    fourteen levels of grey instead of just four.
    For easier access, M-" is bound to placing/removing an anchor,
    and M-' to jumping to the next anchor.
    Whenever an error occurs, the keystroke buffer is cleared, thus
    stopping the execution of a macro or a string bind.
    The mousewheel scrolls the viewport instead of moving the cursor."

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:18:51 +00:00
Matthias Fischer
6c269a854b bind: Update to 9.16.50
For details see:
https://downloads.isc.org/isc/bind9/9.16.50/doc/arm/html/notes.html#notes-for-bind-9-16-50

"New Features

Added RESOLVER.ARPA to the built in empty zones."

Important:
"This is the last maintenance release of BIND 9.16. This version is now end of life. Please upgrade to
BIND 9.18, the current stable version."

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:18:29 +00:00
Adolf Belka
5175a5f19e apcupsd: Update email scripts to work with dma
- The standard email scripts supllied with apcupsd are coded on the basis that sendmail
   is being used. The format of the email information in those scripts does not work with
   the dma mail system implemented in IPFire.
- The scripts provided in the config/apcupsd directory have been updated to work with
   dma. The scripts have been confirmed to work with my production system that is using
   a UPS.
- This patch will replace the standard apcupsd scripts with the ones tailored for IPFire.
- If any existing users have modified their scripts to already work with dma then their
   versions will be saved in their backup.
- The apcupsd-3.14.14-2.ipfire package created in the build with the above changes has
   been installed on a vm system and confirmed to provide the IPFire tailored scripts.
- The lfs change is the addition of the copying of the scripts to the /etc/apcupsd
   directory.
- No change to the rootfile as the scripts names are the same.
- The only thing a user will need to do is to ensure the IPFire email system is enabled,
   configure and confirmed working. Then valid FROM and TO email addresses need to be
   added to each script.
- Once this patch submission is accepted then I will do an update to the apcupsd IPFire
   documentation page to describe these scripts and how to update the email addresses.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:17:20 +00:00
Adolf Belka
5b24b5559a speexdsp: New package required for build of tshark-4.2.5
- tshark in the past had its own version of speexdsp used only for some "arbitrary
   resampling code" used for the build of tshark.
- speexdsp has been removed from tshark so it is now a build requirement.
- It is only used for the build of tshark so the rootfile has all entries commented out.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:17:00 +00:00
Adolf Belka
da19d30078 asciidoctor: New package required for build of tshark-4.2.5
- Only used for build of tshark so rootfile has all entries commented out.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:17:00 +00:00
Adolf Belka
d6cb864e1c ruby: New package required for build of asciidoctor required for tshark-4.2.5
- Only used for build of asciidoctor so rootfile has all entries commented out.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:17:00 +00:00
Adolf Belka
374ba6dafc tshark: Update to version 4.2.5
- Update from version 4.0.8 to 4.2.5
- Update of rootfile
- Version 4.2.5 requires asciidoctor to be built for tshark to build. Despite lots of
   investigation and testing out various commands, tshark will not build if asciidoctor is
   not present, even if the docs are not going to be used. It is only required for the
   build
- To build asciidoctor ruby has to be installed. It is only required for the build of
   asciidoctor
- tshark has previously had its own version of speexdsp built in. It is only used to
   provide some "arbitrary resampling code" during the build and does not end up in the
   running tshark system. Version 4.2.5 has removed the internal speexdsp code but it
   is still a required dependency for building, so speexdsp also need to be installed but
   only for the build stage.
- The associated patches with this one provide the build installation of ruby, asciidoctor
   and speexdsp. With these installed tshark was able to be built.
- version 4.0.8 and 4.2.5 of tshark were tested out on a vm system with the command
   "tshark -c 100 > tshark" and this wrote 100 packets from the vm red0 interface to a
   text file. Both the old and new versions provided the same sort of result. To a first
   level of testing this shows that the 4.2.5 version is functioning as the previous
   version was.
- This version had an sobump so find-dependencies was run. All files linked to the three
   libraries in tshark are all also in tshark. No other package is linked to.
- Changelog
   There are 13 releases between 4.0.8 and 4.2.5 so the changelist is too large to
    include here. Details can be found in the release notes for each version at
    https://www.wireshark.org/docs/relnotes/
   21 CVE vulnerabilities have been fixed that were identified in 7 of the 13 versions.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:17:00 +00:00