summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authornils <nils@pkgsrc.org>2020-04-21 17:01:43 +0000
committernils <nils@pkgsrc.org>2020-04-21 17:01:43 +0000
commit7ee15a969b899ff5b0fb97069b63dda7fab0f93c (patch)
tree82a058125e7c3c32569afea056fb230cb0c77789 /sysutils
parent4b2bb3f803ca2dd489cf4047b1c94507a82a39d6 (diff)
downloadpkgsrc-7ee15a969b899ff5b0fb97069b63dda7fab0f93c.tar.gz
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 (limited to 'sysutils')
-rw-r--r--sysutils/logrotate/Makefile20
-rw-r--r--sysutils/logrotate/PLIST5
-rw-r--r--sysutils/logrotate/distinfo10
3 files changed, 23 insertions, 12 deletions
diff --git a/sysutils/logrotate/Makefile b/sysutils/logrotate/Makefile
index 593094ae57e..7a2b5ab52bc 100644
--- a/sysutils/logrotate/Makefile
+++ b/sysutils/logrotate/Makefile
@@ -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 @@ HOMEPAGE= https://github.com/logrotate/logrotate/
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.conf
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 @@ INSTALLATION_DIRS+= ${EGDIR}
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 --git a/sysutils/logrotate/PLIST b/sysutils/logrotate/PLIST
index 60ab5a734bf..ec9b18deb26 100644
--- a/sysutils/logrotate/PLIST
+++ b/sysutils/logrotate/PLIST
@@ -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 --git a/sysutils/logrotate/distinfo b/sysutils/logrotate/distinfo
index ea678e0dbfa..ef77aefa440 100644
--- a/sysutils/logrotate/distinfo
+++ b/sysutils/logrotate/distinfo
@@ -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