Start Core Update 180

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2023-08-17 14:04:11 +00:00
parent c4710adcbc
commit ee29f5647b
75 changed files with 108 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
boot/config.txt
boot/grub/grub.cfg
boot/grub/grubenv
boot/uEnv.txt
etc/alternatives
etc/collectd.custom
etc/default/grub
etc/ipsec.conf
etc/ipsec.secrets
etc/ipsec.user.conf
etc/ipsec.user.secrets
etc/localtime
etc/shadow
etc/snort/snort.conf
etc/ssl/openssl.cnf
etc/sudoers
etc/sysconfig/firewall.local
etc/sysconfig/rc.local
etc/udev/rules.d/30-persistent-network.rules
srv/web/ipfire/html/proxy.pac
var/ipfire/dma
var/ipfire/time
var/ipfire/firewall/locationblock
var/ipfire/fwhosts/customlocationgrp
var/ipfire/ovpn
var/ipfire/urlfilter/blacklist
var/ipfire/urlfilter/settings
var/lib/alternatives
var/lib/location/database.db
var/lib/location/ipset
var/log/cache
var/log/dhcpcd.log
var/log/messages
var/state/dhcp/dhcpd.leases
var/updatecache

View File

@@ -0,0 +1 @@
../../../../common/aarch64/util-linux

View File

@@ -0,0 +1 @@
../../../common/apache2

View File

@@ -0,0 +1 @@
../../../common/bash

View File

@@ -0,0 +1 @@
../../../common/bind

View File

@@ -0,0 +1 @@
../../../common/bzip2

View File

@@ -0,0 +1 @@
../../../common/ca-certificates

View File

@@ -0,0 +1,5 @@
etc/system-release
etc/issue
etc/os-release
srv/web/ipfire/cgi-bin/credits.cgi
var/ipfire/langs

View File

@@ -0,0 +1 @@
../../../common/coreutils

View File

@@ -0,0 +1 @@
../../../common/curl

View File

@@ -0,0 +1,6 @@
etc/rc.d/init.d/networking/red
srv/web/ipfire/cgi-bin/extrahd.cgi
srv/web/ipfire/cgi-bin/fwhosts.cgi
srv/web/ipfire/cgi-bin/ovpnmain.cgi
srv/web/ipfire/cgi-bin/vulnerabilities.cgi
var/ipfire/extrahd/bin/extrahd.pl

View File

@@ -0,0 +1 @@
../../../common/fuse

View File

@@ -0,0 +1 @@
../../../common/gettext

View File

@@ -0,0 +1 @@
../../../common/glib

View File

@@ -0,0 +1 @@
../../../common/gmp

View File

@@ -0,0 +1 @@
../../../common/gnutls

View File

@@ -0,0 +1 @@
../../../common/gzip

View File

@@ -0,0 +1 @@
../../../common/harfbuzz

View File

@@ -0,0 +1 @@
../../../common/iproute2

View File

@@ -0,0 +1 @@
../../../common/json-c

View File

@@ -0,0 +1 @@
../../../common/libarchive

View File

@@ -0,0 +1 @@
../../../common/libhtp

View File

@@ -0,0 +1 @@
../../../common/libjpeg

View File

@@ -0,0 +1 @@
../../../common/libloc

View File

@@ -0,0 +1 @@
../../../common/liboping

View File

@@ -0,0 +1 @@
../../../common/libpcap

View File

@@ -0,0 +1 @@
../../../common/libpng

View File

@@ -0,0 +1 @@
../../../common/libsodium

View File

@@ -0,0 +1 @@
../../../common/libtasn1

View File

@@ -0,0 +1 @@
../../../common/libtiff

View File

@@ -0,0 +1 @@
../../../common/libusb

View File

@@ -0,0 +1 @@
../../../common/libxcrypt

View File

@@ -0,0 +1 @@
../../../common/libxml2

View File

@@ -0,0 +1 @@
../../../common/libxslt

View File

@@ -0,0 +1 @@
../../../common/lvm2

View File

@@ -0,0 +1 @@
../../../common/lz4

View File

@@ -0,0 +1 @@
../../../common/lzip

View File

@@ -0,0 +1 @@
../../../common/lzo

View File

@@ -0,0 +1 @@
../../../common/mpfr

View File

@@ -0,0 +1 @@
../../../common/nettle

View File

@@ -0,0 +1 @@
../../../common/ntfs-3g

View File

@@ -0,0 +1 @@
../../../common/oath-toolkit

View File

@@ -0,0 +1 @@
../../../common/openldap

View File

@@ -0,0 +1 @@
../../../common/openssl

View File

@@ -0,0 +1 @@
../../../common/openvpn

View File

@@ -0,0 +1 @@
../../../common/pcre

View File

@@ -0,0 +1 @@
../../../common/pcre2

View File

@@ -0,0 +1 @@
../../../common/pixman

View File

@@ -0,0 +1 @@
../../../common/poppler

View File

@@ -0,0 +1 @@
../../../common/popt

View File

@@ -0,0 +1 @@
../../../common/ppp

View File

@@ -0,0 +1 @@
../../../common/procps

View File

@@ -0,0 +1 @@
../../../common/psmisc

View File

@@ -0,0 +1 @@
../../../common/qpdf

View File

@@ -0,0 +1 @@
../../../common/readline

View File

@@ -0,0 +1 @@
../../../common/rpcsvc-proto

View File

@@ -0,0 +1 @@
../../../common/sed

View File

@@ -0,0 +1 @@
../../../common/smartmontools

View File

@@ -0,0 +1 @@
../../../common/squid

View File

@@ -0,0 +1 @@
../../../common/squid-asnbl

View File

@@ -0,0 +1 @@
../../../common/strongswan

View File

@@ -0,0 +1 @@
../../../common/tar

View File

@@ -0,0 +1 @@
../../../common/udev

View File

@@ -0,0 +1 @@
../../../common/wget

View File

@@ -0,0 +1 @@
../../../../common/x86_64/util-linux

View File

@@ -0,0 +1 @@
../../../common/xfsprogs

View File

@@ -0,0 +1 @@
../../../common/xz

View File

@@ -0,0 +1 @@
../../../common/zlib

View File

@@ -0,0 +1 @@
../../../common/zstd

View File

@@ -0,0 +1,108 @@
#!/bin/bash
############################################################################
# #
# This file is part of the IPFire Firewall. #
# #
# IPFire is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 3 of the License, or #
# (at your option) any later version. #
# #
# IPFire 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 #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with IPFire; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
# #
# Copyright (C) 2023 IPFire-Team <info@ipfire.org>. #
# #
############################################################################
#
. /opt/pakfire/lib/functions.sh
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
migrate_extrahd() {
local dev
local fs
local mp
local rest
while IFS=';' read -r dev fs mp rest; do
# Make sure mountpoint it set (so that we won't delete
# everything in /etc/fstab if there was an empty line).
if [ -z "${mp}" ]; then
continue
fi
# Remove the mountpoint from /etc/fstab
sed "/[[:blank:]]${mp//\//\\\/}[[:blank:]]/d" -i /etc/fstab
done < /var/ipfire/extrahd/devices
}
core=179
# Remove old core updates from pakfire cache to save space...
for (( i=1; i<=$core; i++ )); do
rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
done
# Stop services
/usr/local/bin/openvpnctrl -k
/usr/local/bin/openvpnctrl -kn2n
# Extract files
extract_files
# Remove files
rm -rvf \
/usr/lib/pppd/2.4.9
# Remove dropped sox addon
rm -vf \
/opt/pakfire/db/installed/meta-sox \
/opt/pakfire/db/meta/meta-sox \
/opt/pakfire/db/rootfiles/sox \
/usr/bin/play \
/usr/bin/rec \
/usr/bin/sox \
/usr/bin/soxi \
/usr/lib/libsox.so.3 \
/usr/lib/libsox.so.3.0.0
# update linker config
ldconfig
# Update Language cache
/usr/local/bin/update-lang-cache
# Filesytem cleanup
/usr/local/bin/filesystem-cleanup
# Migrate ExtraHD
migrate_extrahd
# Start services
/etc/init.d/udev restart
/etc/init.d/squid restart
/usr/local/bin/openvpnctrl -s
/usr/local/bin/openvpnctrl -sn2n
# This update needs a reboot...
touch /var/run/need_reboot
# Finish
/etc/init.d/fireinfo start
sendprofile
# Update grub config to display new core version
if [ -e /boot/grub/grub.cfg ]; then
grub-mkconfig -o /boot/grub/grub.cfg
fi
sync
# Don't report the exitcode last command
exit 0