diff options
author | madpilot <madpilot@FreeBSD.org> | 2015-05-14 15:51:09 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2015-05-14 15:51:09 +0800 |
commit | 3ba7ec80a832c188a7c553d639cdd4f3fc9fad89 (patch) | |
tree | b96da1f99fcc6ecb9558c477044366976d2e9041 /sysutils | |
parent | 035be0b4fc08b6359ea718dc1806c6c218254d4e (diff) | |
download | freebsd-ports-graphics-3ba7ec80a832c188a7c553d639cdd4f3fc9fad89.tar.gz freebsd-ports-graphics-3ba7ec80a832c188a7c553d639cdd4f3fc9fad89.tar.zst freebsd-ports-graphics-3ba7ec80a832c188a7c553d639cdd4f3fc9fad89.zip |
- Update to 3.8.9
- Add LICENSE
- Use @sample in plist
- While here, regenerate patches to silence portlint warnings
PR: 196668
Submitted by: jyoung15 at gmail.com
Approved by: Balazs Nagy <js at iksz.hu> (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/logrotate/Makefile | 8 | ||||
-rw-r--r-- | sysutils/logrotate/distinfo | 4 | ||||
-rw-r--r-- | sysutils/logrotate/files/patch-Makefile | 8 | ||||
-rw-r--r-- | sysutils/logrotate/files/patch-config.c | 6 | ||||
-rw-r--r-- | sysutils/logrotate/files/patch-config.h | 8 | ||||
-rw-r--r-- | sysutils/logrotate/files/patch-logrotate.8 | 12 | ||||
-rw-r--r-- | sysutils/logrotate/files/patch-logrotate.c | 6 | ||||
-rw-r--r-- | sysutils/logrotate/pkg-plist | 4 |
8 files changed, 27 insertions, 29 deletions
diff --git a/sysutils/logrotate/Makefile b/sysutils/logrotate/Makefile index ec3f3d65832..ed4792aff16 100644 --- a/sysutils/logrotate/Makefile +++ b/sysutils/logrotate/Makefile @@ -2,13 +2,15 @@ # $FreeBSD$ PORTNAME= logrotate -PORTVERSION= 3.8.8 +PORTVERSION= 3.8.9 CATEGORIES= sysutils MASTER_SITES= https://fedorahosted.org/releases/l/o/logrotate/ MAINTAINER= js@iksz.hu COMMENT= Daemon to rotate, compress, remove, and mail system log files +LICENSE= GPLv2 + LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt PATCH_STRIP= -p1 @@ -17,9 +19,9 @@ MAKE_ENV= "BASEDIR=${PREFIX}" CPP= ${CC} -E post-install: - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @${SED} -e 's|__PREFIX__|${PREFIX}|' \ < ${FILESDIR}/logrotate.conf.sample > ${STAGEDIR}${PREFIX}/etc/logrotate.conf.sample - @${INSTALL_DATA} ${FILESDIR}/syslog.sample ${STAGEDIR}${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${FILESDIR}/syslog.sample ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/sysutils/logrotate/distinfo b/sysutils/logrotate/distinfo index 636364fcbad..b861c537f02 100644 --- a/sysutils/logrotate/distinfo +++ b/sysutils/logrotate/distinfo @@ -1,2 +1,2 @@ -SHA256 (logrotate-3.8.8.tar.gz) = 46a1510ef4a1f4359edd5f361112cfd1523942e85ff28e6cbb0c81bad1829d0f -SIZE (logrotate-3.8.8.tar.gz) = 72014 +SHA256 (logrotate-3.8.9.tar.gz) = 700ed7ce9072a1cca324779a74797dfaefdae37ac50a817134b947c4ded1dfa7 +SIZE (logrotate-3.8.9.tar.gz) = 77408 diff --git a/sysutils/logrotate/files/patch-Makefile b/sysutils/logrotate/files/patch-Makefile index fcfcdbe8c5d..a23719b2ae8 100644 --- a/sysutils/logrotate/files/patch-Makefile +++ b/sysutils/logrotate/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig 2013-06-10 13:29:16.000000000 +0200 -+++ Makefile 2014-01-10 15:03:37.479613407 +0100 -@@ -81,6 +81,13 @@ +--- Makefile.orig 2015-02-13 06:11:21 UTC ++++ Makefile +@@ -81,6 +81,13 @@ ifeq ($(OS_NAME),NetBSD) LOADLIBES += -L$(BASEDIR)/lib -Wl,-R,$(BASEDIR)/lib endif @@ -14,7 +14,7 @@ ifneq ($(POPT_DIR),) CFLAGS += -I$(POPT_DIR) LOADLIBES += -L$(POPT_DIR) -@@ -148,9 +155,9 @@ +@@ -155,9 +162,9 @@ install: $(INSTALL) $(MAN) $(PREFIX)$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"` 0644 bin bin; \ $(INSTALL) $(MAN5) $(PREFIX)$(MANDIR)/man`echo $(MAN5) | sed "s/.*\.//"` 0644 bin bin; \ else if [ "$(OS_NAME)" = FreeBSD ]; then \ diff --git a/sysutils/logrotate/files/patch-config.c b/sysutils/logrotate/files/patch-config.c index 392613fd768..31078a3590c 100644 --- a/sysutils/logrotate/files/patch-config.c +++ b/sysutils/logrotate/files/patch-config.c @@ -1,7 +1,7 @@ ---- config.c.orig 2012-11-09 18:58:51.756188812 +0800 -+++ config.c 2012-11-09 19:00:23.064190229 +0800 +--- config.c.orig 2015-02-13 06:11:21 UTC ++++ config.c @@ -1,8 +1,4 @@ - #include <sys/queue.h> + #include "queue.h" -/* Alloca is defined in stdlib.h in NetBSD */ -#ifndef __NetBSD__ -#include <alloca.h> diff --git a/sysutils/logrotate/files/patch-config.h b/sysutils/logrotate/files/patch-config.h index 62fc64fdc15..f614c411624 100644 --- a/sysutils/logrotate/files/patch-config.h +++ b/sysutils/logrotate/files/patch-config.h @@ -1,8 +1,6 @@ -diff --git a/config.h b/config.h -index ae7f308..7c0a2b3 100644 ---- a/config.h -+++ b/config.h -@@ -16,6 +16,13 @@ +--- config.h.orig 2015-02-13 06:11:21 UTC ++++ config.h +@@ -23,6 +23,13 @@ #define STATEFILE "/var/log/logrotate.status" #endif diff --git a/sysutils/logrotate/files/patch-logrotate.8 b/sysutils/logrotate/files/patch-logrotate.8 index 4f241a13028..2c4599513ac 100644 --- a/sysutils/logrotate/files/patch-logrotate.8 +++ b/sysutils/logrotate/files/patch-logrotate.8 @@ -1,15 +1,15 @@ ---- logrotate.8.orig 2012-11-09 19:10:08.054188039 +0800 -+++ logrotate.8 2012-11-09 19:10:57.749187879 +0800 -@@ -59,7 +59,7 @@ - \fB-s, -\-state <statefile>\fR +--- logrotate.8.orig 2015-02-13 06:11:21 UTC ++++ logrotate.8 +@@ -59,7 +59,7 @@ and mail it to the recipient. The defaul + \fB\-s\fR, \fB\-\-state <statefile>\fR Tells \fBlogrotate\fR to use an alternate state file. This is useful if logrotate is being run as a different user for various sets of -log files. The default state file is \fI/var/lib/logrotate.status\fR. +log files. The default state file is \fI/var/run/logrotate.status\fR. .TP - \fB-\-usage\fR -@@ -507,10 +507,10 @@ + \fB\-\-usage\fR +@@ -550,10 +550,10 @@ Log files are rotated if the current yea .SH FILES .PD 0 .TP 27 diff --git a/sysutils/logrotate/files/patch-logrotate.c b/sysutils/logrotate/files/patch-logrotate.c index 7daf6111a1b..ca2dc0434a3 100644 --- a/sysutils/logrotate/files/patch-logrotate.c +++ b/sysutils/logrotate/files/patch-logrotate.c @@ -1,7 +1,7 @@ ---- logrotate.c.orig 2012-11-09 19:00:58.744187984 +0800 -+++ logrotate.c 2012-11-09 19:01:05.528189740 +0800 +--- logrotate.c.orig 2015-02-13 06:11:21 UTC ++++ logrotate.c @@ -1,8 +1,4 @@ - #include <sys/queue.h> + #include "queue.h" -/* alloca() is defined in stdlib.h in NetBSD */ -#ifndef __NetBSD__ -#include <alloca.h> diff --git a/sysutils/logrotate/pkg-plist b/sysutils/logrotate/pkg-plist index 96687114549..5f3ef5b928e 100644 --- a/sysutils/logrotate/pkg-plist +++ b/sysutils/logrotate/pkg-plist @@ -1,7 +1,5 @@ sbin/logrotate -@unexec if cmp -s %D/etc/logrotate.conf.sample %D/etc/logrotate.conf; then rm -f %D/etc/logrotate.conf; fi -etc/logrotate.conf.sample -@exec if [ ! -f %D/etc/logrotate.conf ]; then cp -p %D/%F %B/logrotate.conf; fi +@sample etc/logrotate.conf.sample %%EXAMPLESDIR%%/syslog.sample man/man5/logrotate.conf.5.gz man/man8/logrotate.8.gz |