Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/logrotate Update sysutils/logroate to 3.16.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c774389b711f
branches:  trunk
changeset: 429569:c774389b711f
user:      nils <nils%pkgsrc.org@localhost>
date:      Tue Apr 21 17:01:43 2020 +0000

description:
Update sysutils/logroate to 3.16.0.

Upstream changelog:
* fix compilation with gcc-10, which defaults to -fno-common (#288)
* reduce number of open() operations on state file (#282)
* validate user/group given to the su directive early (#276)
* add hardening options to systemd unit file in examples (#274, #291)
* fix crash of logrotate on invalid configuration with include (#271)
* fix heap buffer overflow on too long logfile extension (#270)

Pkgsrc changes:
* a systemd example service file is added to the examples;
* a btmp and wtmp example configurations files are also added, but only
btmp is copied alongside logrotate.conf: while the 2 config files were at first
present in logrotate.conf, only btmp is present on NetBSD ;
* the GITHUB_RELEASE variable is moved for pkglint compliance.

diffstat:

 sysutils/logrotate/Makefile |  20 ++++++++++++++------
 sysutils/logrotate/PLIST    |   5 ++++-
 sysutils/logrotate/distinfo |  10 +++++-----
 3 files changed, 23 insertions(+), 12 deletions(-)

diffs (83 lines):

diff -r aa186414e82f -r c774389b711f sysutils/logrotate/Makefile
--- a/sysutils/logrotate/Makefile       Tue Apr 21 16:06:28 2020 +0000
+++ b/sysutils/logrotate/Makefile       Tue Apr 21 17:01:43 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.18 2019/03/20 12:29:37 he Exp $
+# $NetBSD: Makefile,v 1.19 2020/04/21 17:01:43 nils Exp $
 
-DISTNAME=              logrotate-3.15.0
-PKGREVISION=           1
+GITHUB_RELEASE=                ${PKGVERSION_NOREV}
+DISTNAME=              logrotate-3.16.0
 CATEGORIES=            sysutils
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=logrotate/}
 
@@ -10,8 +10,6 @@
 COMMENT=               Daemon to rotate, compress, remove and mail system log files
 LICENSE=               gnu-gpl-v2
 
-GITHUB_RELEASE=                ${PKGVERSION_NOREV}
-
 USE_TOOLS+=            gmake gzip:run gunzip:run mail:run
 USE_LIBTOOL=           yes
 GNU_CONFIGURE=         yes
@@ -33,7 +31,11 @@
 SUBST_FILES.paths+=    examples/logrotate.cron
 SUBST_VARS.paths=      PREFIX PKG_SYSCONFDIR
 
-CONF_FILES=            ${EGDIR}/logrotate.conf ${PKG_SYSCONFDIR}/logrotate.conf
+CONF_FILES=            ${EGDIR}/logrotate.conf ${PKG_SYSCONFDIR}/logrotate.conf \
+                       ${EGDIR}/btmp ${PKG_SYSCONFDIR}/logrotate.d/btmp \
+                       ${EGDIR}/wtmp \
+                       ${EGDIR}/logrotate.service
+
 OWN_DIRS=              ${PKG_SYSCONFDIR}/logrotate.d
 
 EGDIR=                 share/examples/logrotate
@@ -43,8 +45,14 @@
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/examples/logrotate.conf \
                ${DESTDIR}${PREFIX}/${EGDIR}/logrotate.conf
+       ${INSTALL_DATA} ${WRKSRC}/examples/btmp \
+               ${DESTDIR}${PREFIX}/${EGDIR}/btmp
+       ${INSTALL_DATA} ${WRKSRC}/examples/wtmp \
+               ${DESTDIR}${PREFIX}/${EGDIR}/wtmp
        ${INSTALL_DATA} ${WRKSRC}/examples/logrotate.cron \
                ${DESTDIR}${PREFIX}/${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/examples/logrotate.service \
+               ${DESTDIR}${PREFIX}/${EGDIR}
 
 .include "../../devel/popt/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r aa186414e82f -r c774389b711f sysutils/logrotate/PLIST
--- a/sysutils/logrotate/PLIST  Tue Apr 21 16:06:28 2020 +0000
+++ b/sysutils/logrotate/PLIST  Tue Apr 21 17:01:43 2020 +0000
@@ -1,6 +1,9 @@
-@comment $NetBSD: PLIST,v 1.5 2017/03/06 12:59:53 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.6 2020/04/21 17:01:43 nils Exp $
 man/man5/logrotate.conf.5
 man/man8/logrotate.8
 sbin/logrotate
+share/examples/logrotate/btmp
 share/examples/logrotate/logrotate.conf
 share/examples/logrotate/logrotate.cron
+share/examples/logrotate/logrotate.service
+share/examples/logrotate/wtmp
diff -r aa186414e82f -r c774389b711f sysutils/logrotate/distinfo
--- a/sysutils/logrotate/distinfo       Tue Apr 21 16:06:28 2020 +0000
+++ b/sysutils/logrotate/distinfo       Tue Apr 21 17:01:43 2020 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.16 2019/03/20 12:29:37 he Exp $
+$NetBSD: distinfo,v 1.17 2020/04/21 17:01:43 nils Exp $
 
-SHA1 (logrotate-3.15.0.tar.gz) = d5ec365a07d1c64f4ba086e12fcbb7911281058d
-RMD160 (logrotate-3.15.0.tar.gz) = bd1801423d2f7729703db1f354cdb7d0dbae3a1d
-SHA512 (logrotate-3.15.0.tar.gz) = 9520f15eaec54da426699f1f5ce31949d1372fa25c5c127dfbf29ff717a1c15a6fd14437c1d7b67b116b12c8a5c28f6012e39ad4b3ca2b053c874d02efe98d84
-Size (logrotate-3.15.0.tar.gz) = 219496 bytes
+SHA1 (logrotate-3.16.0.tar.gz) = 0dad4e7c3aefd18d9e29cff8c68884d45c98a472
+RMD160 (logrotate-3.16.0.tar.gz) = afb176a20059c43e835bffb98c8d4ee5e94bb584
+SHA512 (logrotate-3.16.0.tar.gz) = 2f2e8ebf9349424f529e4cf35e75036dadb00df84feac6b421b5a558ce015c9b1a22586463cba95a0265c104a559dd236764f7e37707975e626e69cc87e963e2
+Size (logrotate-3.16.0.tar.gz) = 221904 bytes
 SHA1 (patch-config.c) = 75fea98d120cf1bb8f5f90af9648959a133914aa
 SHA1 (patch-examples_logrotate.conf) = 4d0aad215e66850e8ae1a005764f8bd109fb76c9
 SHA1 (patch-examples_logrotate.cron) = 31a19e1b697e945299bbbe6701674d886379a49c



Home | Main Index | Thread Index | Old Index