logrotate: Update to version 3.22.0

- Update from version 3.21.0 to 3.22.0
- Update for rootfile not required
- autogen.sh step not required as configure file has been available in source tarball
   since version 3.10.0 in 2016
- xz version of logrotate available so changed to that.
- Changelog
   3.22.0
	 - fix calculations for time differences (#516)
	 - fix extension for zip compression (#545)
	 - fix omitted copy for logs with `mail` and `rotate 0` (#553)
	 - fix wrongly skipping copy with `copytruncate` and `compress` (#553)
	 - fix ambiguities between `mode`, `UID` and `GID` parsing when not specifying all options (#575)
	 - fix hang when encountering a named pipe (#607)
	 - on prerotate failure logs are preserved instead of rotated (#506)
	 - in case a configuration file was skipped due to unsafe permissions the
	   exit status after rotattion will be `1` (#508)
	 - the state is no longer written to non-regular files (#529)
	 - the systemd timer now correctly utilizes load distribution (#574)
	 - add dateformat specifier `%z` for timezone offsets (#594)
	 - change default mode for created `olddir` directories to `0755` (#560)
	 - support quoted user and group names in `su`, `create`, and `createolddir` (#575)

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Adolf Belka
2024-09-15 18:43:36 +02:00
committed by Michael Tremer
parent 90d3fb2a2a
commit 5e96ac7ff6

View File

@@ -1,7 +1,7 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> #
# Copyright (C) 2007-2024 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
@@ -24,10 +24,10 @@
include Config
VER = 3.21.0
VER = 3.22.0
THISAPP = logrotate-$(VER)
DL_FILE = logrotate-$(VER).tar.gz
DL_FILE = logrotate-$(VER).tar.xz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
@@ -42,7 +42,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = bd801aa8daed19213720ef36af8070277c3b36df2b866ab921bc5ff85afe97871638f4a690061ba752f16b2df53acc76373097bf95b6a7fd2821c20574a444d8
$(DL_FILE)_BLAKE2 = c1c9f1ff792905d2917e9ba3cee360c50259e1520e04073cb69abe475499adcf01aeb3cb4c6933af61255fbb5978577c4fdf9d6ab6ebf9568358d2446791c7f3
install : $(TARGET)
@@ -71,11 +71,9 @@ $(subst %,%_BLAKE2,$(objects)) :
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && ./autogen.sh
cd $(DIR_APP) && ./configure --prefix=/usr
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && ./configure \
--prefix=/usr
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
mkdir -pv /etc/logrotate.d