From: Michael Tremer Date: Sat, 15 Oct 2016 23:21:01 +0000 (-0400) Subject: logrotate: Update to 3.9.1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32ca32bba93ba5d10534b122f5c8a133539fb528;p=ipfire-3.x.git logrotate: Update to 3.9.1 Disables support for SELinux and disables the test suite which doesn't run through without a lot of errors Signed-off-by: Michael Tremer --- diff --git a/logrotate/logrotate.nm b/logrotate/logrotate.nm index 21d8677cd..c15906b6b 100644 --- a/logrotate/logrotate.nm +++ b/logrotate/logrotate.nm @@ -4,8 +4,8 @@ ############################################################################### name = logrotate -version = 3.7.7 -release = 3 +version = 3.9.1 +release = 1 groups = System/Base url = https://fedorahosted.org/releases/l/o/logrotate/ @@ -13,41 +13,36 @@ license = GPL+ summary = Rotates, compresses, removes and mails system log files. description - The logrotate utility is designed to simplify the administration of \ - log files on a system which generates a lot of log files. Logrotate \ - allows for the automatic rotation compression, removal and mailing of \ - log files. Logrotate can be set to handle a log file daily, weekly, \ + The logrotate utility is designed to simplify the administration of + log files on a system which generates a lot of log files. Logrotate + allows for the automatic rotation compression, removal and mailing of + log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size. end -source_dl = +source_dl = https://fedorahosted.org/releases/l/o/logrotate/ build requires coreutils gzip - libselinux-devel popt-devel which end build - make RPM_OPT_FLAGS="%{CFLAGS}" WITH_SELINUX=yes %{PARALLELISMFLAGS} - end - - test - make test + make RPM_OPT_FLAGS="%{CFLAGS}" %{PARALLELISMFLAGS} end install - make install BASEDIR=/usr PREFIX=%{BUILDROOT} \ - MANDIR=/usr/share/man + make install BASEDIR=%{prefix} PREFIX=%{BUILDROOT} \ + MANDIR=%{mandir} - mkdir -pv %{BUILDROOT}/var/lib - touch %{BUILDROOT}/var/lib/logrotate.status + mkdir -pv %{BUILDROOT}%{localstatedir} + touch %{BUILDROOT}%{localstatedir}/logrotate.status # Creating directory for config files - mkdir -pv %{BUILDROOT}/etc/logrotate.d + mkdir -pv %{BUILDROOT}%{sysconfdir}/logrotate.d end end diff --git a/logrotate/patches/logrotate-3.7.7-curdir.patch b/logrotate/patches/logrotate-3.7.7-curdir.patch deleted file mode 100644 index 8ae8f066b..000000000 --- a/logrotate/patches/logrotate-3.7.7-curdir.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -up logrotate-3.7.7/config.c.curdir logrotate-3.7.7/config.c ---- logrotate-3.7.7/config.c.curdir 2008-05-09 09:28:59.000000000 +0200 -+++ logrotate-3.7.7/config.c 2008-11-20 15:35:05.000000000 +0100 -@@ -316,11 +316,6 @@ static int readConfigPath(const char *pa - DIR *dirp; - - here = open(".", O_RDONLY); -- if (here < 0) { -- message(MESS_ERROR, "cannot open current directory: %s\n", -- strerror(errno)); -- return 1; -- } - - if ((dirp = opendir(path)) == NULL) { - message(MESS_ERROR, "cannot open directory %s: %s\n", path, diff --git a/logrotate/patches/logrotate-3.7.7-toolarge.patch b/logrotate/patches/logrotate-3.7.7-toolarge.patch deleted file mode 100644 index 68027c8a8..000000000 --- a/logrotate/patches/logrotate-3.7.7-toolarge.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff -up logrotate-3.7.7/config.c.toolarge logrotate-3.7.7/config.c ---- logrotate-3.7.7/config.c.toolarge 2008-11-21 12:57:25.000000000 +0100 -+++ logrotate-3.7.7/config.c 2008-11-21 12:57:41.000000000 +0100 -@@ -530,6 +530,13 @@ static int readConfigFile(const char *co - - length = sb.st_size; - -+ if (length > 0xffffff) { -+ message(MESS_ERROR, "file %s too large, probably not a config file.\n", -+ configFile); -+ close(fd); -+ return 1; -+ } -+ - buf = alloca(length + 2); - if (!buf) { - message(MESS_ERROR, "alloca() of %d bytes failed\n", (int) length);