Tue Apr 21 17:01:43 2020 UTC ()
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.


(nils)
diff -r1.18 -r1.19 pkgsrc/sysutils/logrotate/Makefile
diff -r1.5 -r1.6 pkgsrc/sysutils/logrotate/PLIST
diff -r1.16 -r1.17 pkgsrc/sysutils/logrotate/distinfo

cvs diff -r1.18 -r1.19 pkgsrc/sysutils/logrotate/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/logrotate/Makefile 2019/03/20 12:29:37 1.18
+++ pkgsrc/sysutils/logrotate/Makefile 2020/04/21 17:01:43 1.19
@@ -1,50 +1,58 @@ @@ -1,50 +1,58 @@
1# $NetBSD: Makefile,v 1.18 2019/03/20 12:29:37 he Exp $ 1# $NetBSD: Makefile,v 1.19 2020/04/21 17:01:43 nils Exp $
2 2
3DISTNAME= logrotate-3.15.0 3GITHUB_RELEASE= ${PKGVERSION_NOREV}
4PKGREVISION= 1 4DISTNAME= logrotate-3.16.0
5CATEGORIES= sysutils 5CATEGORIES= sysutils
6MASTER_SITES= ${MASTER_SITE_GITHUB:=logrotate/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=logrotate/}
7 7
8MAINTAINER= nils@NetBSD.org 8MAINTAINER= nils@NetBSD.org
9HOMEPAGE= https://github.com/logrotate/logrotate/ 9HOMEPAGE= https://github.com/logrotate/logrotate/
10COMMENT= Daemon to rotate, compress, remove and mail system log files 10COMMENT= Daemon to rotate, compress, remove and mail system log files
11LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
12 12
13GITHUB_RELEASE= ${PKGVERSION_NOREV} 
14 
15USE_TOOLS+= gmake gzip:run gunzip:run mail:run 13USE_TOOLS+= gmake gzip:run gunzip:run mail:run
16USE_LIBTOOL= yes 14USE_LIBTOOL= yes
17GNU_CONFIGURE= yes 15GNU_CONFIGURE= yes
18NO_EXPORT_CPP= yes 16NO_EXPORT_CPP= yes
19 17
20CONFIGURE_ENV+= STATEFILE=\"${VARBASE}/db/logrotate.status\" 18CONFIGURE_ENV+= STATEFILE=\"${VARBASE}/db/logrotate.status\"
21CONFIGURE_ENV+= DEFAULT_MAIL_COMMAND=\"${MAIL_CMD:Q}\" 19CONFIGURE_ENV+= DEFAULT_MAIL_COMMAND=\"${MAIL_CMD:Q}\"
22CONFIGURE_ENV+= COMPRESS_COMMAND=\"${GZIP_CMD:[1]:Q}\" 20CONFIGURE_ENV+= COMPRESS_COMMAND=\"${GZIP_CMD:[1]:Q}\"
23CONFIGURE_ENV+= UNCOMPRESS_COMMAND=\"${GUNZIP_CMD:[1]:Q}\" 21CONFIGURE_ENV+= UNCOMPRESS_COMMAND=\"${GUNZIP_CMD:[1]:Q}\"
24CONFIGURE_ARGS+= --with-state-file-path="${VARBASE}/db/logrotate.status" 22CONFIGURE_ARGS+= --with-state-file-path="${VARBASE}/db/logrotate.status"
25 23
26BUILD_DEFS+= VARBASE 24BUILD_DEFS+= VARBASE
27 25
28MESSAGE_SUBST+= EGDIR=${EGDIR} 26MESSAGE_SUBST+= EGDIR=${EGDIR}
29SUBST_CLASSES+= paths 27SUBST_CLASSES+= paths
30SUBST_STAGE.paths= pre-build 28SUBST_STAGE.paths= pre-build
31SUBST_MESSAGE.paths= Substituting paths variables. 29SUBST_MESSAGE.paths= Substituting paths variables.
32SUBST_FILES.paths= examples/logrotate.conf 30SUBST_FILES.paths= examples/logrotate.conf
33SUBST_FILES.paths+= examples/logrotate.cron 31SUBST_FILES.paths+= examples/logrotate.cron
34SUBST_VARS.paths= PREFIX PKG_SYSCONFDIR 32SUBST_VARS.paths= PREFIX PKG_SYSCONFDIR
35 33
36CONF_FILES= ${EGDIR}/logrotate.conf ${PKG_SYSCONFDIR}/logrotate.conf 34CONF_FILES= ${EGDIR}/logrotate.conf ${PKG_SYSCONFDIR}/logrotate.conf \
 35 ${EGDIR}/btmp ${PKG_SYSCONFDIR}/logrotate.d/btmp \
 36 ${EGDIR}/wtmp \
 37 ${EGDIR}/logrotate.service
 38
37OWN_DIRS= ${PKG_SYSCONFDIR}/logrotate.d 39OWN_DIRS= ${PKG_SYSCONFDIR}/logrotate.d
38 40
39EGDIR= share/examples/logrotate 41EGDIR= share/examples/logrotate
40 42
41INSTALLATION_DIRS+= ${EGDIR} 43INSTALLATION_DIRS+= ${EGDIR}
42 44
43post-install: 45post-install:
44 ${INSTALL_DATA} ${WRKSRC}/examples/logrotate.conf \ 46 ${INSTALL_DATA} ${WRKSRC}/examples/logrotate.conf \
45 ${DESTDIR}${PREFIX}/${EGDIR}/logrotate.conf 47 ${DESTDIR}${PREFIX}/${EGDIR}/logrotate.conf
 48 ${INSTALL_DATA} ${WRKSRC}/examples/btmp \
 49 ${DESTDIR}${PREFIX}/${EGDIR}/btmp
 50 ${INSTALL_DATA} ${WRKSRC}/examples/wtmp \
 51 ${DESTDIR}${PREFIX}/${EGDIR}/wtmp
46 ${INSTALL_DATA} ${WRKSRC}/examples/logrotate.cron \ 52 ${INSTALL_DATA} ${WRKSRC}/examples/logrotate.cron \
47 ${DESTDIR}${PREFIX}/${EGDIR} 53 ${DESTDIR}${PREFIX}/${EGDIR}
 54 ${INSTALL_DATA} ${WRKSRC}/examples/logrotate.service \
 55 ${DESTDIR}${PREFIX}/${EGDIR}
48 56
49.include "../../devel/popt/buildlink3.mk" 57.include "../../devel/popt/buildlink3.mk"
50.include "../../mk/bsd.pkg.mk" 58.include "../../mk/bsd.pkg.mk"

cvs diff -r1.5 -r1.6 pkgsrc/sysutils/logrotate/PLIST (expand / switch to unified diff)

--- pkgsrc/sysutils/logrotate/PLIST 2017/03/06 12:59:53 1.5
+++ pkgsrc/sysutils/logrotate/PLIST 2020/04/21 17:01:43 1.6
@@ -1,6 +1,9 @@ @@ -1,6 +1,9 @@
1@comment $NetBSD: PLIST,v 1.5 2017/03/06 12:59:53 fhajny Exp $ 1@comment $NetBSD: PLIST,v 1.6 2020/04/21 17:01:43 nils Exp $
2man/man5/logrotate.conf.5 2man/man5/logrotate.conf.5
3man/man8/logrotate.8 3man/man8/logrotate.8
4sbin/logrotate 4sbin/logrotate
 5share/examples/logrotate/btmp
5share/examples/logrotate/logrotate.conf 6share/examples/logrotate/logrotate.conf
6share/examples/logrotate/logrotate.cron 7share/examples/logrotate/logrotate.cron
 8share/examples/logrotate/logrotate.service
 9share/examples/logrotate/wtmp

cvs diff -r1.16 -r1.17 pkgsrc/sysutils/logrotate/distinfo (expand / switch to unified diff)

--- pkgsrc/sysutils/logrotate/distinfo 2019/03/20 12:29:37 1.16
+++ pkgsrc/sysutils/logrotate/distinfo 2020/04/21 17:01:43 1.17
@@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
1$NetBSD: distinfo,v 1.16 2019/03/20 12:29:37 he Exp $ 1$NetBSD: distinfo,v 1.17 2020/04/21 17:01:43 nils Exp $
2 2
3SHA1 (logrotate-3.15.0.tar.gz) = d5ec365a07d1c64f4ba086e12fcbb7911281058d 3SHA1 (logrotate-3.16.0.tar.gz) = 0dad4e7c3aefd18d9e29cff8c68884d45c98a472
4RMD160 (logrotate-3.15.0.tar.gz) = bd1801423d2f7729703db1f354cdb7d0dbae3a1d 4RMD160 (logrotate-3.16.0.tar.gz) = afb176a20059c43e835bffb98c8d4ee5e94bb584
5SHA512 (logrotate-3.15.0.tar.gz) = 9520f15eaec54da426699f1f5ce31949d1372fa25c5c127dfbf29ff717a1c15a6fd14437c1d7b67b116b12c8a5c28f6012e39ad4b3ca2b053c874d02efe98d84 5SHA512 (logrotate-3.16.0.tar.gz) = 2f2e8ebf9349424f529e4cf35e75036dadb00df84feac6b421b5a558ce015c9b1a22586463cba95a0265c104a559dd236764f7e37707975e626e69cc87e963e2
6Size (logrotate-3.15.0.tar.gz) = 219496 bytes 6Size (logrotate-3.16.0.tar.gz) = 221904 bytes
7SHA1 (patch-config.c) = 75fea98d120cf1bb8f5f90af9648959a133914aa 7SHA1 (patch-config.c) = 75fea98d120cf1bb8f5f90af9648959a133914aa
8SHA1 (patch-examples_logrotate.conf) = 4d0aad215e66850e8ae1a005764f8bd109fb76c9 8SHA1 (patch-examples_logrotate.conf) = 4d0aad215e66850e8ae1a005764f8bd109fb76c9
9SHA1 (patch-examples_logrotate.cron) = 31a19e1b697e945299bbbe6701674d886379a49c 9SHA1 (patch-examples_logrotate.cron) = 31a19e1b697e945299bbbe6701674d886379a49c